|
|
Go to the documentation of this file. 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;
cond::Time_t beginOfTime() const
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
edm::ESWatcher< TRecord > watcher_
DummyCondDBWriter(const edm::ParameterSet &iConfig)
edm::ESGetToken< TObject, TRecord > token_
unsigned long long Time_t
edm::ParameterSet iConfig_
Log< level::Error, false > LogError
bool getData(T &iHolder) const
~DummyCondDBWriter() override
void analyze(const edm::Event &e, const edm::EventSetup &es) override
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
cond::Time_t currentTime() const
void endRun(const edm::Run &run, const edm::EventSetup &es) override