]>
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 | ||
32db4144 | 26 | // those types can not be implemented in the header files as rootcint |
27 | // can not cope with the type id and origin defines. | |
e5c0542d | 28 | // |
29 | // change Aug 01 2008 | |
30 | // some compilers can not cope with the fomerly used initialization of the | |
31 | // default data type variable by using the operator | like e.g | |
32 | // const AliHLTComponentDataType kAliHLTDataTypeComponentTable = (AliHLTComponentDataType) { | |
33 | // sizeof(AliHLTComponentDataType), | |
34 | // kAliHLTComponentTableDataTypeID, | |
35 | // kAliHLTDataOriginAny | |
36 | // }|kAliHLTDataOriginPrivate; | |
37 | // Mainly the compined type cast and utilization of the operator| is the problem. | |
38 | // An initializer function has been defined in order to work around this issue. | |
32db4144 | 39 | |
b4c0ba41 | 40 | #include "AliHLTDataTypes.h" |
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 | |
5fce88c6 | 54 | /** DAQ readout list */ |
55 | const AliHLTComponentDataType kAliHLTDataTypeDAQRDOUT = AliHLTComponentDataTypeInitializer(kAliHLTDAQRDOUTDataTypeID, kAliHLTDataOriginAny); | |
56 | ||
32db4144 | 57 | /** SOR data type */ |
e5c0542d | 58 | const char kAliHLTSORDataTypeIDstring[8] = kAliHLTSORDataTypeID; |
59 | const AliHLTComponentDataType kAliHLTDataTypeSOR = AliHLTComponentDataTypeInitializer(kAliHLTSORDataTypeIDstring, kAliHLTDataOriginPrivate); | |
32db4144 | 60 | |
61 | /** EOR data type */ | |
e5c0542d | 62 | const char kAliHLTEORDataTypeIDstring[8] = kAliHLTEORDataTypeID; |
63 | const AliHLTComponentDataType kAliHLTDataTypeEOR = AliHLTComponentDataTypeInitializer(kAliHLTEORDataTypeIDstring, kAliHLTDataOriginPrivate); | |
9d9ffd37 | 64 | |
45c0a780 | 65 | /** run type data block */ |
e5c0542d | 66 | const char kAliHLTRunTypeDataTypeIDstring[8] = kAliHLTRunTypeDataTypeID; |
67 | const AliHLTComponentDataType kAliHLTDataTypeRunType = AliHLTComponentDataTypeInitializer(kAliHLTRunTypeDataTypeIDstring, kAliHLTDataOriginPrivate); | |
45c0a780 | 68 | |
9d9ffd37 | 69 | /** Event type specification */ |
e5c0542d | 70 | const char kAliHLTEventDataTypeIDstring[8] = kAliHLTEventDataTypeID; |
71 | const AliHLTComponentDataType kAliHLTDataTypeEvent = AliHLTComponentDataTypeInitializer(kAliHLTEventDataTypeIDstring, kAliHLTDataOriginPrivate); | |
853121af | 72 | |
8761de93 | 73 | /** ECS parameter string */ |
74 | const char kAliHLTECSParamDataTypeIDstring[8] = kAliHLTECSParamDataTypeID; | |
75 | const AliHLTComponentDataType kAliHLTDataTypeECSParam = AliHLTComponentDataTypeInitializer(kAliHLTECSParamDataTypeIDstring, kAliHLTDataOriginPrivate); | |
76 | ||
853121af | 77 | /** Configuration event data type */ |
e5c0542d | 78 | const char kAliHLTComConfDataTypeIDstring[8] = kAliHLTComConfDataTypeID; |
79 | const AliHLTComponentDataType kAliHLTDataTypeComConf = AliHLTComponentDataTypeInitializer(kAliHLTComConfDataTypeIDstring, kAliHLTDataOriginPrivate); | |
b543e186 | 80 | |
81 | /** DCS value update event */ | |
e5c0542d | 82 | const char kAliHLTUpdtDCSDataTypeIDstring[8] = kAliHLTUpdtDCSDataTypeID; |
83 | const AliHLTComponentDataType kAliHLTDataTypeUpdtDCS = AliHLTComponentDataTypeInitializer(kAliHLTUpdtDCSDataTypeIDstring, kAliHLTDataOriginPrivate); | |
3f850585 | 84 | |
85 | /** RAW DDL data specification, data publisher will set type id and origin correctly */ | |
e5c0542d | 86 | const char kAliHLTDDLRawDataTypeIDstring[8] = kAliHLTDDLRawDataTypeID; |
87 | const AliHLTComponentDataType kAliHLTDataTypeDDLRaw = AliHLTComponentDataTypeInitializer(kAliHLTDDLRawDataTypeIDstring, kAliHLTDataOriginAny); | |
69347e0d | 88 | |
8761de93 | 89 | /** CLUSTERS data type */ |
90 | const char kAliHLTClustersDataTypeIDstring[8] = kAliHLTClustersDataTypeID; | |
91 | const AliHLTComponentDataType kAliHLTDataTypeClusters = AliHLTComponentDataTypeInitializer(kAliHLTClustersDataTypeIDstring, kAliHLTDataOriginAny); | |
92 | ||
fa5e8413 | 93 | /** MC data specification */ |
94 | const char kAliHLTMCObjectDataTypeIDstring[8] = kAliHLTMCObjectDataTypeID; | |
95 | const AliHLTComponentDataType kAliHLTDataTypeMCObject = AliHLTComponentDataTypeInitializer(kAliHLTMCObjectDataTypeIDstring, kAliHLTDataOriginOffline); | |
96 | ||
7f167a74 | 97 | /** ESD vertex data specification */ |
98 | const char kAliHLTESDVertexDataTypeIDstring[8] = kAliHLTESDVertexDataTypeID; | |
99 | const AliHLTComponentDataType kAliHLTDataTypeESDVertex = AliHLTComponentDataTypeInitializer(kAliHLTESDVertexDataTypeIDstring, kAliHLTDataOriginAny); | |
100 | ||
d9386025 | 101 | /** Global Vertexer data specification */ |
102 | const char kAliHLTDataTypeGlobalVertexerIDstring[8] = kAliHLTDataTypeGlobalVertexerID; | |
103 | const AliHLTComponentDataType kAliHLTDataTypeGlobalVertexer = AliHLTComponentDataTypeInitializer(kAliHLTDataTypeGlobalVertexerIDstring, kAliHLTDataOriginAny); | |
104 | ||
c704e290 | 105 | /** ESD data specification */ |
e5c0542d | 106 | const char kAliHLTESDObjectDataTypeIDstring[8] = kAliHLTESDObjectDataTypeID; |
107 | const AliHLTComponentDataType kAliHLTDataTypeESDObject = AliHLTComponentDataTypeInitializer(kAliHLTESDObjectDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 108 | |
a978c0d5 | 109 | /** ESD tree data specification */ |
e5c0542d | 110 | const char kAliHLTESDTreeDataTypeIDstring[8] = kAliHLTESDTreeDataTypeID; |
111 | const AliHLTComponentDataType kAliHLTDataTypeESDTree = AliHLTComponentDataTypeInitializer(kAliHLTESDTreeDataTypeIDstring, kAliHLTDataOriginAny); | |
c704e290 | 112 | |
1ac82ce6 | 113 | /** AliRoot TreeD data specification */ |
e5c0542d | 114 | const char kAliHLTTreeDDataTypeIDstring[8] = kAliHLTTreeDDataTypeID; |
115 | const AliHLTComponentDataType kAliHLTDataTypeAliTreeD = AliHLTComponentDataTypeInitializer(kAliHLTTreeDDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 116 | |
117 | /** AliRoot TreeR data specification */ | |
e5c0542d | 118 | const char kAliHLTTreeRDataTypeIDstring[8] = kAliHLTTreeRDataTypeID; |
119 | const AliHLTComponentDataType kAliHLTDataTypeAliTreeR = AliHLTComponentDataTypeInitializer(kAliHLTTreeRDataTypeIDstring, kAliHLTDataOriginAny); | |
1ac82ce6 | 120 | |
64defa03 | 121 | /** 16 bit Hardware address selection data specification, origin is 'any' */ |
e5c0542d | 122 | const char kAliHLTHwAddr16DataTypeIDstring[8] = kAliHLTHwAddr16DataTypeID; |
123 | const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = AliHLTComponentDataTypeInitializer(kAliHLTHwAddr16DataTypeIDstring, kAliHLTDataOriginAny); | |
64defa03 | 124 | |
2ff24e4c | 125 | /** Event statistics */ |
e5c0542d | 126 | const char kAliHLTEventStatisticsDataTypeIDstring[8] = kAliHLTEventStatisticsDataTypeID; |
127 | const AliHLTComponentDataType kAliHLTDataTypeEventStatistics = AliHLTComponentDataTypeInitializer(kAliHLTEventStatisticsDataTypeIDstring, kAliHLTDataOriginAny); | |
2ff24e4c | 128 | |
129 | /** Event summary */ | |
e5c0542d | 130 | const char kAliHLTEventSummaryDataTypeIDstring[8] = kAliHLTEventSummaryDataTypeID; |
131 | const AliHLTComponentDataType kAliHLTDataTypeEventSummary = AliHLTComponentDataTypeInitializer(kAliHLTEventSummaryDataTypeIDstring, kAliHLTDataOriginOut); | |
2ff24e4c | 132 | |
133 | /** Run statistics */ | |
e5c0542d | 134 | const char kAliHLTRunStatisticsDataTypeIDstring[8] = kAliHLTRunStatisticsDataTypeID; |
135 | const AliHLTComponentDataType kAliHLTDataTypeRunStatistics = AliHLTComponentDataTypeInitializer(kAliHLTRunStatisticsDataTypeIDstring, kAliHLTDataOriginAny); | |
2ff24e4c | 136 | |
137 | /** Run summary */ | |
e5c0542d | 138 | const char kAliHLTRunSummaryDataTypeIDstring[8] = kAliHLTRunSummaryDataTypeID; |
139 | const AliHLTComponentDataType kAliHLTDataTypeRunSummary = AliHLTComponentDataTypeInitializer(kAliHLTRunSummaryDataTypeIDstring, kAliHLTDataOriginOut); | |
64defa03 | 140 | |
5fce88c6 | 141 | /** Trigger decision */ |
142 | const char kAliHLTTriggerDecisionDataTypeIDstring[8] = kAliHLTTriggerDecisionDataTypeID; | |
143 | const AliHLTComponentDataType kAliHLTDataTypeTriggerDecision = AliHLTComponentDataTypeInitializer(kAliHLTTriggerDecisionDataTypeIDstring, kAliHLTDataOriginOut); | |
144 | ||
025443e0 | 145 | /** HLT readout list from trigger component */ |
146 | const char kAliHLTReadoutListDataTypeIDstring[8] = kAliHLTReadoutListDataTypeID; | |
147 | const AliHLTComponentDataType kAliHLTDataTypeReadoutList = AliHLTComponentDataTypeInitializer(kAliHLTReadoutListDataTypeIDstring, kAliHLTDataOriginOut); | |
148 | ||
5fce88c6 | 149 | /** Global trigger decision */ |
150 | const char kAliHLTGlobalTriggerDataTypeIDstring[8] = kAliHLTGlobalTriggerDataTypeID; | |
151 | const AliHLTComponentDataType kAliHLTDataTypeGlobalTrigger = AliHLTComponentDataTypeInitializer(kAliHLTGlobalTriggerDataTypeIDstring, kAliHLTDataOriginOut); | |
152 | ||
a0aeb701 | 153 | /** Component statistics */ |
e5c0542d | 154 | const char kAliHLTComponentStatisticsDataTypeIDstring[8] = kAliHLTComponentStatisticsDataTypeID; |
155 | const AliHLTComponentDataType kAliHLTDataTypeComponentStatistics = AliHLTComponentDataTypeInitializer(kAliHLTComponentStatisticsDataTypeIDstring, kAliHLTDataOriginPrivate); | |
a0aeb701 | 156 | |
157 | /** Component table */ | |
e5c0542d | 158 | const char kAliHLTComponentTableDataTypeIDstring[8] = kAliHLTComponentTableDataTypeID; |
159 | const AliHLTComponentDataType kAliHLTDataTypeComponentTable = AliHLTComponentDataTypeInitializer(kAliHLTComponentTableDataTypeIDstring, kAliHLTDataOriginPrivate); | |
a0aeb701 | 160 | |
c736de25 | 161 | /** general ROOT TObject */ |
e5c0542d | 162 | const char kAliHLTTObjectDataTypeIDstring[8] = kAliHLTTObjectDataTypeID; |
163 | const AliHLTComponentDataType kAliHLTDataTypeTObject = AliHLTComponentDataTypeInitializer(kAliHLTTObjectDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 164 | |
815ccc7c | 165 | /** ROOT streamer info */ |
166 | const char kAliHLTStreamerInfoDataTypeIDstring[8] = kAliHLTStreamerInfoDataTypeID; | |
167 | const AliHLTComponentDataType kAliHLTDataTypeStreamerInfo = AliHLTComponentDataTypeInitializer(kAliHLTStreamerInfoDataTypeIDstring, kAliHLTDataOriginHLT); | |
168 | ||
c736de25 | 169 | /** ROOT TObjArray */ |
e5c0542d | 170 | const char kAliHLTTObjArrayDataTypeIDstring[8] = kAliHLTTObjArrayDataTypeID; |
171 | const AliHLTComponentDataType kAliHLTDataTypeTObjArray = AliHLTComponentDataTypeInitializer(kAliHLTTObjArrayDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 172 | |
173 | /** ROOT TTree */ | |
e5c0542d | 174 | const char kAliHLTTTreeDataTypeIDstring[8] = kAliHLTTTreeDataTypeID; |
175 | const AliHLTComponentDataType kAliHLTDataTypeTTree = AliHLTComponentDataTypeInitializer(kAliHLTTTreeDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 176 | |
177 | /** ROOT TH1 (can be used for all histograms, they derive from TH1) */ | |
e5c0542d | 178 | const char kAliHLTHistogramDataTypeIDstring[8] = kAliHLTHistogramDataTypeID; |
179 | const AliHLTComponentDataType kAliHLTDataTypeHistogram = AliHLTComponentDataTypeInitializer(kAliHLTHistogramDataTypeIDstring, kAliHLTDataOriginAny); | |
c736de25 | 180 | |
181 | /** ROOT TNtuple */ | |
e5c0542d | 182 | const char kAliHLTTNtupleDataTypeIDstring[8] = kAliHLTTNtupleDataTypeID; |
183 | const AliHLTComponentDataType kAliHLTDataTypeTNtuple = AliHLTComponentDataTypeInitializer(kAliHLTTNtupleDataTypeIDstring, kAliHLTDataOriginAny); | |
64defa03 | 184 | |
7398abba | 185 | /** Array of HLT Tracks (AliHLTTracksData) */ |
186 | const char kAliHLTTrackDataTypeIDstring[8] = kAliHLTTrackDataTypeID; | |
366c3cad | 187 | const AliHLTComponentDataType kAliHLTDataTypeTrack = AliHLTComponentDataTypeInitializer(kAliHLTTrackDataTypeIDstring, kAliHLTDataOriginAny); |
7398abba | 188 | |
30f0c21d | 189 | /** Array of Track MC ids */ |
190 | const char kAliHLTTrackMCDataTypeIDstring[8] = kAliHLTTrackMCDataTypeID; | |
191 | const AliHLTComponentDataType kAliHLTDataTypeTrackMC = AliHLTComponentDataTypeInitializer(kAliHLTTrackMCDataTypeIDstring, kAliHLTDataOriginAny); | |
192 | ||
7398abba | 193 | /** TClonesArray of AliExternalTrackParam */ |
194 | const char kAliHLTExternalTrackParamDataTypeIDstring[8] = kAliHLTExternalTrackParamDataTypeID; | |
195 | const AliHLTComponentDataType kAliHLTDataTypeExternalTrackParam = AliHLTComponentDataTypeInitializer(kAliHLTExternalTrackParamDataTypeIDstring, kAliHLTDataOriginAny); | |
196 | ||
5341a1bf | 197 | /** Container of HLT Jets (AliHLTJETJets) */ |
198 | const char kAliHLTJetDataTypeIDstring[8] = kAliHLTJetDataTypeID; | |
199 | const AliHLTComponentDataType kAliHLTDataTypeJet = AliHLTComponentDataTypeInitializer(kAliHLTJetDataTypeIDstring, kAliHLTDataOriginAny); | |
200 | ||
6edb0fb5 | 201 | /** Container of HLT ITS tracks */ |
202 | const AliHLTComponentDataType fgkITSTracksDataType = AliHLTComponentDataTypeInitializer( "ITSTRACK", kAliHLTDataOriginITS ); | |
203 | ||
b91f757c | 204 | /** Container of HLT calorimeter clusters */ |
9f2da5aa | 205 | const AliHLTComponentDataType kAliHLTDataTypeCaloCluster = AliHLTComponentDataTypeInitializer( "CALOCLUS", kAliHLTDataOriginAny ); |
b91f757c | 206 | |
0973c527 | 207 | /** Container of dEdx */ |
208 | const AliHLTComponentDataType kAliHLTDataTypedEdx = AliHLTComponentDataTypeInitializer( "DEDX ", kAliHLTDataOriginAny ); | |
209 | ||
69347e0d | 210 | ////////////////////////////////////////////////////////////////////////// |
211 | // | |
2ff24e4c | 212 | // Data origin variables, to be used with the operator| |
69347e0d | 213 | // |
214 | // AliHLTComponentDataType dt; | |
215 | // dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC; | |
216 | // | |
217 | ////////////////////////////////////////////////////////////////////////// | |
218 | ||
219 | /** HLT out */ | |
859fbc05 | 220 | const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize] = {'H','L','T',' '}; |
69347e0d | 221 | |
fa5e8413 | 222 | /** HLT */ |
223 | const char kAliHLTDataOriginHLT[kAliHLTComponentDataTypefOriginSize] = {'H','L','T',' '}; | |
224 | ||
225 | /** Offline */ | |
226 | const char kAliHLTDataOriginOffline[kAliHLTComponentDataTypefOriginSize] = {'O','F','F','L'}; | |
227 | ||
69347e0d | 228 | /** HLT/PubSub private internal */ |
859fbc05 | 229 | const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize] = {'P','R','I','V'}; |
69347e0d | 230 | |
231 | /** TPC */ | |
859fbc05 | 232 | const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize] = {'T','P','C',' '}; |
69347e0d | 233 | |
234 | /** PHOS */ | |
859fbc05 | 235 | const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize] = {'P','H','O','S'}; |
69347e0d | 236 | |
629266d1 | 237 | /** FMD */ |
238 | const char kAliHLTDataOriginFMD[kAliHLTComponentDataTypefOriginSize] = {'F','M','D',' '}; | |
239 | ||
69347e0d | 240 | /** MUON */ |
859fbc05 | 241 | const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize] = {'M','U','O','N'}; |
69347e0d | 242 | |
243 | /** TRD */ | |
859fbc05 | 244 | const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize] = {'T','R','D',' '}; |
69347e0d | 245 | |
246 | /** ITS */ | |
859fbc05 | 247 | const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize] = {'I','T','S',' '}; |
248 | ||
b7ed2eb4 | 249 | /** ITSOut */ |
250 | const char kAliHLTDataOriginITSOut[kAliHLTComponentDataTypefOriginSize] = {'I','T','S','O'}; | |
251 | ||
859fbc05 | 252 | /** ITS-SPD */ |
253 | const char kAliHLTDataOriginITSSPD[kAliHLTComponentDataTypefOriginSize] = {'I','S','P','D'}; | |
254 | ||
255 | /** ITS-SDD */ | |
256 | const char kAliHLTDataOriginITSSDD[kAliHLTComponentDataTypefOriginSize] = {'I','S','D','D'}; | |
257 | ||
258 | /** ITS-SSD */ | |
259 | const char kAliHLTDataOriginITSSSD[kAliHLTComponentDataTypefOriginSize] = {'I','S','S','D'}; | |
703bcca6 | 260 | |
261 | /** Sample */ | |
859fbc05 | 262 | const char kAliHLTDataOriginSample[kAliHLTComponentDataTypefOriginSize] = {'S','M','P','L'}; |
d9dd3bc8 | 263 | |
264 | /** EMCAL */ | |
859fbc05 | 265 | const char kAliHLTDataOriginEMCAL[kAliHLTComponentDataTypefOriginSize] = {'E','M','C','L'}; |
fa5e8413 | 266 |