#include <Session.h>
Public Member Functions | |
void | clearIov (const std::string &tag) |
void | close () |
std::string | connectionString () |
coral::ISessionProxy & | coralSession () |
void | createDatabase () |
GTEditor | createGlobalTag (const std::string &name) |
template<typename T > | |
IOVEditor | createIov (const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
IOVEditor | createIov (const std::string &payloadType, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType, const boost::posix_time::ptime &creationTime) |
IOVEditor | createIovForPayload (const Hash &payloadHash, const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY) |
GTEditor | editGlobalTag (const std::string &name) |
IOVEditor | editIov (const std::string &tag) |
RunInfoEditor | editRunInfo () |
bool | existsDatabase () |
bool | existsGlobalTag (const std::string &name) |
bool | existsIov (const std::string &tag) |
template<typename T > | |
std::unique_ptr< T > | fetchPayload (const cond::Hash &payloadHash) |
bool | fetchPayloadData (const cond::Hash &payloadHash, std::string &payloadType, cond::Binary &payloadData, cond::Binary &streamerInfoData) |
cond::RunInfo_t | getLastRun () |
RunInfoProxy | getRunInfo (cond::Time_t start, cond::Time_t end) |
coral::ISchema & | nominalSchema () |
Session & | operator= (const Session &rhs) |
GTProxy | readGlobalTag (const std::string &name) |
GTProxy | readGlobalTag (const std::string &name, const std::string &preFix, const std::string &postFix) |
IOVProxy | readIov (const std::string &tag) |
IOVProxy | readIov (const std::string &tag, const boost::posix_time::ptime &snapshottime) |
Session () | |
Session (const std::shared_ptr< SessionImpl > &sessionImpl) | |
Session (const Session &rhs) | |
template<typename T > | |
cond::Hash | storePayload (const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time()) |
cond::Hash | storePayloadData (const std::string &payloadObjectType, const std::pair< Binary, Binary > &payloadAndStreamerInfoData, const boost::posix_time::ptime &creationTime) |
Transaction & | transaction () |
virtual | ~Session () |
Private Attributes | |
std::shared_ptr< SessionImpl > | m_session |
Transaction | m_transaction |
Session::Session | ( | ) |
Definition at line 35 of file Session.cc.
|
explicit |
Definition at line 37 of file Session.cc.
Session::Session | ( | const Session & | rhs | ) |
Definition at line 40 of file Session.cc.
|
virtual |
Definition at line 42 of file Session.cc.
void Session::clearIov | ( | const std::string & | tag | ) |
Definition at line 137 of file Session.cc.
References m_session, and makeGlobalPositionRcd_cfg::tag.
void Session::close | ( | void | ) |
Definition at line 50 of file Session.cc.
References m_session.
Referenced by cond::persistency::PayloadReader::close(), FillInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), and l1t::DataManager::~DataManager().
std::string Session::connectionString | ( | ) |
Definition at line 216 of file Session.cc.
References m_session.
Referenced by PCLMetadataWriter::endRun(), cond::persistency::PayloadReader::fetch(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
coral::ISessionProxy & Session::coralSession | ( | ) |
Definition at line 218 of file Session.cc.
References m_session, and cond::persistency::throwException().
Referenced by l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::basicQueryView(), l1t::OMDSReader::columnNames(), l1t::OMDSReader::columnNamesView(), SiStripCoralIface::doNameQuery(), SiStripCoralIface::doQuery(), SiStripCoralIface::doSettingsQuery(), LHCInfoPopConSourceHandler::getCTTPSData(), LHCInfoPerLSPopConSourceHandler::getCTTPSData(), LHCInfoPerFillPopConSourceHandler::getCTTPSData(), FillInfoPopConSourceHandler::getNewObjects(), L1CaloHcalScaleConfigOnlineProd::newObject(), nominalSchema(), and L1RCTOmdsFedVectorProducer::produce().
void Session::createDatabase | ( | ) |
Definition at line 61 of file Session.cc.
References m_session.
Referenced by cond::persistency::importIovs().
GTEditor Session::createGlobalTag | ( | const std::string & | name | ) |
Definition at line 147 of file Session.cc.
References m_session, Skims_PA_cff::name, and cond::persistency::throwException().
|
inline |
Definition at line 179 of file Session.h.
References makeGlobalPositionRcd_cfg::tag.
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), and cond::service::PoolDBOutputService::writeMany().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 91 of file Session.cc.
References m_session, HLT_2023v12_cff::payloadType, makeGlobalPositionRcd_cfg::tag, and cond::persistency::throwException().
IOVEditor Session::createIov | ( | const std::string & | payloadType, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType, | ||
const boost::posix_time::ptime & | creationTime | ||
) |
Definition at line 102 of file Session.cc.
References beamSpotPI::creationTime, m_session, HLT_2023v12_cff::payloadType, makeGlobalPositionRcd_cfg::tag, and cond::persistency::throwException().
IOVEditor Session::createIovForPayload | ( | const Hash & | payloadHash, |
const std::string & | tag, | ||
cond::TimeType | timeType, | ||
cond::SynchronizationType | synchronizationType = cond::SYNCH_ANY |
||
) |
Definition at line 114 of file Session.cc.
References m_session, HLT_2023v12_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and cond::persistency::throwException().
GTEditor Session::editGlobalTag | ( | const std::string & | name | ) |
Definition at line 156 of file Session.cc.
References cond::persistency::GTEditor::load(), m_session, and Skims_PA_cff::name.
IOVEditor Session::editIov | ( | const std::string & | tag | ) |
Definition at line 130 of file Session.cc.
References cond::persistency::IOVEditor::load(), m_session, and makeGlobalPositionRcd_cfg::tag.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), and cond::service::PoolDBOutputService::writeMany().
RunInfoEditor Session::editRunInfo | ( | ) |
Definition at line 210 of file Session.cc.
References cond::persistency::RunInfoEditor::init(), and m_session.
Referenced by RunInfoUpdate::appendNewRun(), and RunInfoUpdate::import().
bool Session::existsDatabase | ( | ) |
Definition at line 55 of file Session.cc.
References cond::persistency::SessionImpl::DO_NOT_THROW, and m_session.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
bool Session::existsGlobalTag | ( | const std::string & | name | ) |
Definition at line 142 of file Session.cc.
References m_session, and Skims_PA_cff::name.
bool Session::existsIov | ( | const std::string & | tag | ) |
Definition at line 77 of file Session.cc.
References m_session, and makeGlobalPositionRcd_cfg::tag.
Referenced by SiStripDetVOffHandler::analyze(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), and popcon::PopCon::initialize().
|
inline |
Definition at line 213 of file Session.h.
References MillePedeFileConverter_cfg::e, fetchPayloadData(), HLT_2023v12_cff::payloadType, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), FastSiPixelFEDChannelContainerFromQuality::analyze(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), cond::persistency::PayloadReader::fetch(), cond::payloadInspector::PlotBase::fetchPayload(), LHCInfoPopConSourceHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), RunInfoUpdate::import(), popcon::PopConSourceHandler< CastorPedestals >::lastPayload(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), l1t::DataWriter::readObject(), and l1t::DataWriterExt::readObject().
bool Session::fetchPayloadData | ( | const cond::Hash & | payloadHash, |
std::string & | payloadType, | ||
cond::Binary & | payloadData, | ||
cond::Binary & | streamerInfoData | ||
) |
Definition at line 185 of file Session.cc.
References m_session, and HLT_2023v12_cff::payloadType.
Referenced by cond::persistency::fetch(), cond::persistency::fetchIfExists(), fetchPayload(), and cond::persistency::importPayload().
cond::RunInfo_t Session::getLastRun | ( | ) |
Definition at line 201 of file Session.cc.
References m_session, runTheMatrix::ret, and cond::persistency::throwException().
RunInfoProxy Session::getRunInfo | ( | cond::Time_t | start, |
cond::Time_t | end | ||
) |
Definition at line 193 of file Session.cc.
References cond::persistency::RunInfoProxy::load(), m_session, and cond::persistency::throwException().
Referenced by cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > >::fill().
coral::ISchema & Session::nominalSchema | ( | ) |
Definition at line 224 of file Session.cc.
References coralSession().
Referenced by DTHVStatusHandler::checkForPeriod(), DTHVStatusHandler::checkNewData(), DTHVStatusHandler::createSnapshot(), DTHVStatusHandler::dumpHVAliases(), DTHVStatusHandler::dumpSnapshot(), DTHVStatusHandler::getChannelMap(), DTHVStatusHandler::getChannelSplit(), LHCInfoPopConSourceHandler::getEcalData(), LHCInfoPerFillPopConSourceHandler::getEcalData(), DTHVStatusHandler::getLayerSplit(), FillInfoPopConSourceHandler::getNewObjects(), and DTHVStatusHandler::recoverSnapshot().
Definition at line 44 of file Session.cc.
References m_session, and m_transaction.
GTProxy Session::readGlobalTag | ( | const std::string & | name | ) |
Definition at line 163 of file Session.cc.
References cond::persistency::GTProxy::load(), m_session, and Skims_PA_cff::name.
Referenced by CondDBESSource::fillTagCollectionFromGT().
GTProxy Session::readGlobalTag | ( | const std::string & | name, |
const std::string & | preFix, | ||
const std::string & | postFix | ||
) |
Definition at line 170 of file Session.cc.
References cond::persistency::GTProxy::load(), m_session, and Skims_PA_cff::name.
IOVProxy Session::readIov | ( | const std::string & | tag | ) |
Definition at line 63 of file Session.cc.
References cond::persistency::IOVProxy::load(), m_session, and TauJetAlgoParameters_cfi::tagName.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), FastSiPixelFEDChannelContainerFromQuality::analyze(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), cond::persistency::copyIov(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::payloadInspector::PlotBase::getTagInfo(), RunInfoUpdate::import(), cond::persistency::importIovs(), popcon::PopCon::initialize(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), and cond::service::OnlineDBOutputService::preLoadIov().
IOVProxy Session::readIov | ( | const std::string & | tag, |
const boost::posix_time::ptime & | snapshottime | ||
) |
Definition at line 70 of file Session.cc.
References cond::persistency::IOVProxy::load(), m_session, and TauJetAlgoParameters_cfi::tagName.
|
inline |
Definition at line 186 of file Session.h.
References beamSpotPI::creationTime, MillePedeFileConverter_cfg::e, jetsAK4_Puppi_cff::payload, runTheMatrix::ret, cond::serialize(), storePayloadData(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by SiStripDetVOffHandler::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), cond::service::PoolDBOutputService::appendOneIOV(), cond::service::PoolDBOutputService::createOneIOV(), l1t::WriterProxyT< Record, Type >::save(), AlCaRecoTriggerBitsRcdUpdate::writeBitsToDB(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writeKeyList(), cond::service::PoolDBOutputService::writeMany(), and cond::service::PoolDBOutputService::writeOneIOV().
cond::Hash Session::storePayloadData | ( | const std::string & | payloadObjectType, |
const std::pair< Binary, Binary > & | payloadAndStreamerInfoData, | ||
const boost::posix_time::ptime & | creationTime | ||
) |
Definition at line 177 of file Session.cc.
References beamSpotPI::creationTime, and m_session.
Referenced by cond::persistency::importPayload(), and storePayload().
Transaction & Session::transaction | ( | ) |
Definition at line 52 of file Session.cc.
References m_transaction.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), FastSiPixelFEDChannelContainerFromQuality::analyze(), cond::service::PoolDBOutputService::appendOneIOV(), popcon::PopConBTransitionSourceHandler< T >::checkBOn(), popcon::PopConESTransitionSourceHandler< T >::checkLowGain(), l1t::OMDSReader::connect(), cond::persistency::copyIov(), cond::service::PoolDBOutputService::createOneIOV(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), popcon::PopCon::finalize(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), popcon::PopConBTransitionSourceHandler< T >::getObjectsForBTransition(), popcon::PopConESTransitionSourceHandler< T >::getObjectsForESTransition(), cond::persistency::importIovs(), popcon::PopCon::initialize(), SiStripCoralIface::initialize(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), l1t::OMDSReader::OMDSReader(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), cond::service::OnlineDBOutputService::preLoadIov(), L1RCTOmdsFedVectorProducer::produce(), l1t::DataWriter::readObject(), l1t::DataWriterExt::readObject(), l1t::WriterProxyT< Record, Type >::save(), l1t::DataWriter::writeKeyList(), l1t::DataWriterExt::writeKeyList(), cond::service::PoolDBOutputService::writeMany(), cond::service::PoolDBOutputService::writeOneIOV(), l1t::DataWriter::writePayload(), and popcon::PopCon::~PopCon().
|
private |
Definition at line 174 of file Session.h.
Referenced by clearIov(), close(), connectionString(), coralSession(), createDatabase(), createGlobalTag(), createIov(), createIovForPayload(), editGlobalTag(), editIov(), editRunInfo(), existsDatabase(), existsGlobalTag(), existsIov(), fetchPayloadData(), getLastRun(), getRunInfo(), operator=(), readGlobalTag(), readIov(), and storePayloadData().
|
private |
Definition at line 175 of file Session.h.
Referenced by operator=(), and transaction().