]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawDataHeader.h
New method to set the CTP trigger mask
[u/mrichter/AliRoot.git] / RAW / AliRawDataHeader.h
index 7606915e33e573c0df6963c4e24a51f277ca5f69..5885e3c51b9a7c920b576d5d9ba352775326e11f 100644 (file)
@@ -3,7 +3,6 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-
 struct AliRawDataHeader {
   AliRawDataHeader() :
     fSize(0xFFFFFFFF), 
@@ -39,6 +38,11 @@ struct AliRawDataHeader {
   ULong64_t GetROI() const
     {return ((ULong64_t) fROIHigh) << 32 + ((fROILowTriggerClassHigh >> 28) & 0xF);}
 
+  void      SetTriggerClass(ULong64_t mask)
+    {fTriggerClassLow = (mask & 0xFFFFFFFF);  // low bits of trigger class
+     fROILowTriggerClassHigh = ((mask >> 32) & 0x3FFFF); // low bits of ROI data (bits 28-31) and high bits of trigger class (bits 0-17)
+    };
+
   UInt_t    fSize;              // size of the raw data in bytes
   UShort_t  fEventID1;          // bunch crossing number
   UChar_t   fL1TriggerType;     // level 1 trigger type