template<class T>
class popcon::PopConESTransitionSourceHandler< T >
Definition at line 14 of file PopConESTransitionSourceHandler.h.
Definition at line 69 of file PopConESTransitionSourceHandler.h.
References cond::persistency::Session::createIov(), popcon::PopConSourceHandler< T >::dbSession(), cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::Session::existsIov(), cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), 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(), dataDML::session, cond::persistency::IOVEditor::setDescription(), cond::Iov_t::since, AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< T >::tagInfo(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().
Referenced by popcon::PopConESTransitionSourceHandler< T >::getNewObjects().
73 edm::LogInfo(
"PopConESTransitionSourceHandler" ) <<
"[" <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 74 <<
"Loading tag for ES " << ( isLowGain ?
"LowGain" :
"HighGain" ) <<
": " 76 <<
" and IOV valid for run number: " <<
m_run << std::endl;
81 <<
", IOV valid for run number " <<
m_run <<
" starting from: " << currentIov.
since 82 <<
", with corresponding payload hash: " << currentIov.
payloadId 85 if( currentIov.
payloadId != this->tagInfo().lastPayloadToken ) {
86 std::ostringstream ss;
87 ss <<
"Adding iov with since "<<
m_run<<
" pointing to hash " << currentIov.
payloadId 88 <<
" corresponding to the ES Gain " 89 << ( isLowGain ?
"LOW" :
"HIGH" );
90 edm::LogInfo(
"PopConESTransitionSourceHandler" ) <<
"[" <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 91 << ss.str() << std::endl;
94 editor = session.
editIov( destTag );
97 editor.
setDescription(
"Tag created by PopConESTransitionSourceHandler" );
103 edm::LogInfo(
"PopConESTransitionSourceHandler" ) <<
"[" <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 104 <<
"The payload with hash " << currentIov.
payloadId 105 <<
" corresponding to ES Gain" 106 << ( isLowGain ?
"LOW" :
"HIGH" )
107 <<
" is still valid for run " <<
m_run 108 <<
" in the destination tag " << destTag
109 <<
".\nNo transfer needed." <<std::endl;
cond::persistency::Session & dbSession() const
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()
std::string m_tagForHighGain
IOVProxy readIov(const std::string &tag, bool full=false)
cond::TimeType timeType() const
Iterator find(cond::Time_t time)
IOVEditor editIov(const std::string &tag)
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
bool existsIov(const std::string &tag)
cond::TagInfo_t const & tagInfo() const