added event type for component configuration; corrected data type operator semantics...
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataTypes.cxx
CommitLineData
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.
30
de6593d0 31/** multiple output data types */
69347e0d 32const AliHLTComponentDataType kAliHLTMultipleDataType = (AliHLTComponentDataType) {
de6593d0 33 sizeof(AliHLTComponentDataType),
34 {'M','U','L','T','I','P','L','E'},
69347e0d 35 kAliHLTDataOriginAny
36}|kAliHLTDataOriginPrivate;
de6593d0 37
32db4144 38/** data to file exchange subscriber */
69347e0d 39const AliHLTComponentDataType kAliHLTDataTypeFXSCalib = (AliHLTComponentDataType) {
32db4144 40 sizeof(AliHLTComponentDataType),
41 kAliHLTFXSCalibDataTypeID,
69347e0d 42 kAliHLTDataOriginAny
43}|kAliHLTDataOriginOut;
32db4144 44
45/** DDL list data type */
69347e0d 46const AliHLTComponentDataType kAliHLTDataTypeDDL = (AliHLTComponentDataType) {
32db4144 47 sizeof(AliHLTComponentDataType),
48 kAliHLTDDLDataTypeID,
69347e0d 49 kAliHLTDataOriginAny
50}|kAliHLTDataOriginOut;
32db4144 51
52/** SOR data type */
69347e0d 53const AliHLTComponentDataType kAliHLTDataTypeSOR = (AliHLTComponentDataType) {
32db4144 54 sizeof(AliHLTComponentDataType),
55 kAliHLTSORDataTypeID,
69347e0d 56 kAliHLTDataOriginAny
57}|kAliHLTDataOriginPrivate;
32db4144 58
59/** EOR data type */
69347e0d 60const AliHLTComponentDataType kAliHLTDataTypeEOR = (AliHLTComponentDataType) {
32db4144 61 sizeof(AliHLTComponentDataType),
62 kAliHLTEORDataTypeID,
69347e0d 63 kAliHLTDataOriginAny
64}|kAliHLTDataOriginPrivate;
9d9ffd37 65
66/** Event type specification */
69347e0d 67const AliHLTComponentDataType kAliHLTDataTypeEvent = (AliHLTComponentDataType) {
9d9ffd37 68 sizeof(AliHLTComponentDataType),
69 kAliHLTEventDataTypeID,
69347e0d 70 kAliHLTDataOriginAny
853121af 71}|kAliHLTDataOriginPrivate;
72
73/** Configuration event data type */
74const AliHLTComponentDataType kAliHLTDataTypeComConf = (AliHLTComponentDataType) {
75 sizeof(AliHLTComponentDataType),
76 kAliHLTComConfDataTypeID,
77 kAliHLTDataOriginAny
69347e0d 78}|kAliHLTDataOriginPrivate;
3f850585 79
80/** RAW DDL data specification, data publisher will set type id and origin correctly */
69347e0d 81const AliHLTComponentDataType kAliHLTDataTypeDDLRaw = (AliHLTComponentDataType) {
3f850585 82 sizeof(AliHLTComponentDataType),
83 kAliHLTDDLRawDataTypeID,
84 kAliHLTDataOriginAny
85};
69347e0d 86
c704e290 87/** ESD data specification */
a978c0d5 88const AliHLTComponentDataType kAliHLTDataTypeESDObject = (AliHLTComponentDataType) {
89 sizeof(AliHLTComponentDataType),
90 kAliHLTESDObjectDataTypeID,
91 kAliHLTDataOriginAny
92};
93/** ESD tree data specification */
c704e290 94const AliHLTComponentDataType kAliHLTDataTypeESDTree = (AliHLTComponentDataType) {
95 sizeof(AliHLTComponentDataType),
96 kAliHLTESDTreeDataTypeID,
97 kAliHLTDataOriginAny
98};
99
64defa03 100/** 16 bit Hardware address selection data specification, origin is 'any' */
101const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = (AliHLTComponentDataType) {
102 sizeof(AliHLTComponentDataType),
103 kAliHLTHwAddr16DataTypeID,
104 kAliHLTDataOriginAny
105};
106
107
108
69347e0d 109//////////////////////////////////////////////////////////////////////////
110//
111// Data urigin variables, to be used with the operator|
112//
113// AliHLTComponentDataType dt;
114// dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC;
115//
116//////////////////////////////////////////////////////////////////////////
117
118/** HLT out */
119const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize] = {'H','L','T',' '};
120
121/** HLT/PubSub private internal */
122const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize]= {'P','R','I','V'};
123
124/** TPC */
125const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize] = {'T','P','C',' '};
126
127/** PHOS */
128const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize] = {'P','H','O','S'};
129
130/** MUON */
131const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize] = {'M','U','O','N'};
132
133/** TRD */
134const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize] = {'T','R','D',' '};
135
136/** ITS */
137const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize] = {'I','T','S',' '};