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