Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-30 02:37:16

0001 #ifndef ESZEROSUPPRESSIONPRODUCER_H
0002 #define ESZEROSUPPRESSIONPRODUCER_H
0003 
0004 #include "CondFormats/DataRecord/interface/ESPedestalsRcd.h"
0005 #include "CondFormats/DataRecord/interface/ESThresholdsRcd.h"
0006 #include "CondFormats/ESObjects/interface/ESPedestals.h"
0007 #include "CondFormats/ESObjects/interface/ESThresholds.h"
0008 #include "DataFormats/Common/interface/Handle.h"
0009 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0010 #include "DataFormats/Provenance/interface/Provenance.h"
0011 #include "FWCore/Framework/interface/ConsumesCollector.h"
0012 #include "FWCore/Framework/interface/ESHandle.h"
0013 #include "FWCore/Framework/interface/Event.h"
0014 #include "FWCore/Framework/interface/EventSetup.h"
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 #include "FWCore/Framework/interface/stream/EDProducer.h"
0017 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0019 
0020 class ESZeroSuppressionProducer : public edm::stream::EDProducer<> {
0021 public:
0022   explicit ESZeroSuppressionProducer(const edm::ParameterSet &ps);
0023   ~ESZeroSuppressionProducer() override;
0024 
0025   /**Produces the EDM products,*/
0026   void produce(edm::Event &event, const edm::EventSetup &eventSetup) override;
0027 
0028 private:
0029   const std::string digiProducer_;
0030   const std::string ESdigiCollection_;
0031   const std::string ESZSdigiCollection_;
0032 
0033   const edm::EDGetTokenT<ESDigiCollection> ES_token;
0034   const edm::ESGetToken<ESThresholds, ESThresholdsRcd> esthresholdsToken_;
0035   const edm::ESGetToken<ESPedestals, ESPedestalsRcd> espedsToken_;
0036 };
0037 
0038 #endif