test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripTemplateFakeESSource.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripESProducers_SiStripTemplateFakeESSource
2 #define CalibTracker_SiStripESProducers_SiStripTemplateFakeESSource
3 
4 // system include files
5 #include <memory>
6 #include "boost/shared_ptr.hpp"
7 
8 // user include files
12 
14 
18 
19 //
20 // class declaration
21 //
22 
23 template< typename TObject , typename TRecord, typename TService>
25  public:
28 
29 
30  std::auto_ptr<TObject> produce(const TRecord&);
31 
32 private:
33 
35  const edm::IOVSyncValue& iov,
36  edm::ValidityInterval& iValidity);
37 
40 };
41 
42 template< typename TObject , typename TRecord, typename TService>
44 {
45  setWhatProduced(this);
46  findingRecord<TRecord>();
47 }
48 
49 template< typename TObject , typename TRecord, typename TService>
50 std::auto_ptr<TObject> SiStripTemplateFakeESSource<TObject,TRecord,TService>::produce(const TRecord& iRecord)
51 {
52  edm::Service<TService> condObjBuilder;
53  TObject *obj=0;
54  condObjBuilder->getObj(obj);
55  std::auto_ptr<TObject> ptr(obj);
56  return ptr;
57 }
58 
59 template< typename TObject , typename TRecord, typename TService>
61  const edm::IOVSyncValue& iov,
62  edm::ValidityInterval& iValidity){
64  iValidity = infinity;
65 }
66 
67 
68 #endif
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
SiStripTemplateFakeESSource(const edm::ParameterSet &)
std::auto_ptr< TObject > produce(const TRecord &)
tuple iov
Definition: o2o.py:307
static const IOVSyncValue & beginOfTime()
const double infinity
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity)
const SiStripTemplateFakeESSource & operator=(const SiStripTemplateFakeESSource &)