template<class T>
class popcon::PopConESTransitionSourceHandler< T >
Definition at line 14 of file PopConESTransitionSourceHandler.h.
Definition at line 76 of file PopConESTransitionSourceHandler.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::PopConESTransitionSourceHandler< T >::m_run, popcon::PopConESTransitionSourceHandler< T >::m_tagForHighGain, popcon::PopConESTransitionSourceHandler< T >::m_tagForLowGain, 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::PopConESTransitionSourceHandler< T >::getNewObjects().
81 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 82 <<
"Loading tag for ES " << (isLowGain ?
"LowGain" :
"HighGain")
84 <<
" and IOV valid for run number: " <<
m_run << std::endl;
87 LogDebug(
"PopConESTransitionSourceHandler")
89 <<
" with size: " << iov.
loadedSize() <<
", IOV valid for run number " <<
m_run 90 <<
" starting from: " << currentIov.
since <<
", with corresponding payload hash: " << currentIov.
payloadId 93 if (currentIov.
payloadId != this->tagInfo().lastInterval.payloadId) {
94 std::ostringstream
ss;
95 ss <<
"Adding iov with since " <<
m_run <<
" pointing to hash " << currentIov.
payloadId 96 <<
" corresponding to the ES Gain " << (isLowGain ?
"LOW" :
"HIGH");
99 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " <<
ss.str() << std::endl;
102 editor = session.
editIov(destTag);
105 editor.
setDescription(
"Tag created by PopConESTransitionSourceHandler");
113 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 114 <<
"The payload with hash " << currentIov.
payloadId <<
" corresponding to ES Gain" 115 << (isLowGain ?
"LOW" :
"HIGH") <<
" is still valid for run " <<
m_run <<
" in the destination tag " 116 << destTag <<
".\nNo transfer needed." << std::endl;
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)
std::string m_tagForLowGain
Transaction & transaction()
cond::TagInfo_t const & tagInfo() const
std::string m_tagForHighGain
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