template<class T>
class popcon::PopConBTransitionSourceHandler< T >
Definition at line 14 of file PopConBTransitionSourceHandler.h.
Definition at line 65 of file PopConBTransitionSourceHandler.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::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(), 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::PopConBTransitionSourceHandler< T >::getNewObjects().
69 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 70 <<
"Loading tag for B " << ( isBOn ?
"ON" :
"OFF" ) <<
": " 72 <<
" and IOV valid for run number: " <<
m_run << std::endl;
77 <<
", IOV valid for run number " <<
m_run <<
" starting from: " << currentIov.
since 78 <<
", with corresponding payload hash: " << currentIov.
payloadId 81 if( currentIov.
payloadId != this->tagInfo().lastPayloadToken ) {
82 std::ostringstream ss;
83 ss <<
"Adding iov with since "<<
m_run<<
" pointing to hash " << currentIov.
payloadId 84 <<
" corresponding to the calibrations for magnetic field " 85 << ( isBOn ?
"ON" :
"OFF" );
86 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 87 << ss.str() << std::endl;
90 editor = session.
editIov( destTag );
93 editor.
setDescription(
"Tag created by PopConBTransitionSourceHandler" );
99 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 100 <<
"The payload with hash " << currentIov.
payloadId 101 <<
" corresponding to the calibrations for magnetic field " 102 << ( isBOn ?
"ON" :
"OFF" )
103 <<
" is still valid for run " <<
m_run 104 <<
" in the destination tag " << destTag
105 <<
".\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)
Transaction & transaction()
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