]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawDataHeader.h
New files: PHOS and RICH geometry.
[u/mrichter/AliRoot.git] / RAW / AliRawDataHeader.h
index 82805ed4b55d36f197ce8394f3bc4524bdca539f..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), 
@@ -12,7 +11,7 @@ struct AliRawDataHeader {
     fVersion(1),
     fEventID2(0),
     fAttributesSubDetectors(0),
-    fStatusMiniEventID(0),
+    fStatusMiniEventID(0x1000),  // status bit 4: no L1/L2 trigger information
     fTriggerClassLow(0),
     fROILowTriggerClassHigh(0),
     fROIHigh(0)
@@ -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