1 #ifndef PopConBTransitionSourceHandler_H 2 #define PopConBTransitionSourceHandler_H 30 <<
"PopConESTransitionSourceHandler:" << __func__ <<
"]: " 31 <<
"Initialising Connection Pool" << std::endl;
42 bool isLowGain =
true;
48 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 49 <<
"Loading tag for RunInfo " <<
m_tagForRunInfo <<
" and IOV valid for run number: " <<
m_run << std::endl;
52 LogDebug(
"PopConESTransitionSourceHandler")
54 <<
", IOV valid for run number " <<
m_run <<
" starting from: " << currentIov.
since 55 <<
", with corresponding payload hash: " << currentIov.
payloadId << std::endl;
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;
125 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 136 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 139 <<
" the run proposed for insertion " <<
m_run <<
". No transfer needed." << std::endl;
145 <<
"PopConESTransitionSourceHandler::" << __func__ <<
"]: " 146 <<
"END." << std::endl;
164 #endif //PopConESTransitionSourceHandler_H std::string m_userTextLog
~PopConESTransitionSourceHandler() override
void getNewObjects() final
virtual void getObjectsForESTransition(bool isLowGain)
IOVEditor createIov(const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
std::string m_connectionString
void setDescription(const std::string &description)
std::string m_tagForLowGain
Transaction & transaction()
void setParameters(const edm::ParameterSet &connectionPset)
cond::TagInfo_t const & tagInfo() const
edm::ParameterSet m_connectionPset
std::string m_tagForHighGain
cond::Iov_t getInterval(cond::Time_t time)
cond::Tag_t tagInfo() const
cond::persistency::ConnectionPool m_connection
std::string id() const final
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)
double m_currentThreshold
cond::persistency::Session & dbSession() const
PopConESTransitionSourceHandler(edm::ParameterSet const &pset)
std::string m_tagForRunInfo