3 #ifndef ALIHLTDATATYPES_H
4 #define ALIHLTDATATYPES_H
5 /* This file is property of and copyright by the ALICE HLT Project *
6 * ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 /** @file AliHLTDataTypes.h
10 @author Matthias Richter, Timm Steinbeck, Jochen Thaeder
12 @brief Data type declaration for the HLT module.
15 //////////////////////////////////////////////////////////////////////////
17 // version no of HLT data types
19 //////////////////////////////////////////////////////////////////////////
21 /* Version Description
22 * 1 first version until June 07; implicite, not tagged
23 * 2 introduced June 07, enhanced/cleaned/arranged structure
24 * 3 2007-11-15 RAW DDL data type added; some inconsistencies fixed
25 * ('void' and 'any' origins); added signed HLT basic data types
26 * 2007-11-23 origin defines have become variables in conjunction
27 * to be used with the operator| (AliHLTComponentDataType)
28 * 2007-11-24 added trigger structs and ESD tree data type
29 * 4 Component configuration and DCS update events added
30 * gkAliHLTDDLListSize set from 29 to 30 according to new PubSub
32 * 5 Data types for Run and Event summary, and for monitoring added
33 * 6 Common data types for TreeD and TreeR defined
34 * kAliHLTAllDataTypes added
36 #define ALIHLT_DATA_TYPES_VERSION 6
38 //////////////////////////////////////////////////////////////////////////
40 // HLT data origin variables.
42 // By converting from defines to variables, the origins can be used with
45 // AliHLTComponentDataType dt;
46 // dt = kAliHLTDataTypeDDLRaw | gkAliHLTDataOriginTPC;
48 //////////////////////////////////////////////////////////////////////////
50 /** field size of datat type origin
51 * @ingroup alihlt_component_datatypes
53 const int kAliHLTComponentDataTypefOriginSize=4;
56 /** invalid data origin
57 * @ingroup alihlt_component_datatypes
59 # define kAliHLTDataOriginVoid "\0\0\0"
60 /** old invalid data origin, kept for backward compatibility */
61 # define kAliHLTVoidDataOrigin "\0\0\0"
63 /** wildcard data type origin
64 * @ingroup alihlt_component_datatypes
66 # define kAliHLTDataOriginAny "***"
67 /** old wildcard data type origin, kept for backward compatibility */
68 # define kAliHLTAnyDataOrigin "***"
70 /** Data origin HLT out
71 * @ingroup alihlt_component_datatypes
73 extern const char kAliHLTDataOriginOut[kAliHLTComponentDataTypefOriginSize];
75 /** Data origin HLT/PubSub private internal
76 * @ingroup alihlt_component_datatypes
78 extern const char kAliHLTDataOriginPrivate[kAliHLTComponentDataTypefOriginSize];
81 * @ingroup alihlt_component_datatypes
83 extern const char kAliHLTDataOriginTPC[kAliHLTComponentDataTypefOriginSize];
86 * @ingroup alihlt_component_datatypes
88 extern const char kAliHLTDataOriginPHOS[kAliHLTComponentDataTypefOriginSize];
91 * @ingroup alihlt_component_datatypes
93 extern const char kAliHLTDataOriginMUON[kAliHLTComponentDataTypefOriginSize];
96 * @ingroup alihlt_component_datatypes
98 extern const char kAliHLTDataOriginTRD[kAliHLTComponentDataTypefOriginSize];
101 * @ingroup alihlt_component_datatypes
103 extern const char kAliHLTDataOriginITS[kAliHLTComponentDataTypefOriginSize];
105 //////////////////////////////////////////////////////////////////////////
107 // HLT common data type defines
109 //////////////////////////////////////////////////////////////////////////
111 /** field size of data type id
112 * @ingroup alihlt_component_datatypes
114 const int kAliHLTComponentDataTypefIDsize=8;
117 /** invalid data type id
118 * @ingroup alihlt_component_datatypes
120 # define kAliHLTVoidDataTypeID "\0\0\0\0\0\0\0"
122 /** special id for all data types: any + void
123 * @ingroup alihlt_component_datatypes
125 # define kAliHLTAllDataTypesID "ALLDATA"
127 /** special id for any valid data type id
128 * @ingroup alihlt_component_datatypes
130 # define kAliHLTAnyDataTypeID "*******"
133 * @ingroup alihlt_component_datatypes
135 # define kAliHLTDDLRawDataTypeID {'D','D','L','_','R','A','W',' '}
137 /** calibration data for file exchange subscriber
138 * @ingroup alihlt_component_datatypes
140 # define kAliHLTFXSCalibDataTypeID {'F','X','S','_','C','A','L',' '}
142 /** start of run (SOR) event
144 * @ingroup alihlt_component_datatypes
146 # define kAliHLTSORDataTypeID {'S','T','A','R','T','O','F','R'}
148 /** end of run (EOR) event
150 * @ingroup alihlt_component_datatypes
152 # define kAliHLTEORDataTypeID {'E','N','D','O','F','R','U','N'}
155 * @ref AliHLTEventDDL
156 * @ingroup alihlt_component_datatypes
158 # define kAliHLTDDLDataTypeID {'D','D','L','L','I','S','T',' '}
161 * - empty payload, specification gives eventType
162 * @ingroup alihlt_component_datatypes
164 # define kAliHLTEventDataTypeID {'E','V','E','N','T','T','Y','P'}
166 /** ComponentConfiguration event
167 * - payload contains the CDB path as string
168 * @ingroup alihlt_component_datatypes
170 # define kAliHLTComConfDataTypeID {'C','O','M','_','C','O','N','F'}
172 /** DCS value update event
173 * - payload contains string of relevant detectors
174 * @ingroup alihlt_component_datatypes
176 # define kAliHLTUpdtDCSDataTypeID {'U','P','D','T','_','D','C','S'}
179 * an AliESD object of varying origin
180 * The 'V0' at the end allows a versioning
181 * @ingroup alihlt_component_datatypes
183 # define kAliHLTESDObjectDataTypeID {'A','L','I','E','S','D','V','0'}
185 /** ESD tree data block
186 * TTree with an AliESD object of varying origin
187 * @ingroup alihlt_component_datatypes
189 # define kAliHLTESDTreeDataTypeID {'E','S','D','_','T','R','E','E'}
192 * - the digits tree of an AliRoot module
193 * @ingroup alihlt_component_datatypes
195 #define kAliHLTTreeDDataTypeID {'A','L','I','T','R','E','E','D'}
198 * - the rec points tree of an AliRoot module
199 * @ingroup alihlt_component_datatypes
201 #define kAliHLTTreeRDataTypeID {'A','L','I','T','R','E','E','D'}
203 /** HW Address selection data block
204 * - a selection list for 16 bit HW addresses
206 * @ingroup alihlt_component_datatypes
208 # define kAliHLTHwAddr16DataTypeID {'H','W','A','D','D','R','1','6'}
211 * - event statistics for given detectors
213 * @ingroup alihlt_component_datatypes
215 # define kAliHLTEventStatisticsDataTypeID {'E','V','_','S','T','A','T','I'}
219 * - origin : kAliHLTDataOriginOut ( HLT )
220 * @ingroup alihlt_component_datatypes
222 # define kAliHLTEventSummaryDataTypeID {'E','V','_','S','U','M','M','A'}
225 * - run statistics for given detectors
227 * @ingroup alihlt_component_datatypes
229 # define kAliHLTRunStatisticsDataTypeID {'R','U','N','S','T','A','T','I'}
233 * - origin : kAliHLTDataOriginOut ( HLT )
234 * @ingroup alihlt_component_datatypes
236 # define kAliHLTRunSummaryDataTypeID {'R','U','N','S','U','M','M','A'}
238 /** general ROOT TObject
239 * - a general TObject exported from the HLT analysis
241 * @ingroup alihlt_component_datatypes
243 #define kAliHLTTObjectDataTypeID {'R','O','O','T','T','O','B','J'}
246 * - a TObjArray exported from the HLT analysis
248 * @ingroup alihlt_component_datatypes
250 #define kAliHLTTObjArrayDataTypeID {'R','O','O','T','O','B','A','R'}
253 * - a TTree object exported from the HLT analysis
255 * @ingroup alihlt_component_datatypes
257 #define kAliHLTTTreeDataTypeID {'R','O','O','T','T','R','E','E'}
260 * - a histogram object exported from the HLT analysis
261 * - class derives from TH1 (directly or indirectly) and inherits all common functionality
263 * @ingroup alihlt_component_datatypes
265 #define kAliHLTHistogramDataTypeID {'R','O','O','T','H','I','S','T'}
268 * - a TNtupl object exported from the HLT analysis
270 * @ingroup alihlt_component_datatypes
272 #define kAliHLTTNtupleDataTypeID {'R','O','O','T','T','U','P','L'}
277 //////////////////////////////////////////////////////////////////////////
279 // Basic HLT data types
281 //////////////////////////////////////////////////////////////////////////
283 typedef unsigned char AliHLTUInt8_t;
285 typedef signed char AliHLTInt8_t;
287 typedef unsigned short AliHLTUInt16_t;
289 typedef signed short AliHLTInt16_t;
291 typedef unsigned int AliHLTUInt32_t;
293 typedef signed int AliHLTInt32_t;
295 typedef unsigned long long AliHLTUInt64_t;
297 typedef signed long long AliHLTInt64_t;
299 typedef float AliHLTFloat32_t;
301 typedef double AliHLTFloat64_t;
303 typedef AliHLTUInt64_t AliHLTEventID_t;
305 //////////////////////////////////////////////////////////////////////////
307 // HLT logging levels
309 //////////////////////////////////////////////////////////////////////////
312 * Logging severities of the HLT
314 enum AliHLTComponentLogSeverity {
317 /** benchmark messages */
318 kHLTLogBenchmark = 0x1,
319 /** debug messages */
323 /** warning messages */
324 kHLTLogWarning = 0x8,
325 /** error messages */
327 /** fatal error messages */
329 /** few important messages not to be filtered out.
330 * redirected to kHLTLogInfo in AliRoot
332 kHLTLogImportant = 0x40,
333 /** special value to enable all messages */
335 /** the default logging filter */
336 kHLTLogDefault = 0x79
339 //////////////////////////////////////////////////////////////////////////
341 // HLT data structures for data exchange and external interface
343 //////////////////////////////////////////////////////////////////////////
346 * @struct AliHLTComponentEventData
349 struct AliHLTComponentEventData
351 AliHLTUInt32_t fStructSize;
352 AliHLTEventID_t fEventID;
353 AliHLTUInt32_t fEventCreation_s;
354 AliHLTUInt32_t fEventCreation_us;
355 AliHLTUInt32_t fBlockCnt;
359 * @struct AliHLTComponentShmData
360 * Shared memory descriptor.
361 * Irrelevant for analysis components.
363 struct AliHLTComponentShmData
365 AliHLTUInt32_t fStructSize;
366 AliHLTUInt32_t fShmType;
367 AliHLTUInt64_t fShmID;
371 * @defgroup alihlt_component_datatypes Common Component Data Types
372 * The analysis framework defines a number of common data types for
373 * usage in the detector modules, like e.g. ::kAliHLTAnyDataType
374 * and ::kAliHLTDataTypeDDLRaw. Those data types always have
375 * origin ::kAliHLTDataOriginAny. The correct detector origin can be
376 * set by using operator '|'
378 * AliHLTComponentDataType dt=kAliHLTDDLRawDataTypeID|kAliHLTDataOriginTPC
380 * @ingroup alihlt_component
384 * @struct AliHLTComponentDataType
385 * Data type descriptor for data blocks transferred through the processing
387 * @ingroup alihlt_component_datatypes
389 struct AliHLTComponentDataType
391 AliHLTUInt32_t fStructSize;
392 char fID[kAliHLTComponentDataTypefIDsize]; //!
393 char fOrigin[kAliHLTComponentDataTypefOriginSize]; //!
397 * @struct AliHLTComponentBlockData
398 * This is the decription of data blocks exchanged between components.
399 * \b IMPORTANT: The validity of fPtr and fOffset is different for input and
401 * - input blocks: The \em fPtr member always points to the beginning of the data
402 * of size \em fSize. fOffset is ignored and should be in most
404 * - output blocks: The \em fPtr member is ignored by the framework. \em fOffset
405 * must specify the start of the data relative to the output
406 * buffer. The data block has size \em fSize.
408 struct AliHLTComponentBlockData
410 /* size and version of the struct */
411 AliHLTUInt32_t fStructSize;
412 /* shared memory key, ignored by processing components */
413 AliHLTComponentShmData fShmKey;
414 /* offset of output data relative to the output buffer */
415 AliHLTUInt32_t fOffset;
416 /* start of the data for input data blocks, fOffset to be ignored*/
418 /* size of the data block */
419 AliHLTUInt32_t fSize;
420 /* data type of the data block */
421 AliHLTComponentDataType fDataType;
422 /* data specification of the data block */
423 AliHLTUInt32_t fSpecification;
427 * @struct AliHLTComponentEventDoneData
430 struct AliHLTComponentEventDoneData
432 AliHLTUInt32_t fStructSize;
433 AliHLTUInt32_t fDataSize;
438 * @struct AliHLTRunDesc
440 * The struct is send with the SOR and EOR events.
444 AliHLTUInt32_t fStructSize;
445 AliHLTUInt32_t fRunNo;
446 AliHLTUInt32_t fRunType;
449 //////////////////////////////////////////////////////////////////////////
451 // Trigger meta information
453 //////////////////////////////////////////////////////////////////////////
455 /** field size of fAttribute */
456 const int gkAliHLTBlockDAttributeCount = 8;
458 /** field size of fCommonHeader */
459 const int gkAliHLTCommonHeaderCount = 8;
461 /** size of the DDL list */
462 const int gkAliHLTDDLListSize = 30;
464 /** Number of Trigger Classes of CTP in CDH */
465 const int gkNCTPTriggerClasses = 50;
468 * @struct AliHLTEventDDL
470 * The struct is send with the DDLLIST event.
471 * Used in the trigger structure for internal apperance of
472 * the DLLs as well as for the HLT readout list send to DAQ
473 * ( as DataType : kAliHLTDataTypeDDL )
475 struct AliHLTEventDDL
477 AliHLTUInt32_t fCount;
478 AliHLTUInt32_t fList[gkAliHLTDDLListSize];
482 * @struct AliHLTEventTriggerData
484 struct AliHLTEventTriggerData
486 AliHLTUInt8_t fAttributes[gkAliHLTBlockDAttributeCount];
487 AliHLTUInt64_t fHLTStatus; // Bit field
488 AliHLTUInt32_t fCommonHeaderWordCnt;
489 AliHLTUInt32_t fCommonHeader[gkAliHLTCommonHeaderCount];
490 AliHLTEventDDL fReadoutList;
494 * @struct AliHLTComponentTriggerData
497 struct AliHLTComponentTriggerData
499 AliHLTUInt32_t fStructSize;
500 AliHLTUInt32_t fDataSize;
504 //////////////////////////////////////////////////////////////////////////
506 // HLT Event Type Specification
508 //////////////////////////////////////////////////////////////////////////
510 /** Unknown eventType specification */
511 const AliHLTUInt32_t gkAliEventTypeUnknown = ~(AliHLTUInt32_t)0;
512 /** SOR eventType specification */
513 const AliHLTUInt32_t gkAliEventTypeStartOfRun=1;
514 /** Data eventType specification */
515 const AliHLTUInt32_t gkAliEventTypeData=2;
516 /** EOR eventType specification */
517 const AliHLTUInt32_t gkAliEventTypeEndOfRun=4;
518 /** Corrupt eventType specification */
519 const AliHLTUInt32_t gkAliEventTypeCorruptID=8;
520 /** Calibration eventType specification */
521 const AliHLTUInt32_t gkAliEventTypeCalibration=16;
522 /** DataReplay eventType specification */
523 const AliHLTUInt32_t gkAliEventTypeDataReplay=32;
524 /** Configuration eventType specification */
525 const AliHLTUInt32_t gkAliEventTypeConfiguration=34;
526 /** Update DCS eventType specification */
527 const AliHLTUInt32_t gkAliEventTypeReadPreprocessor=35;
528 /** Tick eventType specification */
529 const AliHLTUInt32_t gkAliEventTypeTick=64;
530 /** Max eventType specification */
531 const AliHLTUInt32_t gkAliEventTypeMax=64;
533 //////////////////////////////////////////////////////////////////////////
535 // HLT defines and defaults
537 //////////////////////////////////////////////////////////////////////////
540 * @ingroup alihlt_component_datatypes
542 const AliHLTEventID_t kAliHLTVoidEventID=~(AliHLTEventID_t)0;
544 /** invalid data specification
545 * @ingroup alihlt_component_datatypes
547 const AliHLTUInt32_t kAliHLTVoidDataSpec = ~(AliHLTUInt32_t)0;
549 /** invalid shared memory type */
550 const AliHLTUInt32_t gkAliHLTComponentInvalidShmType = 0;
552 /** invalid shared memory id */
553 const AliHLTUInt64_t gkAliHLTComponentInvalidShmID = ~(AliHLTUInt64_t)0;
555 /** invalid data type
556 * @ingroup alihlt_component_datatypes
558 const AliHLTComponentDataType kAliHLTVoidDataType = {
559 sizeof(AliHLTComponentDataType),
560 kAliHLTVoidDataTypeID,
561 kAliHLTDataOriginVoid
564 /** all data types, means any + void data type
565 * @ingroup alihlt_component_datatypes
567 const AliHLTComponentDataType kAliHLTAllDataTypes = {
568 sizeof(AliHLTComponentDataType),
569 kAliHLTAllDataTypesID,
573 // there is currently a problem with rootcint if the predefined ids
574 // (commented below) are used. rootcint does not find the id if they
575 // are char arrays defined with {} and individual chars. If strings
576 // are used it works fine
578 * @ingroup alihlt_component_datatypes
580 const AliHLTComponentDataType kAliHLTAnyDataType = {
581 sizeof(AliHLTComponentDataType),
582 kAliHLTAnyDataTypeID,
586 /** multiple output data types
587 * @ingroup alihlt_component_datatypes
589 extern const AliHLTComponentDataType kAliHLTMultipleDataType;
591 /** data to file exchange subscriber
592 * @ingroup alihlt_component_datatypes
594 extern const AliHLTComponentDataType kAliHLTDataTypeFXSCalib;
596 /** DDL list data type
597 * @ingroup alihlt_component_datatypes
599 extern const AliHLTComponentDataType kAliHLTDataTypeDDL;
602 * @ingroup alihlt_component_datatypes
604 extern const AliHLTComponentDataType kAliHLTDataTypeSOR;
607 * @ingroup alihlt_component_datatypes
609 extern const AliHLTComponentDataType kAliHLTDataTypeEOR;
611 /** Event type specification
612 * @ingroup alihlt_component_datatypes
614 extern const AliHLTComponentDataType kAliHLTDataTypeEvent;
616 /** Configuration event data type
617 * @ingroup alihlt_component_datatypes
619 extern const AliHLTComponentDataType kAliHLTDataTypeComConf;
621 /** DCS value update event
622 * @ingroup alihlt_component_datatypes
624 extern const AliHLTComponentDataType kAliHLTDataTypeUpdtDCS;
626 /** RAW DDL data specification, origin is 'any', data publisher origin correctly
627 * @ingroup alihlt_component_datatypes
629 extern const AliHLTComponentDataType kAliHLTDataTypeDDLRaw;
631 /** ESD object data specification, origin is 'any'
632 * @ingroup alihlt_component_datatypes
634 extern const AliHLTComponentDataType kAliHLTDataTypeESDObject;
636 /** ESD Tree data specification, origin is 'any'
638 * @ingroup alihlt_component_datatypes
640 extern const AliHLTComponentDataType kAliHLTDataTypeESDTree;
642 /** AliRoot TreeD data specification, origin is 'any'
643 * @ingroup alihlt_component_datatypes
645 extern const AliHLTComponentDataType kAliHLTDataTypeAliTreeD;
647 /** AliRoot TreeR data specification, origin is 'any'
648 * @ingroup alihlt_component_datatypes
650 extern const AliHLTComponentDataType kAliHLTDataTypeAliTreeR;
652 /** 16 bit Hardware address selection data specification, origin is 'any'
653 * @ingroup alihlt_component_datatypes
655 extern const AliHLTComponentDataType kAliHLTDataTypeHwAddr16;
658 * @ingroup alihlt_component_datatypes
660 extern const AliHLTComponentDataType kAliHLTDataTypeEventStatistics;
663 * @ingroup alihlt_component_datatypes
665 extern const AliHLTComponentDataType kAliHLTDataTypeEventSummary;
668 * @ingroup alihlt_component_datatypes
670 extern const AliHLTComponentDataType kAliHLTDataTypeRunStatistics;
673 * @ingroup alihlt_component_datatypes
675 extern const AliHLTComponentDataType kAliHLTDataTypeRunSummary;
677 //////////////////////////////////////////////////////////////////////////
679 // Data Types for Monitoring objects
681 //////////////////////////////////////////////////////////////////////////
683 /** general ROOT TObject
684 * @ingroup alihlt_component_datatypes
686 extern const AliHLTComponentDataType kAliHLTDataTypeTObject; // {ROOTTOBJ,"***"}
689 * @ingroup alihlt_component_datatypes
691 extern const AliHLTComponentDataType kAliHLTDataTypeTObjArray; // {ROOTOBAR,"***"}
694 * @ingroup alihlt_component_datatypes
696 extern const AliHLTComponentDataType kAliHLTDataTypeTTree; // {ROOTTREE,"***"}
698 /** ROOT TH1 (can be used for all histograms, they derive from TH1)
699 * @ingroup alihlt_component_datatypes
701 extern const AliHLTComponentDataType kAliHLTDataTypeHistogram; // {ROOTHIST,"***"}
704 * @ingroup alihlt_component_datatypes
706 extern const AliHLTComponentDataType kAliHLTDataTypeTNtuple; // {ROOTTUPL,"***"}
708 //////////////////////////////////////////////////////////////////////////
710 // FXS subscriber meta information
712 //////////////////////////////////////////////////////////////////////////
714 const int gkAliHLTFXSHeaderfOriginSize = 4;
715 const int gkAliHLTFXSHeaderfFileIDSize = 128;
716 const int gkAliHLTFXSHeaderfDDLNumberSize = 64;
718 /** Header in front of the data payload, in order to sent data to the FXS. */
719 struct AliHLTFXSHeader
721 AliHLTUInt32_t fHeaderVersion;
722 AliHLTUInt32_t fRunNumber;
723 char fOrigin[gkAliHLTFXSHeaderfOriginSize];
724 char fFileID[gkAliHLTFXSHeaderfFileIDSize];
725 char fDDLNumber[gkAliHLTFXSHeaderfDDLNumberSize];
728 //////////////////////////////////////////////////////////////////////////
730 // Component running environment
732 //////////////////////////////////////////////////////////////////////////
734 /** logging function */
735 typedef int (*AliHLTfctLogging)( void* param,
736 AliHLTComponentLogSeverity severity,
739 const char* message);
742 * @struct AliHLTComponentEnvironment
743 * Running environment for analysis components.
744 * The struct describes function callbacks for
746 struct AliHLTComponentEnvironment
748 AliHLTUInt32_t fStructSize;
750 void* (*fAllocMemoryFunc)( void* param, unsigned long size );
752 // future addition already foreseen/envisioned
753 // IMPORTANT: don not just remove the defines as this breaks the binary
755 int (*fAllocShmMemoryFunc)( void* param, unsigned long size, AliHLTComponentBlockData* blockLocation );
757 int (*fGetEventDoneDataFunc)( void* param, AliHLTEventID_t eventID, unsigned long size, AliHLTComponentEventDoneData** edd );
758 AliHLTfctLogging fLoggingFunc;
762 //////////////////////////////////////////////////////////////////////////
764 // Data type helper functions
766 //////////////////////////////////////////////////////////////////////////
768 /** exact comparison of HLT component data types
769 * @ingroup alihlt_component_datatypes
771 inline bool MatchExactly( const AliHLTComponentDataType& dt1, const AliHLTComponentDataType& dt2 )
773 for ( int i = 0; i < kAliHLTComponentDataTypefIDsize; i++ )
774 if ( dt1.fID[i] != dt2.fID[i] )
776 for ( int i = 0; i < kAliHLTComponentDataTypefOriginSize; i++ )
777 if ( dt1.fOrigin[i] != dt2.fOrigin[i] )
782 /** Comparison operator for HLT component data types.
783 * The operator takes wildcards into account, i.e. the ::kAliHLTAnyDataType,
784 * ::kAliHLTAnyDataTypeID and ::kAliHLTDataOriginAny definitions.
785 * @ingroup alihlt_component_datatypes
787 inline bool operator==( const AliHLTComponentDataType& dt1, const AliHLTComponentDataType& dt2 )
789 if (MatchExactly(dt1, kAliHLTAllDataTypes)) return true;
790 if (MatchExactly(dt2, kAliHLTAllDataTypes)) return true;
792 bool any1=true, any2=true, void1=true, void2=true, match=true;
793 for ( int i = 0; i < kAliHLTComponentDataTypefOriginSize; i++ ) {
794 any1&=(dt1.fOrigin[i]==kAliHLTDataOriginAny[i]);
795 any2&=(dt2.fOrigin[i]==kAliHLTDataOriginAny[i]);
796 void1&=(dt1.fOrigin[i]==kAliHLTDataOriginVoid[i]);
797 void2&=(dt2.fOrigin[i]==kAliHLTDataOriginVoid[i]);
798 match&=dt1.fOrigin[i]==dt2.fOrigin[i];
799 if (!(match || (any2 && !void1) || (any1 && !void2)))
803 any1=true, any2=true, match=true;
804 for ( int i = 0; i < kAliHLTComponentDataTypefIDsize; i++ ) {
805 any1&=(dt1.fID[i]==kAliHLTAnyDataTypeID[i]);
806 any2&=(dt2.fID[i]==kAliHLTAnyDataTypeID[i]);
807 void1&=(dt1.fID[i]==kAliHLTVoidDataTypeID[i]);
808 void2&=(dt2.fID[i]==kAliHLTVoidDataTypeID[i]);
809 match&=dt1.fID[i]==dt2.fID[i];
810 if (!(match || (any2 && !void1) || (any1 && !void2)))
816 /** Comparison operator for HLT component data types
817 * Invers of operator==
818 * @ingroup alihlt_component_datatypes
820 inline bool operator!=( const AliHLTComponentDataType& dt1, const AliHLTComponentDataType& dt2 )
825 /** merge operator for HLT component data types and origins
826 * @ingroup alihlt_component_datatypes
828 inline AliHLTComponentDataType operator|(const AliHLTComponentDataType srcdt, const char origin[kAliHLTComponentDataTypefOriginSize])
830 AliHLTComponentDataType dt=srcdt;
831 for ( int i = 0; i < kAliHLTComponentDataTypefOriginSize; i++ )
832 dt.fOrigin[i]=origin[i];