From 12885ca447d5d2ac6627fdff125ce89eeefc67b1 Mon Sep 17 00:00:00 2001 From: cvetan Date: Wed, 26 Apr 2006 16:49:24 +0000 Subject: [PATCH] New method to set the CTP trigger mask --- RAW/AliRawDataHeader.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RAW/AliRawDataHeader.h b/RAW/AliRawDataHeader.h index 7606915e33e..5885e3c51b9 100644 --- a/RAW/AliRawDataHeader.h +++ b/RAW/AliRawDataHeader.h @@ -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 -- 2.43.0