File indexing completed on 2024-04-06 12:10:39
0001 #ifndef _ESRAWTODIGI_H_
0002 #define _ESRAWTODIGI_H_
0003
0004 #include "DataFormats/Common/interface/Handle.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/stream/EDProducer.h"
0007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 #include "EventFilter/ESRawToDigi/interface/ESUnpacker.h"
0010 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0011 #include "DataFormats/EcalRawData/interface/ESListOfFEDS.h"
0012
0013 class ESRawToDigi : public edm::stream::EDProducer<> {
0014 public:
0015 ESRawToDigi(const edm::ParameterSet& ps);
0016 ~ESRawToDigi() override;
0017
0018 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0019
0020 void produce(edm::Event& e, const edm::EventSetup& es) override;
0021
0022 private:
0023 std::string ESdigiCollection_;
0024 edm::EDGetTokenT<FEDRawDataCollection> dataToken_;
0025 edm::EDGetTokenT<ESListOfFEDS> fedsToken_;
0026
0027 bool regional_;
0028
0029 bool debug_;
0030
0031 ESUnpacker* ESUnpacker_;
0032 };
0033
0034 #endif