]>
Commit | Line | Data |
---|---|---|
32db4144 | 1 | // $Id$ |
2 | ||
3 | /************************************************************************** | |
4 | * This file is property of and copyright by the ALICE HLT Project * | |
5 | * ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> * | |
8 | * Timm Steinbeck <timm@kip.uni-heidelberg.de> * | |
9 | * Jochen Thaeder <thaeder@kip.uni-heidelberg.de> * | |
10 | * for The ALICE HLT Project. * | |
11 | * * | |
12 | * Permission to use, copy, modify and distribute this software and its * | |
13 | * documentation strictly for non-commercial purposes is hereby granted * | |
14 | * without fee, provided that the above copyright notice appears in all * | |
15 | * copies and that both the copyright notice and this permission notice * | |
16 | * appear in the supporting documentation. The authors make no claims * | |
17 | * about the suitability of this software for any purpose. It is * | |
18 | * provided "as is" without express or implied warranty. * | |
19 | **************************************************************************/ | |
20 | ||
879c1a3a | 21 | /** @file AliHLTDataTypes.cxx |
32db4144 | 22 | @author Matthias Richter, Timm Steinbeck, Jochen Thaeder |
23 | @date | |
24 | @brief Implementation of data types. */ | |
25 | ||
26 | #include "AliHLTDataTypes.h" | |
27 | ||
28 | // those types can not be implemented in the header files as rootcint | |
29 | // can not cope with the type id and origin defines. | |
e5c0542d | 30 | // |
31 | // change Aug 01 2008 | |
32 | // some compilers can not cope with the fomerly used initialization of the | |
33 | // default data type variable by using the operator | like e.g | |
34 | // const AliHLTComponentDataType kAliHLTDataTypeComponentTable = (AliHLTComponentDataType) { | |
35 | // sizeof(AliHLTComponentDataType), | |
36 | // kAliHLTComponentTableDataTypeID, | |
37 | // kAliHLTDataOriginAny | |
38 | // }|kAliHLTDataOriginPrivate; | |
39 | // Mainly the compined type cast and utilization of the operator| is the problem. | |
40 | // An initializer function has been defined in order to work around this issue. | |
32db4144 | 41 | |
de6593d0 | 42 | /** multiple output data types */ |
e5c0542d | 43 | const char kAliHLTMultipleDataTypeIDstring[8] = {'M','U','L','T','I','P','L','E'}; |
44 | const AliHLTComponentDataType kAliHLTMultipleDataType = AliHLTComponentDataTypeInitializer(kAliHLTMultipleDataTypeIDstring, kAliHLTDataOriginPrivate); | |
de6593d0 | 45 | |
32db4144 | 46 | /** data to file exchange subscriber */ |
e5c0542d | 47 | const char kAliHLTFXSCalibDataTypeIDstring[8] = kAliHLTFXSCalibDataTypeID; |
48 | const AliHLTComponentDataType kAliHLTDataTypeFXSCalib = AliHLTComponentDataTypeInitializer(kAliHLTFXSCalibDataTypeIDstring, kAliHLTDataOriginOut); | |
32db4144 | 49 | |
50 | /** DDL list data type */ | |
e5c0542d | 51 | const char kAliHLTDDLDataTypeIDstring[8] = kAliHLTDDLDataTypeID; |
52 | const AliHLTComponentDataType kAliHLTDataTypeDDL = AliHLTComponentDataTypeInitializer(kAliHLTDDLDataTypeIDstring, kAliHLTDataOriginOut); | |
32db4144 | 53 | |
54 | /** SOR data type */ | |
e5c0542d | 55 | const char kAliHLTSORDataTypeIDstring[8] = kAliHLTSORDataTypeID; |
56 | const AliHLTComponentDataType kAliHLTDataTypeSOR = AliHLTComponentDataTypeInitializer(kAliHLTSORDataTypeIDstring, kAliHLTDataOriginPrivate); | |
32db4144 | 57 | |
58 | /** EOR data type */ | |
e5c0542d | 59 | const char kAliHLTEORDataTypeIDstring[8] = kAliHLTEORDataTypeID; |
60 | const AliHLTComponentDataType kAliHLTDataTypeEOR = AliHLTComponentDataTypeInitializer(kAliHLTEORDataTypeIDstring, kAliHLTDataOriginPrivate); | |
9d9ffd37 | 61 | |
45c0a780 | 62 | /** run type data block */ |
e5c0542d | 63 | const char kAliHLTRunTypeDataTypeIDstring[8] = kAliHLTRunTypeDataTypeID; |
64 | const AliHLTComponentDataType kAliHLTDataTypeRunType = AliHLTComponentDataTypeInitializer(kAliHLTRunTypeDataTypeIDstring, kAliHLTDataOriginPrivate); | |
45c0a780 | 65 | |
9d9ffd37 | 66 | /** Event type specification */ |
e5c0542d | 67 | const char kAliHLTEventDataTypeIDstring[8] = kAliHLTEventDataTypeID; |
68 | const AliHLTComponentDataType kAliHLTDataTypeEvent = AliHLTComponentDataTypeInitializer(kAliHLTEventDataTypeIDstring, kAliHLTDataOriginPrivate); | |
853121af | 69 | |
70 | /** Configuration event data type */ | |
e5c0542d | 71 | const char kAliHLTComConfDataTypeIDstring[8] = kAliHLTComConfDataTypeID; |
72 | const AliHLTComponentDataType kAliHLTDataTypeComConf = AliHLTComponentDataTypeInitializer(kAliHLTComConfDataTypeIDstring, kAliHLTDataOriginPrivate); | |
b543e186 | 73 | |
74 | /** DCS value update event */ | |
e5c0542d | 75 | const char kAliHLTUpdtDCSDataTypeIDstring[8] = kAliHLTUpdtDCSDataTypeID; |
76 | const AliHLTComponentDataType kAliHLTDataTypeUpdtDCS = AliHLTComponentDataTypeInitializer(kAliHLTUpdtDCSDataTypeIDstring, kAliHLTDataOriginPrivate); | |
3f850585 | 77 | |
78 | /** RAW DDL data specification, data publisher will set type id and origin correctly */ | |
e5c0542d | 79 | const char kAliHLTDDLRawDataTypeIDstring[8] = kAliHLTDDLRawDataTypeID; |
80 | const AliHLTComponentDataType kAliHLTDataTypeDDLRaw = AliHLTComponentDataTypeInitializer(kAliHLTDDLRawDataTypeIDstring, kAliHLTDataOriginAny); | |
69347e0d | 81 | |
c704e290 | 82 | /** ESD data specification */ |
e5c0542d | 83 | const char kAliHLTESDObjectDataTypeIDstring[8] = kAliHLTESDObjectDataTypeID; |
84 | const AliHLTComponentDataType kAliHLTDataTypeESDObject = AliHLTComponentDataTypeInitializer(kAliHLTESDObjectDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 85 | |
a978c0d5 | 86 | /** ESD tree data specification */ |
e5c0542d | 87 | const char kAliHLTESDTreeDataTypeIDstring[8] = kAliHLTESDTreeDataTypeID; |
88 | const AliHLTComponentDataType kAliHLTDataTypeESDTree = AliHLTComponentDataTypeInitializer(kAliHLTESDTreeDataTypeIDstring, kAliHLTDataOriginAny); | |
c704e290 | 89 | |
1ac82ce6 | 90 | /** AliRoot TreeD data specification */ |
e5c0542d | 91 | const char kAliHLTTreeDDataTypeIDstring[8] = kAliHLTTreeDDataTypeID; |
92 | const AliHLTComponentDataType kAliHLTDataTypeAliTreeD = AliHLTComponentDataTypeInitializer(kAliHLTTreeDDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 93 | |
94 | /** AliRoot TreeR data specification */ | |
e5c0542d | 95 | const char kAliHLTTreeRDataTypeIDstring[8] = kAliHLTTreeRDataTypeID; |
96 | const AliHLTComponentDataType kAliHLTDataTypeAliTreeR = AliHLTComponentDataTypeInitializer(kAliHLTTreeRDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 97 | |
64defa03 | 98 | /** 16 bit Hardware address selection data specification, origin is 'any' */ |
e5c0542d | 99 | const char kAliHLTHwAddr16DataTypeIDstring[8] = kAliHLTHwAddr16DataTypeID; |
100 | const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = AliHLTComponentDataTypeInitializer(kAliHLTHwAddr16DataTypeIDstring, kAliHLTDataOriginAny); | |
64defa03 | 101 | |
2ff24e4c | 102 | /** Event statistics */ |
e5c0542d | 103 | const char kAliHLTEventStatisticsDataTypeIDstring[8] = kAliHLTEventStatisticsDataTypeID; |
104 | const AliHLTComponentDataType kAliHLTDataTypeEventStatistics = AliHLTComponentDataTypeInitializer(kAliHLTEventStatisticsDataTypeIDstring, kAliHLTDataOriginAny); | |
2ff24e4c | 105 | |
106 | /** Event summary */ | |
e5c0542d | 107 | const char kAliHLTEventSummaryDataTypeIDstring[8] = kAliHLTEventSummaryDataTypeID; |
108 | const AliHLTComponentDataType kAliHLTDataTypeEventSummary = AliHLTComponentDataTypeInitializer(kAliHLTEventSummaryDataTypeIDstring, kAliHLTDataOriginOut); | |
2ff24e4c | 109 | |
110 | /** Run statistics */ | |
e5c0542d | 111 | const char kAliHLTRunStatisticsDataTypeIDstring[8] = kAliHLTRunStatisticsDataTypeID; |
112 | const AliHLTComponentDataType kAliHLTDataTypeRunStatistics = AliHLTComponentDataTypeInitializer(kAliHLTRunStatisticsDataTypeIDstring, kAliHLTDataOriginAny); | |
2ff24e4c | 113 | |
114 | /** Run summary */ | |
e5c0542d | 115 | const char kAliHLTRunSummaryDataTypeIDstring[8] = kAliHLTRunSummaryDataTypeID; |
116 | const AliHLTComponentDataType kAliHLTDataTypeRunSummary = AliHLTComponentDataTypeInitializer(kAliHLTRunSummaryDataTypeIDstring, kAliHLTDataOriginOut); | |
64defa03 | 117 | |
a0aeb701 | 118 | /** Component statistics */ |
e5c0542d | 119 | const char kAliHLTComponentStatisticsDataTypeIDstring[8] = kAliHLTComponentStatisticsDataTypeID; |
120 | const AliHLTComponentDataType kAliHLTDataTypeComponentStatistics = AliHLTComponentDataTypeInitializer(kAliHLTComponentStatisticsDataTypeIDstring, kAliHLTDataOriginPrivate); | |
a0aeb701 | 121 | |
122 | /** Component table */ | |
e5c0542d | 123 | const char kAliHLTComponentTableDataTypeIDstring[8] = kAliHLTComponentTableDataTypeID; |
124 | const AliHLTComponentDataType kAliHLTDataTypeComponentTable = AliHLTComponentDataTypeInitializer(kAliHLTComponentTableDataTypeIDstring, kAliHLTDataOriginPrivate); | |
a0aeb701 | 125 | |
c736de25 | 126 | /** general ROOT TObject */ |
e5c0542d | 127 | const char kAliHLTTObjectDataTypeIDstring[8] = kAliHLTTObjectDataTypeID; |
128 | const AliHLTComponentDataType kAliHLTDataTypeTObject = AliHLTComponentDataTypeInitializer(kAliHLTTObjectDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 129 | |
130 | /** ROOT TObjArray */ | |
e5c0542d | 131 | const char kAliHLTTObjArrayDataTypeIDstring[8] = kAliHLTTObjArrayDataTypeID; |
132 | const AliHLTComponentDataType kAliHLTDataTypeTObjArray = AliHLTComponentDataTypeInitializer(kAliHLTTObjArrayDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 133 | |
134 | /** ROOT TTree */ | |
e5c0542d | 135 | const char kAliHLTTTreeDataTypeIDstring[8] = kAliHLTTTreeDataTypeID; |
136 | const AliHLTComponentDataType kAliHLTDataTypeTTree = AliHLTComponentDataTypeInitializer(kAliHLTTTreeDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 137 | |
138 | /** ROOT TH1 (can be used for all histograms, they derive from TH1) */ | |
e5c0542d | 139 | const char kAliHLTHistogramDataTypeIDstring[8] = kAliHLTHistogramDataTypeID; |
140 | const AliHLTComponentDataType kAliHLTDataTypeHistogram = AliHLTComponentDataTypeInitializer(kAliHLTHistogramDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 141 | |
142 | /** ROOT TNtuple */ | |
e5c0542d | 143 | const char kAliHLTTNtupleDataTypeIDstring[8] = kAliHLTTNtupleDataTypeID; |
144 | const AliHLTComponentDataType kAliHLTDataTypeTNtuple = AliHLTComponentDataTypeInitializer(kAliHLTTNtupleDataTypeIDstring, kAliHLTDataOriginAny); | |
64defa03 | 145 | |
7398abba | 146 | /** Array of HLT Tracks (AliHLTTracksData) */ |
147 | const char kAliHLTTrackDataTypeIDstring[8] = kAliHLTTrackDataTypeID; | |
148 | const AliHLTComponentDataType kAliHLTTrack = AliHLTComponentDataTypeInitializer(kAliHLTTrackDataTypeIDstring, kAliHLTDataOriginAny); | |
149 | ||
150 | /** TClonesArray of AliExternalTrackParam */ | |
151 | const char kAliHLTExternalTrackParamDataTypeIDstring[8] = kAliHLTExternalTrackParamDataTypeID; | |
152 | const AliHLTComponentDataType kAliHLTDataTypeExternalTrackParam = AliHLTComponentDataTypeInitializer(kAliHLTExternalTrackParamDataTypeIDstring, kAliHLTDataOriginAny); | |
153 | ||
69347e0d | 154 | ////////////////////////////////////////////////////////////////////////// |
155 | // | |
2ff24e4c | 156 | // Data origin variables, to be used with the operator| |
69347e0d | 157 | // |
158 | // AliHLTComponentDataType dt; | |
159 | // dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC; | |
160 | // | |
161 | ////////////////////////////////////////////////////////////////////////// | |
162 | ||
163 | /** HLT out */ | |
859fbc05 | 164 | const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize] = {'H','L','T',' '}; |
69347e0d | 165 | |
166 | /** HLT/PubSub private internal */ | |
859fbc05 | 167 | const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize] = {'P','R','I','V'}; |
69347e0d | 168 | |
169 | /** TPC */ | |
859fbc05 | 170 | const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize] = {'T','P','C',' '}; |
69347e0d | 171 | |
172 | /** PHOS */ | |
859fbc05 | 173 | const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize] = {'P','H','O','S'}; |
69347e0d | 174 | |
629266d1 | 175 | /** FMD */ |
176 | const char kAliHLTDataOriginFMD[kAliHLTComponentDataTypefOriginSize] = {'F','M','D',' '}; | |
177 | ||
69347e0d | 178 | /** MUON */ |
859fbc05 | 179 | const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize] = {'M','U','O','N'}; |
69347e0d | 180 | |
181 | /** TRD */ | |
859fbc05 | 182 | const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize] = {'T','R','D',' '}; |
69347e0d | 183 | |
184 | /** ITS */ | |
859fbc05 | 185 | const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize] = {'I','T','S',' '}; |
186 | ||
187 | /** ITS-SPD */ | |
188 | const char kAliHLTDataOriginITSSPD[kAliHLTComponentDataTypefOriginSize] = {'I','S','P','D'}; | |
189 | ||
190 | /** ITS-SDD */ | |
191 | const char kAliHLTDataOriginITSSDD[kAliHLTComponentDataTypefOriginSize] = {'I','S','D','D'}; | |
192 | ||
193 | /** ITS-SSD */ | |
194 | const char kAliHLTDataOriginITSSSD[kAliHLTComponentDataTypefOriginSize] = {'I','S','S','D'}; | |
703bcca6 | 195 | |
196 | /** Sample */ | |
859fbc05 | 197 | const char kAliHLTDataOriginSample[kAliHLTComponentDataTypefOriginSize] = {'S','M','P','L'}; |
d9dd3bc8 | 198 | |
199 | /** EMCAL */ | |
859fbc05 | 200 | const char kAliHLTDataOriginEMCAL[kAliHLTComponentDataTypefOriginSize] = {'E','M','C','L'}; |