1 #ifndef CalibTracker_SiStripESProducer_DummyCondDBWriter_h
2 #define CalibTracker_SiStripESProducer_DummyCondDBWriter_h
18 template <
typename TObject,
typename TObjectO,
typename TRecord>
32 template <
typename TObject,
typename TObjectO,
typename TRecord>
34 : iConfig_(iConfig), cacheID(0) {
35 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter constructor for typename " <<
typeid(TObject).
name()
36 <<
" and record " <<
typeid(TRecord).
name() << std::endl;
39 template <
typename TObject,
typename TObjectO,
typename TRecord>
41 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter::~DummyCondDBWriter()" << std::endl;
44 template <
typename TObject,
typename TObjectO,
typename TRecord>
49 if (cacheID == es.
get<TRecord>().cacheIdentifier()) {
50 edm::LogInfo(
"DummyCondDBWriter") <<
"not needed to store objects with Record " << rcdName <<
" at run "
51 <<
run.run() << std::endl;
54 cacheID = es.
get<TRecord>().cacheIdentifier();
57 es.
get<TRecord>().
get(labelName, esobj);
58 TObjectO*
obj =
new TObjectO(*(esobj.
product()));
65 if (openIovAt ==
"beginOfTime")
67 else if (openIovAt ==
"currentTime")
70 Time_ = iConfig_.getUntrackedParameter<uint32_t>(
"OpenIovAtTime", 1);
74 edm::LogError(
"SiStripFedCablingBuilder") <<
"Service is unavailable" << std::endl;