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