CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 #include "boost/shared_ptr.hpp"
7 
8 // user include files
11 
13 
17 
18 //
19 // class declaration
20 //
21 
22 template< typename TObject , typename TRecord>
24  public:
27 
28 
29  std::auto_ptr<TObject> produce(const TRecord&);
30 
31 private:
32 
34  const edm::IOVSyncValue& iov,
35  edm::ValidityInterval& iValidity);
36 
39 };
40 
41 template< typename TObject , typename TRecord>
43 {
44  setWhatProduced(this);
45  findingRecord<TRecord>();
46 }
47 
48 template< typename TObject , typename TRecord>
49 std::auto_ptr<TObject> SiStripTemplateEmptyFakeESSource<TObject,TRecord>::produce(const TRecord& iRecord)
50 {
51  std::auto_ptr<TObject> ptr(new TObject);
52  return ptr;
53 }
54 
55 template< typename TObject , typename TRecord>
57  const edm::IOVSyncValue& iov,
58  edm::ValidityInterval& iValidity){
60  iValidity = infinity;
61 }
62 
63 
64 #endif
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
tuple iov
Definition: o2o.py:307
static const IOVSyncValue & beginOfTime()
SiStripTemplateEmptyFakeESSource(const edm::ParameterSet &)
const double infinity
std::auto_ptr< TObject > produce(const TRecord &)
const SiStripTemplateEmptyFakeESSource & operator=(const SiStripTemplateEmptyFakeESSource &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity)