CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
26 
27  std::unique_ptr<TObject> produce(const TRecord&);
28 
29 private:
31  const edm::IOVSyncValue& iov,
32  edm::ValidityInterval& iValidity) override;
33 };
34 
35 template <typename TObject, typename TRecord>
37  setWhatProduced(this);
38  findingRecord<TRecord>();
39 }
40 
41 template <typename TObject, typename TRecord>
42 std::unique_ptr<TObject> SiStripTemplateEmptyFakeESSource<TObject, TRecord>::produce(const TRecord& iRecord) {
43  return std::make_unique<TObject>();
44 }
45 
46 template <typename TObject, typename TRecord>
48  const edm::IOVSyncValue& iov,
49  edm::ValidityInterval& iValidity) {
51  iValidity = infinity;
52 }
53 
54 #endif
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