Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:50

0001 #ifndef CalibTracker_SiStripESProducers_SiStripNoiseESSource_H
0002 #define CalibTracker_SiStripESProducers_SiStripNoiseESSource_H
0003 
0004 #include "FWCore/Framework/interface/ESProducer.h"
0005 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include <memory>
0008 
0009 class SiStripNoises;
0010 class SiStripNoisesRcd;
0011 
0012 /** 
0013     @class SiStripNoiseESSource
0014     @brief Pure virtual class for EventSetup sources of SiStripNoises.
0015     @author R.Bainbridge
0016 */
0017 class SiStripNoiseESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0018 public:
0019   SiStripNoiseESSource(const edm::ParameterSet&);
0020   SiStripNoiseESSource(const SiStripNoiseESSource&) = delete;
0021   const SiStripNoiseESSource& operator=(const SiStripNoiseESSource&) = delete;
0022   ~SiStripNoiseESSource() override { ; }
0023 
0024   virtual std::unique_ptr<SiStripNoises> produce(const SiStripNoisesRcd&);
0025 
0026 protected:
0027   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0028                       const edm::IOVSyncValue&,
0029                       edm::ValidityInterval&) override;
0030 
0031 private:
0032   virtual SiStripNoises* makeNoise() = 0;
0033 };
0034 
0035 #endif  // CalibTracker_SiStripESProducers_SiStripNoiseESSource_H