]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/AliHLTMUONSinglesDecisionBlockStruct.h
get beam type
[u/mrichter/AliRoot.git] / HLT / MUON / AliHLTMUONSinglesDecisionBlockStruct.h
index 03810524c17f1451927eefd2beea5fcf7109672c..7efd2d86419d29d32980e26e6fb5cd93f900f1e9 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   AliHLTMUONSinglesDecisionBlockStruct.h
  * @author Artur Szostak <artursz@iafrica.com>
- * @date   
+ * @date   21 May 2007
  * @brief  Definition of internal dimuon HLT trigger decision data structure
  *         containing decision information for single tracks.
- * 
+ *
  * The structures are defined with C linkage since C generally gives us more
  * binary compatibility between compilers.
  */
@@ -35,6 +35,8 @@ struct AliHLTMUONTrackDecisionStruct
        // Reserved bits should be set to zero.
        // hipt == passed high pt cut. lopt == passed low pt cut.
        AliHLTUInt32_t fTriggerBits;
+       
+       AliHLTFloat32_t fPt; // The calculated transverse momentum of the track in (GeV/c).
 };
 
 /**
@@ -48,11 +50,7 @@ struct AliHLTMUONSinglesDecisionBlockStruct
        AliHLTUInt32_t fNhighPt; // Number of high pt triggers.
 
        // Array of decisions for individual tracks.
-#ifndef __SUNPRO_CC
-       AliHLTMUONTrackDecisionStruct fDecision[/*fHeader.fNrecords*/];
-#else
-       AliHLTMUONTrackDecisionStruct fDecision[1];
-#endif
+       //AliHLTMUONTrackDecisionStruct fDecision[/*fHeader.fNrecords*/];
 };
 
 } // extern "C"
@@ -67,9 +65,12 @@ inline std::ostream& operator << (
                std::ostream& stream, const AliHLTMUONTrackDecisionStruct& trig
        )
 {
+       std::ios::fmtflags oldflags = stream.flags();
        stream  << "{fTrackId = " << trig.fTrackId << ", fTriggerBits = "
                << std::showbase << std::hex << trig.fTriggerBits << std::dec
+               << ", fPt = " << trig.fPt
                << "}";
+       stream.flags(oldflags);
        return stream;
 }
 
@@ -89,7 +90,8 @@ inline bool operator == (
                const AliHLTMUONTrackDecisionStruct& b
        )
 {
-       return a.fTrackId == b.fTrackId and a.fTriggerBits == b.fTriggerBits;
+       return a.fTrackId == b.fTrackId and a.fTriggerBits == b.fTriggerBits
+               and a.fPt == b.fPt;
 }
 
 inline bool operator != (