- adjusting binning of pad histograms to make single pad cluster contribution and...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCRootTypes.h
CommitLineData
a6c02c85 1// @(#) $Id$
4aa41877 2// Original: AliHLTRootTypes.h,v 1.12 2004/06/15 14:02:38 loizides
a6c02c85 3#ifndef ALIHLTTPCROOTTYPES_H
4#define ALIHLTTPCROOTTYPES_H
5
6
7//////////////////////////////////////////////////////////////////////////
8// //
9// Basic types used by HLT //
10// //
11//////////////////////////////////////////////////////////////////////////
12
13#ifndef no_root
14#include <TObject.h>
15#include <Rtypes.h>
16
17#else
18
19#if __GNUC__ == 3
20#include <cstdio>
21#include <cmath>
22#else
23#include <stdio.h>
24#include <math.h>
25#endif
26
27#ifndef ROOT_Rtypes
28//---- types -------------------------------------------------------------------
29
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
34#ifdef R__INT16
35typedef long Int_t; //Signed integer 4 bytes
36typedef unsigned long UInt_t; //Unsigned integer 4 bytes
37#else
38typedef int Int_t; //Signed integer 4 bytes
39typedef unsigned int UInt_t; //Unsigned integer 4 bytes
40#endif
41#ifdef R__B64
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
45#else
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
49#endif
50typedef float Float_t; //Float 4 bytes
51typedef double Double_t; //Float 8 bytes
52typedef char Text_t; //General string
53typedef bool Bool_t; //Boolean (0=false, 1=true) (bool)
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
61
62typedef void (*VoidFuncPtr_t)(); //pointer to void function
63
64
65//---- constants ---------------------------------------------------------------
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
81#define ClassDef(name,id)
82#define ClassImp(name)
83#endif //end of Rtypes
84#endif //end of root selection
85
86//---- Timms AliHLTTPCEventDataType from AliHLTTPCEventDataType.h
87
88union AliHLTTPCEventDataTypeRoot{
89 ULong_t fID;
90 unsigned char fDescr[8];
91};
92
93typedef union AliHLTTPCEventDataTypeRoot AliHLTTPCEventDataTypeRoot;
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