Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:59:52

0001 #ifndef HcalHistogramRawToDigi_h
0002 #define HcalHistogramRawToDigi_h
0003 
0004 /** \class HcalHistogramRawToDigi
0005  *
0006  * HcalHistogramRawToDigi is the EDProducer subclass which runs 
0007  * the Hcal Unpack algorithm for calibration-mode histograms.
0008  *
0009  * \author Jeremiah Mans
0010       
0011  *
0012  * \version   1st Version June 10, 2005  
0013 
0014  *
0015  ************************************************************/
0016 
0017 #include "FWCore/Framework/interface/stream/EDProducer.h"
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "DataFormats/Common/interface/Handle.h"
0020 
0021 #include "FWCore/Framework/interface/EventSetup.h"
0022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0023 #include "FWCore/Utilities/interface/ESGetToken.h"
0024 
0025 #include "EventFilter/HcalRawToDigi/interface/HcalUnpacker.h"
0026 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0027 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
0028 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h"
0029 
0030 class HcalHistogramRawToDigi : public edm::stream::EDProducer<> {
0031 public:
0032   explicit HcalHistogramRawToDigi(const edm::ParameterSet& ps);
0033   ~HcalHistogramRawToDigi() override;
0034   void produce(edm::Event& e, const edm::EventSetup& c) override;
0035 
0036 private:
0037   edm::EDGetTokenT<FEDRawDataCollection> tok_data_;
0038   edm::ESGetToken<HcalDbService, HcalDbRecord> tok_dbService_;
0039   HcalUnpacker unpacker_;
0040   std::vector<int> fedUnpackList_;
0041   int firstFED_;
0042 };
0043 
0044 #endif