]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliL3RootTypes.h
-Added protected copy constructors and assignment operators. -Public data members...
[u/mrichter/AliRoot.git] / HLT / src / AliL3RootTypes.h
CommitLineData
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 30typedef char Char_t; //Signed Character 1 byte
31typedef unsigned char UChar_t; //Unsigned Character 1 byte
32typedef short Short_t; //Signed Short integer 2 bytes
33typedef unsigned short UShort_t; //Unsigned Short integer 2 bytes
108615fc 34#ifdef R__INT16
3e87ef69 35typedef long Int_t; //Signed integer 4 bytes
36typedef unsigned long UInt_t; //Unsigned integer 4 bytes
108615fc 37#else
3e87ef69 38typedef int Int_t; //Signed integer 4 bytes
39typedef unsigned int UInt_t; //Unsigned integer 4 bytes
108615fc 40#endif
41#ifdef R__B64
3e87ef69 42typedef int Seek_t; //File pointer
43typedef long Long_t; //Signed long integer 4 bytes
44typedef unsigned long ULong_t; //Unsigned long integer 4 bytes
108615fc 45#else
3e87ef69 46typedef int Seek_t; //File pointer
47typedef long Long_t; //Signed long integer 8 bytes
48typedef unsigned long ULong_t; //Unsigned long integer 8 bytes
108615fc 49#endif
3e87ef69 50typedef float Float_t; //Float 4 bytes
51typedef double Double_t; //Float 8 bytes
52typedef char Text_t; //General string
53typedef unsigned char Bool_t; //Boolean (0=false, 1=true)
54typedef unsigned char Byte_t; //Byte (8 bits)
55typedef short Version_t; //Class version identifier
56typedef const char Option_t; //Option string
57typedef int Ssiz_t; //String size
58typedef float Real_t; //TVector and TMatrix element type
59typedef long long Long64_t; //Portable signed long integer 8 bytes
60typedef unsigned long long ULong64_t; //Portable unsigned long integer 8 bytes
108615fc 61
62typedef void (*VoidFuncPtr_t)(); //pointer to void function
63
64
65//---- constants ---------------------------------------------------------------
108615fc 66#ifndef NULL
67#define NULL 0
68#endif
69
70const Bool_t kTRUE = 1;
71const Bool_t kFALSE = 0;
72
73const Int_t kMaxInt = 2147483647;
74const Int_t kMaxShort = 32767;
75const size_t kBitsPerByte = 8;
76const 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
88union AliL3EventDataTypeRoot{
89 ULong_t fID;
90 unsigned char fDescr[8];
91};
92
93typedef 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