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