Implements edm::EDAnalyzer.
Definition at line 48 of file SiStripDetVOffHandler.cc.
51 std::shared_ptr<SiStripDetVOff> lastPayload;
53 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
54 <<
"Retrieve last IOV from " <<
m_condDb;
60 <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
61 <<
"No information can be retrieved from " <<
m_condDb <<
" because the file is empty.\n"
62 <<
"Will assume all HV/LV's are off.";
66 if (!lastPayloadHash.empty()) {
70 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
71 <<
" ... last IOV: " << lastIov <<
" , "
72 <<
"last Payload: " << lastPayloadHash;
81 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
82 <<
"Finished building " <<
newPayloads.size() <<
" new payloads.";
85 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
91 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
92 <<
"No HV/LV transition was found from PVSS query.";
93 bool forceNewIOV =
true;
102 edm::LogInfo(
"SiStripDetVOffHandler") <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
103 <<
" ... No payload transfered.";
106 <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
107 <<
" ... The last IOV is too old. Will start a new IOV from " <<
newPayloads[0].second <<
"("
109 <<
") with the same payload.";
116 <<
"[SiStripDetVOffHandler::" << __func__ <<
"] "
131 <<
" payloads written to sqlite file.";
References SiStripDetVOffBuilder::BuildDetVOffObj(), cond::persistency::Transaction::commit(), cond::persistency::Session::createIov(), cond::persistency::ConnectionPool::createSession(), cond::persistency::Session::editIov(), cond::persistency::Session::existsDatabase(), cond::persistency::Session::existsIov(), cond::persistency::Session::fetchPayload(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVProxy::getLast(), SiStripDetVOffBuilder::getModulesVOff(), getRunInfo::hours, cond::persistency::IOVEditor::insert(), m_condDb, m_connectionPool, m_localCondDbFile, m_targetTag, maxTimeBeforeNewIOV_, modHVBuilder, newPayloads, jets_cff::payload, cond::Iov_t::payloadId, cond::persistency::Session::readIov(), edm::second(), cond::persistency::IOVEditor::setDescription(), SiStripDetVOffBuilder::setLastSiStripDetVOff(), cond::Iov_t::since, cond::persistency::Transaction::start(), cond::persistency::Session::storePayload(), cond::timestamp, cond::time::to_boost(), and cond::persistency::Session::transaction().