template<class T>
class popcon::PopConBTransitionSourceHandler< T >
Definition at line 14 of file PopConBTransitionSourceHandler.h.
Definition at line 67 of file PopConBTransitionSourceHandler.h.
References cond::persistency::ConnectionPool::createSession(), cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), cond::persistency::IOVProxy::loadedSize(), LogDebug, popcon::PopConBTransitionSourceHandler< T >::m_connection, popcon::PopConBTransitionSourceHandler< T >::m_connectionString, 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::Iov_t::since, cond::persistency::TransactionScope::start(), AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< T >::tagInfo(), and cond::persistency::Session::transaction().
Referenced by popcon::PopConBTransitionSourceHandler< T >::getNewObjects().
69 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 74 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 75 <<
"Loading tag for B " << ( isBOn ?
"ON" :
"OFF" ) <<
": " 77 <<
" and IOV valid for run number: " <<
m_run << std::endl;
82 <<
", IOV valid for run number " <<
m_run <<
" starting from: " << currentIov.
since 83 <<
", with corresponding payload hash: " << currentIov.
payloadId 86 if( currentIov.
payloadId != this->tagInfo().lastPayloadToken ) {
87 std::ostringstream ss;
88 ss <<
"Adding iov with since "<<
m_run<<
" pointing to hash " << currentIov.
payloadId 89 <<
" corresponding to the calibrations for magnetic field " 90 << ( isBOn ?
"ON" :
"OFF" );
91 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 92 << ss.str() << std::endl;
98 edm::LogInfo(
"PopConBTransitionSourceHandler" ) <<
"[" <<
"PopConBTransitionSourceHandler::" << __func__ <<
"]: " 99 <<
"The payload with hash " << currentIov.
payloadId 100 <<
" corresponding to the calibrations for magnetic field " 101 << ( isBOn ?
"ON" :
"OFF" )
102 <<
" is still valid for run " <<
m_run 103 <<
" in the destination tag " << destTag
104 <<
".\nNo transfer needed." <<std::endl;
std::string m_userTextLog
Transaction & transaction()
IOVProxy readIov(const std::string &tag, bool full=false)
Iterator find(cond::Time_t time)
void start(bool readOnly=true)
Session createSession(const std::string &connectionString, bool writeCapable=false)
cond::persistency::ConnectionPool m_connection
IOVEditor editIov(const std::string &tag)
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
std::string m_connectionString
cond::TagInfo_t const & tagInfo() const