]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCRootTypes.h
Adding definitions for the fields of the lookup tables used in the dHLT analysis...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCRootTypes.h
1 // @(#) $Id$
2 // Original: AliHLTRootTypes.h,v 1.12 2004/06/15 14:02:38 loizides 
3 #ifndef ALIHLTTPCROOTTYPES_H
4 #define ALIHLTTPCROOTTYPES_H
5
6
7 //////////////////////////////////////////////////////////////////////////
8 //                                                                      //
9 // Basic types used by HLT                                              //
10 //                                                                      //
11 //////////////////////////////////////////////////////////////////////////
12
13 #ifndef no_root
14 #include <TObject.h>
15 #include <Rtypes.h>
16
17 #else
18
19 #if __GNUC__ == 3
20 #include <cstdio>
21 #include <cmath>
22 #else
23 #include <stdio.h>
24 #include <math.h>
25 #endif
26
27 #ifndef ROOT_Rtypes
28 //---- types -------------------------------------------------------------------
29
30 typedef char           Char_t;        //Signed Character 1 byte
31 typedef unsigned char  UChar_t;       //Unsigned Character 1 byte
32 typedef short          Short_t;       //Signed Short integer 2 bytes
33 typedef unsigned short UShort_t;      //Unsigned Short integer 2 bytes
34 #ifdef R__INT16
35 typedef long           Int_t;         //Signed integer 4 bytes
36 typedef unsigned long  UInt_t;        //Unsigned integer 4 bytes
37 #else
38 typedef int            Int_t;         //Signed integer 4 bytes
39 typedef unsigned int   UInt_t;        //Unsigned integer 4 bytes
40 #endif
41 #ifdef R__B64
42 typedef int            Seek_t;        //File pointer
43 typedef long           Long_t;        //Signed long integer 4 bytes
44 typedef unsigned long  ULong_t;       //Unsigned long integer 4 bytes
45 #else
46 typedef int            Seek_t;        //File pointer
47 typedef long           Long_t;        //Signed long integer 8 bytes
48 typedef unsigned long  ULong_t;       //Unsigned long integer 8 bytes
49 #endif
50 typedef float          Float_t;       //Float 4 bytes
51 typedef double         Double_t;      //Float 8 bytes
52 typedef char           Text_t;        //General string
53 typedef bool           Bool_t;        //Boolean (0=false, 1=true) (bool)
54 typedef unsigned char  Byte_t;        //Byte (8 bits)
55 typedef short          Version_t;     //Class version identifier
56 typedef const char     Option_t;      //Option string
57 typedef int            Ssiz_t;        //String size
58 typedef float          Real_t;        //TVector and TMatrix element type
59 typedef long long          Long64_t;  //Portable signed long integer 8 bytes
60 typedef unsigned long long ULong64_t; //Portable unsigned long integer 8 bytes
61
62 typedef void         (*VoidFuncPtr_t)();  //pointer to void function
63
64
65 //---- constants ---------------------------------------------------------------
66 #ifndef NULL
67 #define NULL 0
68 #endif
69
70 const Bool_t kTRUE   = 1;
71 const Bool_t kFALSE  = 0;
72
73 const Int_t  kMaxInt      = 2147483647;
74 const Int_t  kMaxShort    = 32767;
75 const size_t kBitsPerByte = 8;
76 const Ssiz_t kNPOS        = ~(Ssiz_t)0;
77
78
79 //---- ClassDef macros ---------------------------------------------------------
80
81 #define ClassDef(name,id) 
82 #define ClassImp(name) 
83 #endif  //end of Rtypes 
84 #endif  //end of root selection
85
86 //---- Timms AliHLTTPCEventDataType  from AliHLTTPCEventDataType.h
87
88 union AliHLTTPCEventDataTypeRoot{
89   ULong_t      fID;
90   unsigned char      fDescr[8];
91 };
92
93 typedef union AliHLTTPCEventDataTypeRoot AliHLTTPCEventDataTypeRoot;
94
95 #define ROOT_UNKNOWN_DATAID               (((ULong_t)'UNKN')<<32 | 'OWN ')
96 #define ROOT_COMPOSITE_DATAID             (((ULong_t)'COMP')<<32 | 'OSIT')
97 #define ROOT_ADCCOUNTS_DATAID             (((ULong_t)'ADCC')<<32 | 'OUNT')
98 #define ROOT_ADCCOUNTS_UNPACKED_DATAID    (((ULong_t)'ADCC')<<32 | 'NTUP')
99 #define ROOT_CLUSTERS_DATAID              (((ULong_t)'CLUS')<<32 | 'TERS')
100 #define ROOT_SPACEPOINTS_DATAID           (((ULong_t)'SPAC')<<32 | 'EPTS')
101 #define ROOT_VERTEXDATA_DATAID            (((ULong_t)'VRTX')<<32 | 'DATA')
102 #define ROOT_TRACKSEGMENTS_DATAID         (((ULong_t)'TRAC')<<32 | 'SEGS')
103 #define ROOT_SLICETRACKS_DATAID           (((ULong_t)'SLCT')<<32 | 'RCKS')
104 #define ROOT_TRACKS_DATAID                (((ULong_t)'TRAC')<<32 | 'KS  ')
105 #define ROOT_NODELIST_DATAID              (((ULong_t)'NODE')<<32 | 'LIST')
106 #define ROOT_EVENTTRIGGER_DATAID          (((ULong_t)'EVTT')<<32 | 'RG  ')
107
108 #endif