|
|
Go to the documentation of this file. 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
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
std::string m_tagForHighGain
bool existsIov(const std::string &tag)
cond::persistency::Session & dbSession() const
cond::Iov_t getInterval(cond::Time_t time)
double m_currentThreshold
cond::persistency::ConnectionPool m_connection
PopConESTransitionSourceHandler(edm::ParameterSet const &pset)
std::string m_connectionString
std::string id() const final
std::string m_tagForLowGain
std::string m_tagForRunInfo
~PopConESTransitionSourceHandler() override
IOVProxy readIov(const std::string &tag)
void setDescription(const std::string &description)
IOVEditor editIov(const std::string &tag)
cond::TagInfo_t const & tagInfo() const
void setParameters(const edm::ParameterSet &connectionPset)
Transaction & transaction()
IOVEditor createIov(const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
virtual void getObjectsForESTransition(bool isLowGain)
void getNewObjects() final
cond::Tag_t tagInfo() const
std::string m_userTextLog
edm::ParameterSet m_connectionPset