1 #ifndef ALIHLTMUONCLUSTERSBLOCKSTRUCT_H
2 #define ALIHLTMUONCLUSTERSBLOCKSTRUCT_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 * @file AliHLTMUONClustersBlockStruct.h
10 * @author Artur Szostak <artursz@iafrica.com>
12 * @brief Definition of internal dimuon HLT block structure containing
13 * debugging information about clusters and their corresponding
16 * The structures are defined with C linkage since C generally gives us more
17 * binary compatibility between compilers.
20 #include "AliHLTMUONDataTypes.h"
21 #include "AliHLTMUONRecHitsBlockStruct.h"
28 * Debugging information about a cluster and its reconstructed hit.
30 struct AliHLTMUONClusterStruct
32 AliHLTInt32_t fId; // Unique ID for the cluster. It must be at
33 // least unique for any given event. -1 == invalid.
35 AliHLTMUONRecHitStruct fHit; // Corresponding reconstructed hit.
37 AliHLTInt32_t fDetElemId; // Detector ID number from AliRoot geometry
38 // on which the cluster was found.
40 AliHLTUInt32_t fNchannels; // Number of channels/pads in the cluster.
44 * AliHLTMUONClusterBlockStruct defines the format of the internal cluster
47 struct AliHLTMUONClustersBlockStruct
49 AliHLTMUONDataBlockHeader fHeader; // Common data block header
53 AliHLTMUONClusterStruct fCluster[/*fHeader.fNrecords*/];
55 AliHLTMUONClusterStruct fCluster[1];
63 * Stream operator for usage with std::ostream classes which prints the
64 * AliHLTMUONClusterStruct in the following format:
65 * {fId = xx, fHit = {...}, fDetElemId = yy, fNchannels = zz}
67 std::ostream& operator << (
68 std::ostream& stream, const AliHLTMUONClusterStruct& cluster
72 * Stream operator for usage with std::ostream classes which prints the
73 * AliHLTMUONClustersBlockStruct in the following format:
74 * {fHeader = xx, fCluster[] = [{..}, {..}, ...]}
76 std::ostream& operator << (
77 std::ostream& stream, const AliHLTMUONClustersBlockStruct& block
81 inline bool operator == (
82 const AliHLTMUONClusterStruct& a,
83 const AliHLTMUONClusterStruct& b
86 return a.fId == b.fId and a.fHit == b.fHit and
87 a.fDetElemId == b.fDetElemId and a.fNchannels == b.fNchannels;
90 inline bool operator != (
91 const AliHLTMUONClusterStruct& a,
92 const AliHLTMUONClusterStruct& b
95 return not operator == (a, b);
100 const AliHLTMUONClustersBlockStruct& a,
101 const AliHLTMUONClustersBlockStruct& b
104 inline bool operator != (
105 const AliHLTMUONClustersBlockStruct& a,
106 const AliHLTMUONClustersBlockStruct& b
109 return not operator == (a, b);
112 #endif // ALIHLTMUONCLUSTERSBLOCKSTRUCT_H