]>
Commit | Line | Data |
---|---|---|
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 | /** RAW DDL data specification, data publisher will set type id and origin correctly */ | |
74 | const AliHLTComponentDataType kAliHLTDataTypeDDLRaw = (AliHLTComponentDataType) { | |
75 | sizeof(AliHLTComponentDataType), | |
76 | kAliHLTDDLRawDataTypeID, | |
77 | kAliHLTDataOriginAny | |
78 | }; | |
79 | ||
80 | /** ESD data specification */ | |
81 | const AliHLTComponentDataType kAliHLTDataTypeESDObject = (AliHLTComponentDataType) { | |
82 | sizeof(AliHLTComponentDataType), | |
83 | kAliHLTESDObjectDataTypeID, | |
84 | kAliHLTDataOriginAny | |
85 | }; | |
86 | /** ESD tree data specification */ | |
87 | const AliHLTComponentDataType kAliHLTDataTypeESDTree = (AliHLTComponentDataType) { | |
88 | sizeof(AliHLTComponentDataType), | |
89 | kAliHLTESDTreeDataTypeID, | |
90 | kAliHLTDataOriginAny | |
91 | }; | |
92 | ||
93 | /** 16 bit Hardware address selection data specification, origin is 'any' */ | |
94 | const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = (AliHLTComponentDataType) { | |
95 | sizeof(AliHLTComponentDataType), | |
96 | kAliHLTHwAddr16DataTypeID, | |
97 | kAliHLTDataOriginAny | |
98 | }; | |
99 | ||
100 | ||
101 | ||
102 | ////////////////////////////////////////////////////////////////////////// | |
103 | // | |
104 | // Data urigin variables, to be used with the operator| | |
105 | // | |
106 | // AliHLTComponentDataType dt; | |
107 | // dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC; | |
108 | // | |
109 | ////////////////////////////////////////////////////////////////////////// | |
110 | ||
111 | /** HLT out */ | |
112 | const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize] = {'H','L','T',' '}; | |
113 | ||
114 | /** HLT/PubSub private internal */ | |
115 | const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize]= {'P','R','I','V'}; | |
116 | ||
117 | /** TPC */ | |
118 | const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize] = {'T','P','C',' '}; | |
119 | ||
120 | /** PHOS */ | |
121 | const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize] = {'P','H','O','S'}; | |
122 | ||
123 | /** MUON */ | |
124 | const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize] = {'M','U','O','N'}; | |
125 | ||
126 | /** TRD */ | |
127 | const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize] = {'T','R','D',' '}; | |
128 | ||
129 | /** ITS */ | |
130 | const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize] = {'I','T','S',' '}; |