#include <IOVProxy.h>
Public Member Functions | |
cond::Iov_t | getInterval (cond::Time_t time) |
cond::Iov_t | getInterval (cond::Time_t time, cond::Time_t defaultIovSize) |
cond::Iov_t | getLast () |
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > | getMetadata () const |
IOVProxy () | |
IOVProxy (const IOVProxy &rhs) | |
IOVProxy (const std::shared_ptr< SessionImpl > &session) | |
cond::TagInfo_t | iovSequenceInfo () const |
void | load (const std::string &tag) |
void | load (const std::string &tag, const boost::posix_time::ptime &snapshottime) |
std::pair< cond::Time_t, cond::Time_t > | loadedGroup () const |
int | loadedSize () const |
size_t | numberOfQueries () const |
IOVProxy & | operator= (const IOVProxy &rhs) |
void | reset () |
IOVArray | selectAll () |
IOVArray | selectAll (const boost::posix_time::ptime &snapshottime) |
IOVArray | selectRange (const cond::Time_t &begin, const cond::Time_t &end) |
IOVArray | selectRange (const cond::Time_t &begin, const cond::Time_t &end, const boost::posix_time::ptime &snapshottime) |
bool | selectRange (const cond::Time_t &begin, const cond::Time_t &end, IOVContainer &destination) |
int | sequenceSize () const |
const std::shared_ptr< SessionImpl > & | session () const |
cond::Tag_t | tagInfo () const |
Private Member Functions | |
void | checkTransaction (const std::string &ctx) const |
void | fetchSequence (cond::Time_t lowerGroup, cond::Time_t higherGroup) |
void | loadGroups () |
void | resetIOVCache () |
Private Attributes | |
std::shared_ptr< IOVProxyData > | m_data |
std::shared_ptr< SessionImpl > | m_session |
Definition at line 92 of file IOVProxy.h.
IOVProxy::IOVProxy | ( | ) |
Definition at line 121 of file IOVProxy.cc.
|
explicit |
Definition at line 123 of file IOVProxy.cc.
IOVProxy::IOVProxy | ( | const IOVProxy & | rhs | ) |
Definition at line 125 of file IOVProxy.cc.
|
private |
Definition at line 287 of file IOVProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by getInterval(), getLast(), getMetadata(), iovSequenceInfo(), load(), selectAll(), selectRange(), and sequenceSize().
|
private |
Definition at line 294 of file IOVProxy.cc.
References m_data, m_session, cond::time::MAX_VAL(), cond::time::MIN_VAL(), and cond::time::tillTimeFromNextSince().
Referenced by getInterval().
cond::Iov_t IOVProxy::getInterval | ( | cond::Time_t | time | ) |
Definition at line 319 of file IOVProxy.cc.
References cond::time::MAX_VAL(), and ntuplemaker::time.
Referenced by popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), and cond::service::OnlineDBOutputService::preLoadIov().
cond::Iov_t IOVProxy::getInterval | ( | cond::Time_t | time, |
cond::Time_t | defaultIovSize | ||
) |
Definition at line 321 of file IOVProxy.cc.
References checkTransaction(), cond::Iov_t::clear(), fetchSequence(), loadGroups(), m_data, cond::time::MAX_VAL(), GetRecoTauVFromDQM_MC_cff::next, cond::Iov_t::payloadId, cond::persistency::search(), cond::Iov_t::since, cond::persistency::throwException(), cond::Iov_t::till, cond::time::tillTimeFromNextSince(), and ntuplemaker::time.
cond::Iov_t IOVProxy::getLast | ( | ) |
Definition at line 388 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, convertSQLiteXML::ok, runTheMatrix::ret, and cond::persistency::setTillToLastIov().
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::service::PoolDBOutputService::getTagInfo(), and popcon::PopCon::initialize().
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > IOVProxy::getMetadata | ( | ) | const |
Definition at line 274 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, runTheMatrix::ret, and cond::persistency::throwException().
cond::TagInfo_t IOVProxy::iovSequenceInfo | ( | ) | const |
Definition at line 259 of file IOVProxy.cc.
References checkTransaction(), dqmdumpme::last, m_data, m_session, convertSQLiteXML::ok, runTheMatrix::ret, cond::persistency::setTillToLastIov(), and cond::persistency::throwException().
void IOVProxy::load | ( | const std::string & | tag | ) |
Definition at line 133 of file IOVProxy.cc.
References JetPartonCorrections_cff::tagName.
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), ConfigBuilder.ConfigBuilder::prepare_FILTER(), and cond::persistency::Session::readIov().
void IOVProxy::load | ( | const std::string & | tag, |
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 138 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, reset(), loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, JetPartonCorrections_cff::tagName, and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), and ConfigBuilder.ConfigBuilder::prepare_FILTER().
std::pair< cond::Time_t, cond::Time_t > IOVProxy::loadedGroup | ( | ) | const |
Definition at line 411 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
int IOVProxy::loadedSize | ( | ) | const |
Definition at line 399 of file IOVProxy.cc.
References m_data.
Referenced by popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), and popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition().
|
private |
Definition at line 159 of file IOVProxy.cc.
References m_data, m_session, resetIOVCache(), and cond::time::sinceGroupSize().
Referenced by getInterval().
size_t IOVProxy::numberOfQueries | ( | ) | const |
Definition at line 409 of file IOVProxy.cc.
References m_data.
void IOVProxy::reset | ( | void | ) |
Definition at line 238 of file IOVProxy.cc.
References m_data, and resetIOVCache().
Referenced by MatrixReader.MatrixReader::__init__(), load(), data_sources.json_list::next(), and MatrixReader.MatrixReader::showRaw().
|
private |
Definition at line 228 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
Referenced by loadGroups(), and reset().
IOVArray IOVProxy::selectAll | ( | ) |
Definition at line 173 of file IOVProxy.cc.
Referenced by SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), RunInfoUpdate::import(), cond::persistency::KeyList::loadFromDB(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), and cond::persistency::KeyList::setKeys().
IOVArray IOVProxy::selectAll | ( | const boost::posix_time::ptime & | snapshottime | ) |
Definition at line 178 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, cond::time::MAX_VAL(), cond::time::MIN_VAL(), runTheMatrix::ret, and cond::persistency::throwException().
IOVArray IOVProxy::selectRange | ( | const cond::Time_t & | begin, |
const cond::Time_t & | end | ||
) |
Definition at line 189 of file IOVProxy.cc.
References mps_fire::end.
Referenced by cond::payloadInspector::PlotBase::exec_process().
IOVArray IOVProxy::selectRange | ( | const cond::Time_t & | begin, |
const cond::Time_t & | end, | ||
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 194 of file IOVProxy.cc.
References checkTransaction(), mps_fire::end, m_data, m_session, runTheMatrix::ret, loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, and cond::persistency::throwException().
bool IOVProxy::selectRange | ( | const cond::Time_t & | begin, |
const cond::Time_t & | end, | ||
IOVContainer & | destination | ||
) |
Definition at line 208 of file IOVProxy.cc.
References checkTransaction(), HLTMuonOfflineAnalyzer_cff::destination, mps_fire::end, m_data, m_session, and cond::persistency::throwException().
int IOVProxy::sequenceSize | ( | ) | const |
Definition at line 401 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, and runTheMatrix::ret.
Referenced by popcon::PopCon::initialize().
const std::shared_ptr< SessionImpl > & IOVProxy::session | ( | ) | const |
Definition at line 416 of file IOVProxy.cc.
References m_session.
Referenced by cond::persistency::KeyList::loadFromDB(), and cond::persistency::KeyList::setKeys().
cond::Tag_t IOVProxy::tagInfo | ( | ) | const |
Definition at line 245 of file IOVProxy.cc.
References m_data.
Referenced by popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::payloadInspector::PlotBase::getTagInfo(), and cond::DataProxyWrapperBase::timeType().
|
private |
Definition at line 164 of file IOVProxy.h.
Referenced by fetchSequence(), getInterval(), getLast(), getMetadata(), iovSequenceInfo(), load(), loadedGroup(), loadedSize(), loadGroups(), numberOfQueries(), operator=(), reset(), resetIOVCache(), selectAll(), selectRange(), sequenceSize(), and tagInfo().
|
private |
Definition at line 165 of file IOVProxy.h.
Referenced by checkTransaction(), fetchSequence(), getLast(), getMetadata(), iovSequenceInfo(), load(), loadGroups(), operator=(), selectAll(), selectRange(), sequenceSize(), and session().