1 #ifndef CalibTracker_SiStripESProducer_DummyCondDBWriter_h 2 #define CalibTracker_SiStripESProducer_DummyCondDBWriter_h 18 template <
typename TObject,
typename TObjectO,
typename TRecord>
33 template <
typename TObject,
typename TObjectO,
typename TRecord>
38 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter constructor for typename " <<
typeid(TObject).
name()
39 <<
" and record " <<
typeid(TRecord).
name() << std::endl;
42 template <
typename TObject,
typename TObjectO,
typename TRecord>
44 edm::LogInfo(
"DummyCondDBWriter") <<
"DummyCondDBWriter::~DummyCondDBWriter()" << std::endl;
47 template <
typename TObject,
typename TObjectO,
typename TRecord>
51 if (!watcher_.check(es)) {
52 edm::LogInfo(
"DummyCondDBWriter") <<
"not needed to store objects with Record " << rcdName <<
" at run " 53 <<
run.run() << std::endl;
57 auto obj = std::make_unique<TObjectO>(es.
getData(token_));
64 if (openIovAt ==
"beginOfTime")
66 else if (openIovAt ==
"currentTime")
69 Time_ = iConfig_.getUntrackedParameter<uint32_t>(
"OpenIovAtTime", 1);
73 edm::LogError(
"SiStripFedCablingBuilder") <<
"Service is unavailable" << std::endl;
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESWatcher< TRecord > watcher_
cond::Time_t beginOfTime() const
DummyCondDBWriter(const edm::ParameterSet &iConfig)
Log< level::Error, false > LogError
T getUntrackedParameter(std::string const &, T const &) const
unsigned long long Time_t
cond::Time_t currentTime() const
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
Log< level::Info, false > LogInfo
edm::ESGetToken< TObject, TRecord > token_
edm::ParameterSet iConfig_
void endRun(const edm::Run &run, const edm::EventSetup &es) override
~DummyCondDBWriter() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override