]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawDataHeader.h
cleaning (Christian)
[u/mrichter/AliRoot.git] / RAW / AliRawDataHeader.h
index 5885e3c51b9a7c920b576d5d9ba352775326e11f..4a1abb463df0bdb11ee072c6ce7f46322113850d 100644 (file)
@@ -8,7 +8,7 @@ struct AliRawDataHeader {
     fSize(0xFFFFFFFF), 
     fEventID1(0),
     fL1TriggerType(0),
-    fVersion(1),
+    fVersion(2),
     fEventID2(0),
     fAttributesSubDetectors(0),
     fStatusMiniEventID(0x1000),  // status bit 4: no L1/L2 trigger information
@@ -17,6 +17,15 @@ struct AliRawDataHeader {
     fROIHigh(0)
   {}
 
+  UShort_t  GetEventID1() const
+    {return (fEventID1 & 0xFFF);};
+
+  UChar_t   GetL1TriggerMessage() const
+    {return (UChar_t)((fEventID1 >> 14) | ((UShort_t)fL1TriggerType << 2));};
+
+  UChar_t   GetVersion() const
+    {return fVersion;};
+
   UChar_t   GetAttributes() const 
     {return (fAttributesSubDetectors >> 24) & 0xFF;};
   Bool_t    TestAttribute(Int_t index) const