1 #ifndef ALIHLTMUONTRIGGERCHANNELSBLOCKSTRUCT_H
2 #define ALIHLTMUONTRIGGERCHANNELSBLOCKSTRUCT_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 * @file AliHLTMUONTriggerChannelsBlockStruct.h
10 * @author Artur Szostak <artursz@iafrica.com>
12 * @brief Definition of internal dimuon HLT block structure containing
13 * debugging information about channels that belong to trigger records.
15 * The structures are defined with C linkage since C generally gives us more
16 * binary compatibility between compilers.
19 #include "AliHLTMUONDataTypes.h"
26 * Gives the fired channel/strip information which was considered during
27 * hit reconstruction on trigger chambers and correlated into a common cluster.
29 struct AliHLTMUONTriggerChannelStruct
31 AliHLTInt32_t fTrigRecId; // ID corresponding to the trigger records this
32 // channel is part of. -1 == invalid.
34 AliHLTUInt16_t fChamber; // The chamber this hit corresponds to.
35 // In the range [11..14].
37 AliHLTUInt16_t fSignal; // ADC value of signal.
38 AliHLTUInt32_t fRawDataWord; // The raw data word as found in the DDL stream.
42 * AliHLTMUONTriggerChannelsBlockStruct defines the format of the internal
43 * channel data block corresponding to clusters on the trigger chambers.
45 struct AliHLTMUONTriggerChannelsBlockStruct
47 AliHLTMUONDataBlockHeader fHeader; // Common data block header
49 // Array of trigger channels/strips.
51 AliHLTMUONTriggerChannelStruct fChannel[/*fHeader.fNrecords*/];
53 AliHLTMUONTriggerChannelStruct fChannel[1];
61 * Stream operator for usage with std::ostream classes which prints the
62 * AliHLTMUONTriggerChannelStruct in the following format:
63 * {fTrigRecId = xx, fChamber = yy, fSignal = zz, fRawDataWord = 0xXXXXXXXX}
65 std::ostream& operator << (
66 std::ostream& stream, const AliHLTMUONTriggerChannelStruct& channel
70 * Stream operator for usage with std::ostream classes which prints the
71 * AliHLTMUONTriggerChannelsBlockStruct in the following format:
72 * {fHeader = xx, fChannel[] = [{..}, {..}, ...]}
74 std::ostream& operator << (
76 const AliHLTMUONTriggerChannelsBlockStruct& block
80 inline bool operator == (
81 const AliHLTMUONTriggerChannelStruct& a,
82 const AliHLTMUONTriggerChannelStruct& b
85 return a.fTrigRecId == b.fTrigRecId and a.fChamber == b.fChamber and
86 a.fSignal == b.fSignal and a.fRawDataWord == b.fRawDataWord;
89 inline bool operator != (
90 const AliHLTMUONTriggerChannelStruct& a,
91 const AliHLTMUONTriggerChannelStruct& b
94 return not operator == (a, b);
99 const AliHLTMUONTriggerChannelsBlockStruct& a,
100 const AliHLTMUONTriggerChannelsBlockStruct& b
103 inline bool operator != (
104 const AliHLTMUONTriggerChannelsBlockStruct& a,
105 const AliHLTMUONTriggerChannelsBlockStruct& b
108 return not operator == (a, b);
111 #endif // ALIHLTMUONTRIGGERCHANNELSBLOCKSTRUCT_H