]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliL3RootTypes.h
Changed Makefile and AliL3RootTypes.h in order to define usepackage (ROOT, ALIROOT
[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//////////////////////////////////////////////////////////////////////////
10#include <stdio.h>
11#include <math.h>
12
108615fc 13#ifndef no_root
108615fc 14#include <TObject.h>
15#include <Rtypes.h>
16
17#else
18
19#ifndef ROOT_Rtypes
20//---- types -------------------------------------------------------------------
21
22typedef char Char_t; //Signed Character 1 byte
23typedef unsigned char UChar_t; //Unsigned Character 1 byte
24typedef short Short_t; //Signed Short integer 2 bytes
25typedef unsigned short UShort_t; //Unsigned Short integer 2 bytes
26#ifdef R__INT16
27typedef long Int_t; //Signed integer 4 bytes
28typedef unsigned long UInt_t; //Unsigned integer 4 bytes
29#else
30typedef int Int_t; //Signed integer 4 bytes
31typedef unsigned int UInt_t; //Unsigned integer 4 bytes
32#endif
33#ifdef R__B64
34typedef int Seek_t; //File pointer
35typedef long Long_t; //Signed long integer 4 bytes
36typedef unsigned long ULong_t; //Unsigned long integer 4 bytes
37#else
38typedef int Seek_t; //File pointer
39typedef long Long_t; //Signed long integer 8 bytes
40typedef unsigned long ULong_t; //Unsigned long integer 8 bytes
41#endif
42typedef float Float_t; //Float 4 bytes
43typedef double Double_t; //Float 8 bytes
44typedef char Text_t; //General string
45typedef unsigned char Bool_t; //Boolean (0=false, 1=true)
46typedef unsigned char Byte_t; //Byte (8 bits)
47typedef short Version_t; //Class version identifier
48typedef const char Option_t; //Option string
49typedef int Ssiz_t; //String size
50typedef float Real_t; //TVector and TMatrix element type
51
52typedef void (*VoidFuncPtr_t)(); //pointer to void function
53
54
55//---- constants ---------------------------------------------------------------
56
57#ifndef NULL
58#define NULL 0
59#endif
60
61const Bool_t kTRUE = 1;
62const Bool_t kFALSE = 0;
63
64const Int_t kMaxInt = 2147483647;
65const Int_t kMaxShort = 32767;
66const size_t kBitsPerByte = 8;
67const 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
82union AliL3EventDataTypeRoot{
83 ULong_t fID;
84 unsigned char fDescr[8];
85};
86
87typedef 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