template<class T>
class popcon::PopConBTransitionSourceHandler< T >
Definition at line 14 of file PopConBTransitionSourceHandler.h.
Definition at line 72 of file PopConBTransitionSourceHandler.h.
References cond::persistency::Session::createIov(), popcon::PopConSourceHandler< T >::dbSession(), cond::persistency::Session::editIov(), cond::persistency::Session::existsIov(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVProxy::getInterval(), cond::persistency::IOVEditor::insert(), cond::persistency::IOVProxy::loadedSize(), LogDebug, popcon::PopConBTransitionSourceHandler< T >::m_run, popcon::PopConBTransitionSourceHandler< T >::m_tagForBOff, popcon::PopConBTransitionSourceHandler< T >::m_tagForBOn, popcon::PopConSourceHandler< T >::m_userTextLog, cond::TagInfo_t::name, cond::Iov_t::payloadId, cond::persistency::Session::readIov(), cond::persistency::IOVEditor::setDescription(), cond::Iov_t::since, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< T >::tagInfo(), cond::persistency::IOVProxy::tagInfo(), cond::Tag_t::timeType, and cond::persistency::Session::transaction().
Referenced by popcon::PopConBTransitionSourceHandler< T >::getNewObjects().
78 <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 80 <<
" and IOV valid for run number: " <<
m_run << std::endl;
83 LogDebug(
"PopConBTransitionSourceHandler")
85 <<
" with size: " << iov.
loadedSize() <<
", IOV valid for run number " <<
m_run 86 <<
" starting from: " << currentIov.
since <<
", with corresponding payload hash: " << currentIov.
payloadId 89 if (currentIov.
payloadId != this->tagInfo().lastInterval.payloadId) {
90 std::ostringstream
ss;
91 ss <<
"Adding iov with since " <<
m_run <<
" pointing to hash " << currentIov.
payloadId 92 <<
" corresponding to the calibrations for magnetic field " << (isBOn ?
"ON" :
"OFF");
95 <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " <<
ss.str() << std::endl;
98 editor = session.
editIov(destTag);
101 editor.
setDescription(
"Tag created by PopConBTransitionSourceHandler");
109 <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 110 <<
"The payload with hash " << currentIov.
payloadId 111 <<
" corresponding to the calibrations for magnetic field " << (isBOn ?
"ON" :
"OFF")
112 <<
" is still valid for run " <<
m_run <<
" in the destination tag " << destTag <<
".\nNo transfer needed." std::string m_userTextLog
IOVEditor createIov(const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
void setDescription(const std::string &description)
Transaction & transaction()
cond::TagInfo_t const & tagInfo() const
cond::Iov_t getInterval(cond::Time_t time)
cond::Tag_t tagInfo() const
IOVProxy readIov(const std::string &tag)
IOVEditor editIov(const std::string &tag)
Log< level::Info, false > LogInfo
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
bool existsIov(const std::string &tag)
cond::persistency::Session & dbSession() const