Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CalibTracker_SiPixelESProducers_SiPixelFakeTemplateDBObjectESSource_h
0002 #define CalibTracker_SiPixelESProducers_SiPixelFakeTemplateDBObjectESSource_h
0003 
0004 #include <memory>
0005 
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "FWCore/Framework/interface/ESProducer.h"
0008 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
0009 #include "CondFormats/SiPixelObjects/interface/SiPixelTemplateDBObject.h"
0010 #include "CondFormats/DataRecord/interface/SiPixelTemplateDBObjectRcd.h"
0011 
0012 class SiPixelFakeTemplateDBObjectESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder {
0013 public:
0014   SiPixelFakeTemplateDBObjectESSource(const edm::ParameterSet &);
0015   ~SiPixelFakeTemplateDBObjectESSource() override;
0016 
0017   typedef std::vector<std::string> vstring;
0018 
0019   virtual std::unique_ptr<SiPixelTemplateDBObject> produce(const SiPixelTemplateDBObjectRcd &);
0020 
0021 protected:
0022   void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0023                       const edm::IOVSyncValue &,
0024                       edm::ValidityInterval &) override;
0025 
0026 private:
0027   vstring templateCalibrations_;
0028   float version_;
0029 };
0030 #endif