]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTDataTypes.cxx
code documentation; minor enhancement of BlockFilter
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataTypes.cxx
index e5678c38375312ba5dd31b224925effa84ac65ae..e3dcf1fec09dfea553e4bef6e227d64548a70145 100644 (file)
 // those types can not be implemented in the header files as rootcint
 // can not cope with the type id and origin defines.
 
+/** multiple output data types */
+const AliHLTComponentDataType kAliHLTMultipleDataType =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  {'M','U','L','T','I','P','L','E'},
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
+
 /** data to file exchange subscriber */
-const AliHLTComponentDataType kAliHLTDataTypeFXSCalib = {
+const AliHLTComponentDataType kAliHLTDataTypeFXSCalib =  (AliHLTComponentDataType) {
   sizeof(AliHLTComponentDataType),
   kAliHLTFXSCalibDataTypeID,
-  kAliHLTDataOriginOut
-};
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginOut;
 
 /** DDL list data type */
-const AliHLTComponentDataType kAliHLTDataTypeDDL  = {
+const AliHLTComponentDataType kAliHLTDataTypeDDL  =  (AliHLTComponentDataType) {
   sizeof(AliHLTComponentDataType),
   kAliHLTDDLDataTypeID,
-  kAliHLTDataOriginOut
-};
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginOut;
 
 /** SOR data type */
-const AliHLTComponentDataType kAliHLTDataTypeSOR  = {
+const AliHLTComponentDataType kAliHLTDataTypeSOR  =  (AliHLTComponentDataType) {
   sizeof(AliHLTComponentDataType),
   kAliHLTSORDataTypeID,
-  kAliHLTDataOriginPrivate
-};
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
 
 /** EOR data type */
-const AliHLTComponentDataType kAliHLTDataTypeEOR  = {
+const AliHLTComponentDataType kAliHLTDataTypeEOR  =  (AliHLTComponentDataType) {
   sizeof(AliHLTComponentDataType),
   kAliHLTEORDataTypeID,
-  kAliHLTDataOriginPrivate
-};
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
 
 /** Event type specification */
-const AliHLTComponentDataType kAliHLTDataTypeEvent  = {
+const AliHLTComponentDataType kAliHLTDataTypeEvent  =  (AliHLTComponentDataType) {
   sizeof(AliHLTComponentDataType),
   kAliHLTEventDataTypeID,
-  kAliHLTDataOriginPrivate
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
+
+/** Configuration event data type */
+const AliHLTComponentDataType kAliHLTDataTypeComConf  =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTComConfDataTypeID,
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
+
+/** DCS value update event */
+const AliHLTComponentDataType kAliHLTDataTypeUpdtDCS  =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTUpdtDCSDataTypeID,
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginPrivate;
+
+/** RAW DDL data specification, data publisher will set type id and origin correctly */
+const AliHLTComponentDataType kAliHLTDataTypeDDLRaw =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTDDLRawDataTypeID,
+  kAliHLTDataOriginAny
 };
+
+/** ESD data specification */
+const AliHLTComponentDataType kAliHLTDataTypeESDObject =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTESDObjectDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** ESD tree data specification */
+const AliHLTComponentDataType kAliHLTDataTypeESDTree =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTESDTreeDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** AliRoot TreeD data specification */
+const AliHLTComponentDataType kAliHLTDataTypeAliTreeD =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTreeDDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** AliRoot TreeR data specification */
+const AliHLTComponentDataType kAliHLTDataTypeAliTreeR =  (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTreeRDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** 16 bit Hardware address selection data specification, origin is 'any' */
+const AliHLTComponentDataType kAliHLTDataTypeHwAddr16 = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTHwAddr16DataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** Event statistics */
+const AliHLTComponentDataType kAliHLTDataTypeEventStatistics = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTEventStatisticsDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** Event summary */
+const AliHLTComponentDataType kAliHLTDataTypeEventSummary = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTEventSummaryDataTypeID,
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginOut;
+
+/** Run statistics */
+const AliHLTComponentDataType kAliHLTDataTypeRunStatistics = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTRunStatisticsDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** Run summary */
+const AliHLTComponentDataType kAliHLTDataTypeRunSummary = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTRunSummaryDataTypeID,
+  kAliHLTDataOriginAny
+}|kAliHLTDataOriginOut;
+
+/** general ROOT TObject */
+const AliHLTComponentDataType kAliHLTDataTypeTObject = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTObjectDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** ROOT TObjArray */
+const AliHLTComponentDataType kAliHLTDataTypeTObjArray = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTObjArrayDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** ROOT TTree */
+const AliHLTComponentDataType kAliHLTDataTypeTTree = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTTreeDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** ROOT TH1 (can be used for all histograms, they derive from TH1) */
+const AliHLTComponentDataType kAliHLTDataTypeHistogram = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTHistogramDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+/** ROOT TNtuple */
+const AliHLTComponentDataType kAliHLTDataTypeTNtuple = (AliHLTComponentDataType) {
+  sizeof(AliHLTComponentDataType),
+  kAliHLTTNtupleDataTypeID,
+  kAliHLTDataOriginAny
+};
+
+//////////////////////////////////////////////////////////////////////////
+//
+// Data origin variables, to be used with the operator|
+//
+// AliHLTComponentDataType dt;
+// dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC;
+//
+//////////////////////////////////////////////////////////////////////////
+
+/** HLT out */
+const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize]    = {'H','L','T',' '};
+
+/** HLT/PubSub private internal */
+const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize]= {'P','R','I','V'};
+
+/** TPC */
+const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize]    = {'T','P','C',' '};
+
+/** PHOS */
+const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize]   = {'P','H','O','S'};
+
+/** MUON */
+const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize]   = {'M','U','O','N'};
+
+/** TRD */
+const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize]    = {'T','R','D',' '};
+
+/** ITS */
+const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize]    = {'I','T','S',' '};
+
+/** Sample */
+const char kAliHLTDataOriginSample[kAliHLTComponentDataTypefOriginSize] = {'S','M','P','L'};