]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
108615fc | 3 | #ifndef ALIL3ROOTTYPES_H |
4 | #define ALIL3ROOTTYPES_H | |
5 | ||
6 | ||
7 | ////////////////////////////////////////////////////////////////////////// | |
8 | // // | |
240d63be | 9 | // Basic types used by HLT // |
108615fc | 10 | // // |
11 | ////////////////////////////////////////////////////////////////////////// | |
108615fc | 12 | |
108615fc | 13 | #ifndef no_root |
108615fc | 14 | #include <TObject.h> |
15 | #include <Rtypes.h> | |
16 | ||
17 | #else | |
18 | ||
0bd0c1ef | 19 | #if __GNUC__ == 3 |
118c26c3 | 20 | #include <cstdio> |
21 | #include <cmath> | |
22 | #else | |
23 | #include <stdio.h> | |
24 | #include <math.h> | |
25 | #endif | |
26 | ||
108615fc | 27 | #ifndef ROOT_Rtypes |
28 | //---- types ------------------------------------------------------------------- | |
29 | ||
3e87ef69 | 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 | |
108615fc | 34 | #ifdef R__INT16 |
3e87ef69 | 35 | typedef long Int_t; //Signed integer 4 bytes |
36 | typedef unsigned long UInt_t; //Unsigned integer 4 bytes | |
108615fc | 37 | #else |
3e87ef69 | 38 | typedef int Int_t; //Signed integer 4 bytes |
39 | typedef unsigned int UInt_t; //Unsigned integer 4 bytes | |
108615fc | 40 | #endif |
41 | #ifdef R__B64 | |
3e87ef69 | 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 | |
108615fc | 45 | #else |
3e87ef69 | 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 | |
108615fc | 49 | #endif |
3e87ef69 | 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 unsigned char Bool_t; //Boolean (0=false, 1=true) | |
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 | |
108615fc | 61 | |
62 | typedef void (*VoidFuncPtr_t)(); //pointer to void function | |
63 | ||
64 | ||
65 | //---- constants --------------------------------------------------------------- | |
108615fc | 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 | ||
108615fc | 81 | #define ClassDef(name,id) |
108615fc | 82 | #define ClassImp(name) |
83 | #endif //end of Rtypes | |
108615fc | 84 | #endif //end of root selection |
85 | ||
86 | //---- Timms AliL3EventDataType from AliL3EventDataType.h | |
87 | ||
88 | union AliL3EventDataTypeRoot{ | |
89 | ULong_t fID; | |
90 | unsigned char fDescr[8]; | |
91 | }; | |
92 | ||
93 | typedef union AliL3EventDataTypeRoot AliL3EventDataTypeRoot; | |
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 |