]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTDataTypes.cxx
- added skeleton of of offline clusterizer and tracker components
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataTypes.cxx
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
21 /** @file   AliHLTDataTypes.cxx
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.
30
31 /** multiple output data types */
32 const AliHLTComponentDataType kAliHLTMultipleDataType =  (AliHLTComponentDataType) {
33   sizeof(AliHLTComponentDataType),
34   {'M','U','L','T','I','P','L','E'},
35   kAliHLTDataOriginAny
36 }|kAliHLTDataOriginPrivate;
37
38 /** data to file exchange subscriber */
39 const AliHLTComponentDataType kAliHLTDataTypeFXSCalib =  (AliHLTComponentDataType) {
40   sizeof(AliHLTComponentDataType),
41   kAliHLTFXSCalibDataTypeID,
42   kAliHLTDataOriginAny
43 }|kAliHLTDataOriginOut;
44
45 /** DDL list data type */
46 const AliHLTComponentDataType kAliHLTDataTypeDDL  =  (AliHLTComponentDataType) {
47   sizeof(AliHLTComponentDataType),
48   kAliHLTDDLDataTypeID,
49   kAliHLTDataOriginAny
50 }|kAliHLTDataOriginOut;
51
52 /** SOR data type */
53 const AliHLTComponentDataType kAliHLTDataTypeSOR  =  (AliHLTComponentDataType) {
54   sizeof(AliHLTComponentDataType),
55   kAliHLTSORDataTypeID,
56   kAliHLTDataOriginAny
57 }|kAliHLTDataOriginPrivate;
58
59 /** EOR data type */
60 const AliHLTComponentDataType kAliHLTDataTypeEOR  =  (AliHLTComponentDataType) {
61   sizeof(AliHLTComponentDataType),
62   kAliHLTEORDataTypeID,
63   kAliHLTDataOriginAny
64 }|kAliHLTDataOriginPrivate;
65
66 /** Event type specification */
67 const AliHLTComponentDataType kAliHLTDataTypeEvent  =  (AliHLTComponentDataType) {
68   sizeof(AliHLTComponentDataType),
69   kAliHLTEventDataTypeID,
70   kAliHLTDataOriginAny
71 }|kAliHLTDataOriginPrivate;
72
73 /** Configuration event data type */
74 const AliHLTComponentDataType kAliHLTDataTypeComConf  =  (AliHLTComponentDataType) {
75   sizeof(AliHLTComponentDataType),
76   kAliHLTComConfDataTypeID,
77   kAliHLTDataOriginAny
78 }|kAliHLTDataOriginPrivate;
79
80 /** DCS value update event */
81 const AliHLTComponentDataType kAliHLTDataTypeUpdtDCS  =  (AliHLTComponentDataType) {
82   sizeof(AliHLTComponentDataType),
83   kAliHLTUpdtDCSDataTypeID,
84   kAliHLTDataOriginAny
85 }|kAliHLTDataOriginPrivate;
86
87 /** RAW DDL data specification, data publisher will set type id and origin correctly */
88 const AliHLTComponentDataType kAliHLTDataTypeDDLRaw =  (AliHLTComponentDataType) {
89   sizeof(AliHLTComponentDataType),
90   kAliHLTDDLRawDataTypeID,
91   kAliHLTDataOriginAny
92 };
93
94 /** ESD data specification */
95 const AliHLTComponentDataType kAliHLTDataTypeESDObject =  (AliHLTComponentDataType) {
96   sizeof(AliHLTComponentDataType),
97   kAliHLTESDObjectDataTypeID,
98   kAliHLTDataOriginAny
99 };
100
101 /** ESD tree data specification */
102 const AliHLTComponentDataType kAliHLTDataTypeESDTree =  (AliHLTComponentDataType) {
103   sizeof(AliHLTComponentDataType),
104   kAliHLTESDTreeDataTypeID,
105   kAliHLTDataOriginAny
106 };
107
108 /** AliRoot TreeD data specification */
109 const AliHLTComponentDataType kAliHLTDataTypeAliTreeD =  (AliHLTComponentDataType) {
110   sizeof(AliHLTComponentDataType),
111   kAliHLTTreeDDataTypeID,
112   kAliHLTDataOriginAny
113 };
114
115 /** AliRoot TreeR data specification */
116 const AliHLTComponentDataType kAliHLTDataTypeAliTreeR =  (AliHLTComponentDataType) {
117   sizeof(AliHLTComponentDataType),
118   kAliHLTTreeRDataTypeID,
119   kAliHLTDataOriginAny
120 };
121
122 /** 16 bit Hardware address selection data specification, origin is 'any' */
123 const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = (AliHLTComponentDataType) {
124   sizeof(AliHLTComponentDataType),
125   kAliHLTHwAddr16DataTypeID,
126   kAliHLTDataOriginAny
127 };
128
129 /** Event statistics */
130 const AliHLTComponentDataType kAliHLTDataTypeEventStatistics = (AliHLTComponentDataType) {
131   sizeof(AliHLTComponentDataType),
132   kAliHLTEventStatisticsDataTypeID,
133   kAliHLTDataOriginAny
134 };
135
136 /** Event summary */
137 const AliHLTComponentDataType kAliHLTDataTypeEventSummary = (AliHLTComponentDataType) {
138   sizeof(AliHLTComponentDataType),
139   kAliHLTEventSummaryDataTypeID,
140   kAliHLTDataOriginAny
141 }|kAliHLTDataOriginOut;
142
143 /** Run statistics */
144 const AliHLTComponentDataType kAliHLTDataTypeRunStatistics = (AliHLTComponentDataType) {
145   sizeof(AliHLTComponentDataType),
146   kAliHLTRunStatisticsDataTypeID,
147   kAliHLTDataOriginAny
148 };
149
150 /** Run summary */
151 const AliHLTComponentDataType kAliHLTDataTypeRunSummary = (AliHLTComponentDataType) {
152   sizeof(AliHLTComponentDataType),
153   kAliHLTRunSummaryDataTypeID,
154   kAliHLTDataOriginAny
155 }|kAliHLTDataOriginOut;
156
157 /** general ROOT TObject */
158 const AliHLTComponentDataType kAliHLTDataTypeTObject = (AliHLTComponentDataType) {
159   sizeof(AliHLTComponentDataType),
160   kAliHLTTObjectDataTypeID,
161   kAliHLTDataOriginAny
162 };
163
164 /** ROOT TObjArray */
165 const AliHLTComponentDataType kAliHLTDataTypeTObjArray = (AliHLTComponentDataType) {
166   sizeof(AliHLTComponentDataType),
167   kAliHLTTObjArrayDataTypeID,
168   kAliHLTDataOriginAny
169 };
170
171 /** ROOT TTree */
172 const AliHLTComponentDataType kAliHLTDataTypeTTree = (AliHLTComponentDataType) {
173   sizeof(AliHLTComponentDataType),
174   kAliHLTTTreeDataTypeID,
175   kAliHLTDataOriginAny
176 };
177
178 /** ROOT TH1 (can be used for all histograms, they derive from TH1) */
179 const AliHLTComponentDataType kAliHLTDataTypeHistogram = (AliHLTComponentDataType) {
180   sizeof(AliHLTComponentDataType),
181   kAliHLTHistogramDataTypeID,
182   kAliHLTDataOriginAny
183 };
184
185 /** ROOT TNtuple */
186 const AliHLTComponentDataType kAliHLTDataTypeTNtuple = (AliHLTComponentDataType) {
187   sizeof(AliHLTComponentDataType),
188   kAliHLTTNtupleDataTypeID,
189   kAliHLTDataOriginAny
190 };
191
192 //////////////////////////////////////////////////////////////////////////
193 //
194 // Data origin variables, to be used with the operator|
195 //
196 // AliHLTComponentDataType dt;
197 // dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC;
198 //
199 //////////////////////////////////////////////////////////////////////////
200
201 /** HLT out */
202 const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize]    = {'H','L','T',' '};
203
204 /** HLT/PubSub private internal */
205 const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize]= {'P','R','I','V'};
206
207 /** TPC */
208 const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize]    = {'T','P','C',' '};
209
210 /** PHOS */
211 const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize]   = {'P','H','O','S'};
212
213 /** MUON */
214 const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize]   = {'M','U','O','N'};
215
216 /** TRD */
217 const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize]    = {'T','R','D',' '};
218
219 /** ITS */
220 const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize]    = {'I','T','S',' '};