Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CastorDigiToRaw_h
0002 #define CastorDigiToRaw_h
0003 
0004 /** \class CastorDigiToRaw
0005  *
0006  * CastorDigiToRaw is the EDProducer subclass which runs 
0007  * the Castor Unpack algorithm.
0008  *
0009  * \author Alan Campbell    
0010  *
0011  * \version   1st Version April 18, 2008  
0012  *
0013  ************************************************************/
0014 
0015 #include "FWCore/Framework/interface/global/EDProducer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "DataFormats/Common/interface/Handle.h"
0018 
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "FWCore/Utilities/interface/ESGetToken.h"
0022 
0023 #include "EventFilter/CastorRawToDigi/interface/CastorPacker.h"
0024 #include "EventFilter/CastorRawToDigi/interface/CastorCtdcPacker.h"
0025 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0026 #include "CalibFormats/CastorObjects/interface/CastorDbService.h"
0027 #include "CalibFormats/CastorObjects/interface/CastorDbRecord.h"
0028 
0029 class CastorDigiToRaw : public edm::global::EDProducer<> {
0030 public:
0031   explicit CastorDigiToRaw(const edm::ParameterSet& ps);
0032   void produce(edm::StreamID, edm::Event& e, const edm::EventSetup& c) const override;
0033 
0034 private:
0035   const edm::InputTag castorTag_;
0036   const bool usingctdc_;
0037   const edm::EDGetTokenT<CastorDigiCollection> tok_input_;
0038   const edm::EDPutTokenT<FEDRawDataCollection> tok_put_;
0039   const edm::ESGetToken<CastorDbService, CastorDbRecord> tok_pSetup_;
0040 };
0041 
0042 #endif