#include <IOVProxy.h>
Public Member Functions | |
cond::Iov_t | getInterval (cond::Time_t time) |
cond::Iov_t | getLast () |
std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > | getMetadata () const |
IOVProxy () | |
IOVProxy (const std::shared_ptr< SessionImpl > &session) | |
IOVProxy (const IOVProxy &rhs) | |
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 127 of file IOVProxy.cc.
|
explicit |
Definition at line 129 of file IOVProxy.cc.
IOVProxy::IOVProxy | ( | const IOVProxy & | rhs | ) |
Definition at line 131 of file IOVProxy.cc.
|
private |
Definition at line 288 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 295 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 320 of file IOVProxy.cc.
References checkTransaction(), 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, and cond::time::tillTimeFromNextSince().
Referenced by popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), and cond::service::OnlineDBOutputService::preLoadIov().
cond::Iov_t IOVProxy::getLast | ( | ) |
Definition at line 376 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, convertSQLiteXML::ok, cond::Iov_t::payloadId, runTheMatrix::ret, cond::persistency::setTillToLastIov(), and cond::Iov_t::since.
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 275 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 260 of file IOVProxy.cc.
References checkTransaction(), dqmdumpme::last, cond::TagInfo_t::lastInterval, m_data, m_session, convertSQLiteXML::ok, cond::Iov_t::payloadId, runTheMatrix::ret, cond::persistency::setTillToLastIov(), cond::Iov_t::since, cond::TagInfo_t::size, and cond::persistency::throwException().
void IOVProxy::load | ( | const std::string & | tag | ) |
Definition at line 139 of file IOVProxy.cc.
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 144 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, reset(), 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 399 of file IOVProxy.cc.
References m_data, cond::time::MAX_VAL(), and cond::time::MIN_VAL().
int IOVProxy::loadedSize | ( | ) | const |
Definition at line 387 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 167 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 133 of file IOVProxy.cc.
References m_data, and m_session.
void IOVProxy::reset | ( | void | ) |
Definition at line 239 of file IOVProxy.cc.
References m_data, and resetIOVCache().
Referenced by MatrixReader.MatrixReader::__init__(), data_sources.json_list::__next__(), load(), and MatrixReader.MatrixReader::showRaw().
|
private |
Definition at line 229 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 181 of file IOVProxy.cc.
Referenced by SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), cond::persistency::copyIov(), RunInfoUpdate::import(), cond::persistency::importIovs(), cond::persistency::KeyList::loadFromDB(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), and cond::persistency::KeyList::setKeys().
IOVArray IOVProxy::selectAll | ( | const boost::posix_time::ptime & | snapshottime | ) |
Definition at line 186 of file IOVProxy.cc.
References checkTransaction(), cond::persistency::IOVArray::m_array, m_data, m_session, cond::persistency::IOVArray::m_tagInfo, 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 197 of file IOVProxy.cc.
Referenced by FastSiPixelFEDChannelContainerFromQuality::analyze(), and cond::persistency::importIovs().
IOVArray IOVProxy::selectRange | ( | const cond::Time_t & | begin, |
const cond::Time_t & | end, | ||
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 202 of file IOVProxy.cc.
References checkTransaction(), cond::persistency::IOVArray::m_array, m_data, m_session, cond::persistency::IOVArray::m_tagInfo, runTheMatrix::ret, and cond::persistency::throwException().
bool IOVProxy::selectRange | ( | const cond::Time_t & | begin, |
const cond::Time_t & | end, | ||
IOVContainer & | destination | ||
) |
Definition at line 216 of file IOVProxy.cc.
References checkTransaction(), m_data, m_session, and cond::persistency::throwException().
int IOVProxy::sequenceSize | ( | ) | const |
Definition at line 389 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 404 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 246 of file IOVProxy.cc.
References m_data.
Referenced by cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::payloadInspector::PlotBase::getTagInfo(), cond::persistency::importIovs(), and cond::DataProxyWrapperBase::timeType().
|
private |
Definition at line 163 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 164 of file IOVProxy.h.
Referenced by checkTransaction(), fetchSequence(), getLast(), getMetadata(), iovSequenceInfo(), load(), loadGroups(), operator=(), selectAll(), selectRange(), sequenceSize(), and session().