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>
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;
57 es.
get<TRecord>().
get(labelName, esobj);
58 TObjectO*
obj =
new TObjectO(*(esobj.
product()));
65 if (openIovAt ==
"beginOfTime")
67 else if (openIovAt ==
"currentTime")
72 dbservice->
writeOne(obj, Time_, rcdName);
74 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)
unsigned long long Time_t
cond::Time_t beginOfTime() const
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
unsigned long long cacheID
edm::ParameterSet iConfig_
cond::Time_t currentTime() const
void endRun(const edm::Run &run, const edm::EventSetup &es) override
~DummyCondDBWriter() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
T const * product() const