1 #ifndef ALIHLTMUONMANSOTRACKSBLOCKSTRUCT_H
2 #define ALIHLTMUONMANSOTRACKSBLOCKSTRUCT_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 /// @file AliHLTMUONMansoTracksBlockStruct.h
10 /// @author Artur Szostak <artursz@iafrica.com>
12 /// @brief Definition the Manso tracks internal dimuon HLT data block.
14 /// The Manso tracks data block is an internal dimuon HLT data block structure
15 /// generated by the Manso algorithm.
16 /// The structures are defined with C linkage since C generally gives us more
17 /// binary compatibility between compilers.
20 #include "AliHLTMUONRecHitsBlockStruct.h"
26 * Track structure containing information about a partial track generated by
27 * the Manso algorithm.
29 struct AliHLTMUONMansoTrackStruct
31 AliHLTInt32_t fId; // Each Manso track should have an ID number unique
32 // for a given event. -1 == invalid.
34 AliHLTInt32_t fTrigRec; // The associated trigger record ID used as the
35 // seed for the Manso algorithm.
37 // The flags word constains the following bit fields (bit 31 is most
39 // bits: [31][30][29 --- 4][ 3 ][ 2 ][ 1 ][ 0 ]
40 // field: - + reserved hst[3] hst[2] hst[1] hst[0]
41 // Where fields hst[i] indicates if fHit[i] has been filled/set.
42 // Reserved bits should be set to zero.
43 // Particle sign: if '-' is set then particle has minus sign.
44 // if '+' is set then particle has negative sign.
45 // Either '+' or '-' should be set and if neither then the particle
47 AliHLTUInt32_t fFlags;
49 AliHLTFloat32_t fPx; // Particle's momentum X component in GeV/c.
50 AliHLTFloat32_t fPy; // Particle's momentum Y component in GeV/c.
51 AliHLTFloat32_t fPz; // Particle's momentum Z component in GeV/c.
52 AliHLTFloat32_t fChi2; // The chi squared of the fit of fHit points to
53 // the track model. If -1 then no fit done and
54 // momentum vector is invalid.
56 // Particle hit coordinates on tracking chambers 7 to 10.
57 // fHit[0] is for chamber 7 fHit[1] for chamber 8 etc...
58 AliHLTMUONRecHitStruct fHit[4];
62 * AliHLTMUONMansoTracksBlockStruct defines the format of the internal
63 * Manso tracks data block.
65 struct AliHLTMUONMansoTracksBlockStruct
67 AliHLTMUONDataBlockHeader fHeader; // Common data block header.
69 // Array of Manso tracks.
70 //AliHLTMUONMansoTrackStruct fTrack[/*fHeader.fNrecords*/];
77 * Stream operator for usage with std::ostream classes which prints the track
78 * information in the following format:
79 * {fId = xx, fTrigRec = yy, fFlags = 0xZZ, fPx = uu, fPy = vv, fPz = ww,
80 * fChi2 = ss, fHit[0] = {...}, fHit[1] = {...}, fHit[2] = {...},
83 std::ostream& operator << (
84 std::ostream& stream, const AliHLTMUONMansoTrackStruct& trigrec
88 * Stream operator for usage with std::ostream classes which prints the
89 * AliHLTMUONMansoTracksBlockStruct in the following format:
90 * {fHeader = xx, fTrack[] = [{..}, {..}, ...]}
92 std::ostream& operator << (
93 std::ostream& stream, const AliHLTMUONMansoTracksBlockStruct& block
97 inline bool operator == (
98 const AliHLTMUONMansoTrackStruct& a,
99 const AliHLTMUONMansoTrackStruct& b
102 return a.fId == b.fId and a.fTrigRec == b.fTrigRec
103 and a.fFlags == b.fFlags and a.fPx == b.fPx and a.fPy == b.fPy
104 and a.fPz == b.fPz and a.fChi2 == b.fChi2
105 and a.fHit[0] == b.fHit[0] and a.fHit[1] == b.fHit[1]
106 and a.fHit[2] == b.fHit[2] and a.fHit[3] == b.fHit[3];
109 inline bool operator != (
110 const AliHLTMUONMansoTrackStruct& a,
111 const AliHLTMUONMansoTrackStruct& b
114 return not operator == (a, b);
119 const AliHLTMUONMansoTracksBlockStruct& a,
120 const AliHLTMUONMansoTracksBlockStruct& b
123 inline bool operator != (
124 const AliHLTMUONMansoTracksBlockStruct& a,
125 const AliHLTMUONMansoTracksBlockStruct& b
128 return not operator == (a, b);
131 #endif // ALIHLTMUONMANSOTRACKSBLOCKSTRUCT_H