Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-10 02:53:39

0001 #ifndef CalibTracker_SiStripESProducers_SiStripQualityFakeESSource
0002 #define CalibTracker_SiStripESProducers_SiStripQualityFakeESSource
0003 
0004 // system include files
0005 #include <memory>
0006 
0007 // user include files
0008 #include "FWCore/Framework/interface/ModuleFactory.h"
0009 #include "FWCore/Framework/interface/ESProducer.h"
0010 
0011 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0014 
0015 #include "CalibFormats/SiStripObjects/interface/SiStripQuality.h"
0016 #include "CalibTracker/Records/interface/SiStripQualityRcd.h"
0017 
0018 //
0019 // class declaration
0020 //
0021 
0022 class SiStripQualityFakeESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0023 public:
0024   SiStripQualityFakeESSource(const edm::ParameterSet&);
0025   ~SiStripQualityFakeESSource() override{};
0026   SiStripQualityFakeESSource(const SiStripQualityFakeESSource&) = delete;
0027   const SiStripQualityFakeESSource& operator=(const SiStripQualityFakeESSource&) = delete;
0028 
0029   std::unique_ptr<SiStripQuality> produce(const SiStripQualityRcd&);
0030 
0031 private:
0032   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0033                       const edm::IOVSyncValue& iov,
0034                       edm::ValidityInterval& iValidity) override;
0035 };
0036 
0037 #endif