]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/AliHLTMUONRecHitsBlockStruct.h
Disable retireval of DCS data points from AliShuttle for SDD
[u/mrichter/AliRoot.git] / HLT / MUON / AliHLTMUONRecHitsBlockStruct.h
index 4f8529b052a51d750d85f0a4cf80bdec42712fb2..dbe77041ab9e781e25226a080a4e5644ced9eb85 100644 (file)
@@ -3,15 +3,15 @@
 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
+// $Id$
 
 /**
  * @file   AliHLTMUONRecHitsBlockStruct.h
  * @author Indranil Das <indra.das@saha.ac.in>,
  *         Artur Szostak <artursz@iafrica.com>
- * @date   
+ * @date   17 May 2007
  * @brief  Definition of internal dimuon HLT reconstructed hit data block structure.
- * 
+ *
  * The structures are defined with C linkage since C generally gives us more
  * binary compatibility between compilers.
  */
@@ -29,6 +29,18 @@ extern "C"
  */
 struct AliHLTMUONRecHitStruct
 {
+       // The flags word constains the following bit fields (bit 31 is most
+       // significant):
+       //
+       // bits:  [ 31 -- 16 ][ 15 -- 12 ][ 11 --- 0 ]
+       // field:   reserved    chamber    detElemId
+       //
+       // Where we have,
+       // reserved bits must be set to zero.
+       // chamber - specifies the chamber number in the range [0..13], 0xF for invalid.
+       // detElemId - specifies the detector element ID number.
+       AliHLTUInt32_t fFlags;
+       
        AliHLTFloat32_t fX; // X coordinate.
        AliHLTFloat32_t fY; // Y coordinate.
        AliHLTFloat32_t fZ; // Z coordinate.
@@ -57,8 +69,11 @@ inline std::ostream& operator << (
                std::ostream& stream, const AliHLTMUONRecHitStruct& hit
        )
 {
-       stream  << "{fX = " << hit.fX << ", fY = " << hit.fY << ", fZ = "
-               << hit.fZ << "}";
+       std::ios::fmtflags oldflags = stream.flags();
+       stream  << "{fFlags = " << std::showbase << std::hex
+               << hit.fFlags << std::dec << ", fX = " << hit.fX
+               << ", fY = " << hit.fY << ", fZ = " << hit.fZ << "}";
+       stream.flags(oldflags);
        return stream;
 }
 
@@ -76,7 +91,7 @@ inline bool operator == (
                const AliHLTMUONRecHitStruct& a, const AliHLTMUONRecHitStruct& b
        )
 {
-       return a.fX == b.fX and a.fY == b.fY and a.fZ == b.fZ;
+       return a.fFlags == b.fFlags and a.fX == b.fX and a.fY == b.fY and a.fZ == b.fZ;
 }
 
 inline bool operator != (