00001 #ifndef CalibTracker_SiPixelESProducers_SiPixelFakeTemplateDBObjectESSource_h 00002 #define CalibTracker_SiPixelESProducers_SiPixelFakeTemplateDBObjectESSource_h 00003 00004 #include <memory> 00005 #include "boost/shared_ptr.hpp" 00006 00007 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00008 #include "FWCore/Framework/interface/ESProducer.h" 00009 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h" 00010 #include "CondFormats/SiPixelObjects/interface/SiPixelTemplateDBObject.h" 00011 #include "CondFormats/DataRecord/interface/SiPixelTemplateDBObjectRcd.h" 00012 00013 class SiPixelFakeTemplateDBObjectESSource : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00014 00015 public: 00016 SiPixelFakeTemplateDBObjectESSource(const edm::ParameterSet &); 00017 ~SiPixelFakeTemplateDBObjectESSource(); 00018 00019 typedef std::vector<std::string> vstring; 00020 00021 virtual std::auto_ptr<SiPixelTemplateDBObject> produce(const SiPixelTemplateDBObjectRcd &); 00022 00023 protected: 00024 00025 virtual void setIntervalFor( const edm::eventsetup::EventSetupRecordKey&, 00026 const edm::IOVSyncValue&, 00027 edm::ValidityInterval& ); 00028 00029 private: 00030 00031 vstring templateCalibrations_; 00032 float version_; 00033 00034 }; 00035 #endif