Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:33

0001 // Date   : 13/06/2007
0002 
0003 #ifndef ECALDCCHEADERRUNTYPE_DECODER_H
0004 #define ECALDCCHEADERRUNTYPE_DECODER_H
0005 #include <DataFormats/EcalRawData/interface/EcalDCCHeaderBlock.h>
0006 #include "DCCRawDataDefinitions.h"
0007 
0008 class EcalDCCHeaderRuntypeDecoder {
0009 public:
0010   EcalDCCHeaderRuntypeDecoder();
0011   ~EcalDCCHeaderRuntypeDecoder();
0012   bool Decode(unsigned long TrTy, unsigned long detTrTy, unsigned long runType, EcalDCCHeaderBlock* theHeader);
0013 
0014 protected:
0015   bool WasDecodingOk_ = true;
0016   void DecodeSetting(int settings, EcalDCCHeaderBlock* theHeader);
0017   void DecodeSettingGlobal(unsigned long TrigType, unsigned long detTrigType, EcalDCCHeaderBlock* theHeader);
0018   void CleanEcalDCCSettingsInfo(
0019       EcalDCCHeaderBlock::EcalDCCEventSettings*
0020           theEventSettings);  // Re-initialize theEventSettings  before filling with the deocoded event
0021 };
0022 
0023 #endif