Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:37

0001 #ifndef SimCalorimetry_EcalTrigPrimProducers_EcalTrigPrimSpikeESProducer_H
0002 #define SimCalorimetry_EcalTrigPrimProducers_EcalTrigPrimSpikeESProducer_H
0003 
0004 // user include files
0005 #include "FWCore/Framework/interface/ESProducer.h"
0006 #include "FWCore/Framework/interface/ModuleFactory.h"
0007 
0008 #include "FWCore/Framework/interface/ESHandle.h"
0009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0010 
0011 #include "CondFormats/DataRecord/interface/EcalTPGSpikeRcd.h"
0012 #include "CondFormats/EcalObjects/interface/EcalTPGSpike.h"
0013 
0014 #include <vector>
0015 
0016 //
0017 // class declaration
0018 //
0019 
0020 class EcalTrigPrimSpikeESProducer : public edm::ESProducer {
0021 public:
0022   EcalTrigPrimSpikeESProducer(const edm::ParameterSet &);
0023   ~EcalTrigPrimSpikeESProducer() override;
0024 
0025   std::unique_ptr<EcalTPGSpike> produceSpike(const EcalTPGSpikeRcd &);
0026 
0027 private:
0028   std::vector<uint32_t> towerIDs_;
0029   uint16_t zeroThresh_;
0030 };
0031 
0032 #endif