1 #ifndef CalibTracker_SiStripESProducer_DummyCondDBWriter_h 2 #define CalibTracker_SiStripESProducer_DummyCondDBWriter_h 19 template<
typename TObject ,
typename TObjectO ,
typename TRecord>
35 template<
typename TObject ,
typename TObjectO ,
typename TRecord>
37 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter constructor for typename " <<
typeid(TObject).
name() <<
" and record " <<
typeid(TRecord).
name() << std::endl;
41 template<
typename TObject ,
typename TObjectO ,
typename TRecord >
43 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter::~DummyCondDBWriter()" << std::endl;
46 template<
typename TObject ,
typename TObjectO ,
typename TRecord >
52 if(
cacheID == es.
get<TRecord>().cacheIdentifier()){
53 edm::LogInfo(
"DummyCondDBWriter") <<
"not needed to store objects with Record "<< rcdName <<
" at run " << run.
run() << std::endl;
return;
58 es.
get<TRecord>().
get( labelName, esobj );
59 TObjectO *
obj=
new TObjectO(*(esobj.
product()));
67 if(openIovAt==
"beginOfTime")
69 else if (openIovAt==
"currentTime")
74 dbservice->
writeOne(obj, Time_, rcdName);
76 edm::LogError(
"SiStripFedCablingBuilder")<<
"Service is unavailable"<<std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
DummyCondDBWriter(const edm::ParameterSet &iConfig)
void analyze(const edm::Event &e, const edm::EventSetup &es)
unsigned long long Time_t
cond::Time_t beginOfTime() const
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
void endRun(const edm::Run &run, const edm::EventSetup &es)
unsigned long long cacheID
edm::ParameterSet iConfig_
cond::Time_t currentTime() const
T const * product() const