1 #ifndef ALIHLTMUONTRIGRECSDEBUGBLOCKSTRUCT_H
2 #define ALIHLTMUONTRIGRECSDEBUGBLOCKSTRUCT_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 * @file AliHLTMUONTrigRecsDebugBlockStruct.h
10 * @author Artur Szostak <artursz@iafrica.com>
12 * @brief Definition of internal dimuon HLT data structures for storing debugging
13 * information about 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"
25 * Debug trigger record structures contain debug information about the trigger
26 * records that were decoded from the dimuon hardware trigger electronics.
28 struct AliHLTMUONTrigRecInfoStruct
30 AliHLTInt32_t fTrigRecId; // The corresponding trigger record ID this
31 // debug information corresponds to. -1 == invalid.
33 AliHLTInt32_t fDetElemId; // Detector ID number from AliRoot geometry
34 // on which the hit clusters were found.
36 // The parameters used for momentum estimation:
37 AliHLTFloat32_t fZmiddle; // Particle momentum X component in GeV/c.
38 AliHLTFloat32_t fBl; // The integrated magnetic field in (T.m) tesla metres.
42 * AliHLTMUONTrigRecsDebugBlockStruct defines the format of the internal
43 * data block for storing debugging information for trigger records.
45 struct AliHLTMUONTrigRecsDebugBlockStruct
47 AliHLTMUONDataBlockHeader fHeader; // Common data block header
49 // Array of trigger records.
50 AliHLTMUONTrigRecInfoStruct fTrigRecInfo[/*fHeader.fNrecords*/];
57 * Stream operator for usage with std::ostream classes which prints the trigger
58 * record debug information in the following format:
59 * {fTrigRecId = xx, fDetElemId = yy, fZmiddle = zz, fBl = ww}
61 std::ostream& operator << (
62 std::ostream& stream, const AliHLTMUONTrigRecInfoStruct& info
66 * Stream operator for usage with std::ostream classes which prints the
67 * AliHLTMUONTrigRecsDebugBlockStruct in the following format:
68 * {fHeader = xx, fTrigRecInfo[] = [{..}, {..}, ...]}
70 std::ostream& operator << (
71 std::ostream& stream, const AliHLTMUONTrigRecsDebugBlockStruct& block
75 inline bool operator == (
76 const AliHLTMUONTrigRecInfoStruct& a,
77 const AliHLTMUONTrigRecInfoStruct& b
80 return a.fTrigRecId == b.fTrigRecId and a.fDetElemId == b.fDetElemId
81 and a.fZmiddle == b.fZmiddle and a.fBl == b.fBl;
84 inline bool operator != (
85 const AliHLTMUONTrigRecInfoStruct& a,
86 const AliHLTMUONTrigRecInfoStruct& b
89 return not operator == (a, b);
94 const AliHLTMUONTrigRecsDebugBlockStruct& a,
95 const AliHLTMUONTrigRecsDebugBlockStruct& b
98 inline bool operator != (
99 const AliHLTMUONTrigRecsDebugBlockStruct& a,
100 const AliHLTMUONTrigRecsDebugBlockStruct& b
103 return not operator == (a, b);
106 #endif // ALIHLTMUONTRIGRECSDEBUGBLOCKSTRUCT_H