Bug fixes in the getters of trigger pattern and ROIs (thanks to Artur for spotting...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jun 2008 10:51:23 +0000 (10:51 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jun 2008 10:51:23 +0000 (10:51 +0000)
RAW/AliRawDataHeader.h

index 78bbddc..4b05ad2 100644 (file)
@@ -57,9 +57,9 @@ struct AliRawDataHeader {
     {return fStatusMiniEventID & 0xFFF;};
 
   ULong64_t GetTriggerClasses() const
-  {return (((ULong64_t) (fROILowTriggerClassHigh & 0x1FFFF)) << 32) + fTriggerClassLow;}
+  {return (((ULong64_t) (fROILowTriggerClassHigh & 0x3FFFF)) << 32) | fTriggerClassLow;}
   ULong64_t GetROI() const
-  {return (((ULong64_t) fROIHigh) << 32) + ((fROILowTriggerClassHigh >> 28) & 0xF);}
+  {return (((ULong64_t) fROIHigh) << 4) | ((fROILowTriggerClassHigh >> 28) & 0xF);}
 
   void      SetTriggerClass(ULong64_t mask)
     {fTriggerClassLow = (UInt_t)(mask & 0xFFFFFFFF);  // low bits of trigger class