CMS 3D CMS Logo

SiStripTemplateEmptyFakeESSource.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripESProducers_SiStripTemplateEmptyFakeESSource
2 #define CalibTracker_SiStripESProducers_SiStripTemplateEmptyFakeESSource
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
10 
12 
16 
17 //
18 // class declaration
19 //
20 
21 template< typename TObject , typename TRecord>
23  public:
26 
27 
28  std::unique_ptr<TObject> produce(const TRecord&);
29 
30 private:
31 
33  const edm::IOVSyncValue& iov,
34  edm::ValidityInterval& iValidity) override;
35 
38 };
39 
40 template< typename TObject , typename TRecord>
42 {
43  setWhatProduced(this);
44  findingRecord<TRecord>();
45 }
46 
47 template< typename TObject , typename TRecord>
48 std::unique_ptr<TObject> SiStripTemplateEmptyFakeESSource<TObject,TRecord>::produce(const TRecord& iRecord)
49 {
50  return std::make_unique<TObject>();
51 }
52 
53 template< typename TObject , typename TRecord>
55  const edm::IOVSyncValue& iov,
56  edm::ValidityInterval& iValidity){
58  iValidity = infinity;
59 }
60 
61 
62 #endif
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::unique_ptr< TObject > produce(const TRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
const SiStripTemplateEmptyFakeESSource & operator=(const SiStripTemplateEmptyFakeESSource &)=delete
static const IOVSyncValue & beginOfTime()
SiStripTemplateEmptyFakeESSource(const edm::ParameterSet &)
const double infinity
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override