X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=RAW%2FAliRawDataHeader.h;h=2b87fbd1915fed12ba858a785594f65c6c081b2c;hb=735d88d43b70598636934daaa2992415c0c0c761;hp=02e886bed6ec1279b2e5b32707db85dfbc091d5a;hpb=2bb1112fc265bf5b37bab9d716bc6dd9edbe63f9;p=u%2Fmrichter%2FAliRoot.git diff --git a/RAW/AliRawDataHeader.h b/RAW/AliRawDataHeader.h index 02e886bed6e..2b87fbd1915 100644 --- a/RAW/AliRawDataHeader.h +++ b/RAW/AliRawDataHeader.h @@ -9,12 +9,17 @@ struct AliRawDataHeader { fWord2(2<<24), fEventID2(0), fAttributesSubDetectors(0), - fStatusMiniEventID(0x1000), // status bit 4: no L1/L2 trigger information + fStatusMiniEventID(0x10000), // status bit 4: no L1/L2 trigger information fTriggerClassLow(0), fROILowTriggerClassHigh(0), fROIHigh(0) {} + // Adding virtual destructor breaks + // C++ struct backward compatibility + // Do not uncomment the line below!!! + // virtual ~AliRawDataHeader() {} + UShort_t GetEventID1() const { return (UShort_t)( fWord2 & 0xFFF ); @@ -52,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