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 
14 
15 //
16 // class declaration
17 //
18 
19 template <typename TObject, typename TRecord>
21 public:
24 
25  std::unique_ptr<TObject> produce(const TRecord&);
26 
27 private:
29  const edm::IOVSyncValue& iov,
30  edm::ValidityInterval& iValidity) override;
31 
34 };
35 
36 template <typename TObject, typename TRecord>
38  setWhatProduced(this);
39  findingRecord<TRecord>();
40 }
41 
42 template <typename TObject, typename TRecord>
43 std::unique_ptr<TObject> SiStripTemplateEmptyFakeESSource<TObject, TRecord>::produce(const TRecord& iRecord) {
44  return std::make_unique<TObject>();
45 }
46 
47 template <typename TObject, typename TRecord>
49  const edm::IOVSyncValue& iov,
50  edm::ValidityInterval& iValidity) {
52  iValidity = infinity;
53 }
54 
55 #endif
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
std::unique_ptr< TObject > produce(const TRecord &)
const SiStripTemplateEmptyFakeESSource & operator=(const SiStripTemplateEmptyFakeESSource &)=delete
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
SiStripTemplateEmptyFakeESSource(const edm::ParameterSet &)
const double infinity
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override