#include <OnlineDBOutputService.h>
Public Member Functions | |
OnlineDBOutputService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR) | |
cond::Iov_t | preLoadIov (const std::string &recordName, cond::Time_t targetTime) |
template<typename PayloadType > | |
bool | writeForNextLumisection (const PayloadType *payload, const std::string &recordName) |
~OnlineDBOutputService () override | |
Public Member Functions inherited from cond::service::PoolDBOutputService | |
bool | appendSinceTime (const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName) |
template<typename T > | |
void | appendSinceTime (const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName) |
cond::Time_t | beginOfTime () const |
void | closeIOV (Time_t lastTill, const std::string &recordName) |
void | commitTransaction () |
void | createNewIOV (const std::string &firstPayloadId, cond::Time_t firstSinceTime, const std::string &recordName) |
template<typename T > | |
void | createNewIOV (const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName) |
cond::Time_t | currentTime () const |
cond::Time_t | endOfTime () const |
void | eraseSinceTime (const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName) |
void | forceInit () |
bool | isNewTagRequest (const std::string &recordName) |
cond::persistency::Logger & | logger () |
cond::persistency::Session | newReadOnlySession (const std::string &connectionString, const std::string &transactionId) |
PoolDBOutputService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR) | |
void | postEndJob () |
cond::persistency::Session | session () const |
void | setLogHeaderForRecord (const std::string &recordName, const std::string &provenance, const std::string &usertext) |
void | startTransaction () |
std::string | tag (const std::string &recordName) |
bool | tagInfo (const std::string &recordName, cond::TagInfo_t &result) |
template<typename T > | |
Hash | writeOne (const T *payload, Time_t time, const std::string &recordName) |
virtual | ~PoolDBOutputService () |
Private Member Functions | |
cond::Time_t | getLastLumiProcessed () |
cond::persistency::Session | getReadOnlyCache (cond::Time_t targetTime) |
Private Attributes | |
bool | m_debug |
std::string | m_lastLumiFile |
std::string | m_lastLumiUrl |
size_t | m_latencyInLumisections |
std::string | m_omsServiceUrl |
std::string | m_preLoadConnectionString |
cond::Time_t | m_runNumber |
Definition at line 30 of file OnlineDBOutputService.h.
OnlineDBOutputService::OnlineDBOutputService | ( | const edm::ParameterSet & | iConfig, |
edm::ActivityRegistry & | iAR | ||
) |
Definition at line 80 of file OnlineDBOutputService.cc.
References cond::persistency::Session::getLastRun(), edm::ParameterSet::getUntrackedParameter(), SiStripBadComponentsDQMServiceTemplate_cfg::lastRun, m_lastLumiFile, m_lastLumiUrl, m_omsServiceUrl, m_runNumber, cond::service::PoolDBOutputService::session(), cond::service::PoolDBOutputService::startTransaction(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 102 of file OnlineDBOutputService.cc.
|
private |
Definition at line 104 of file OnlineDBOutputService.cc.
References getInfoFromDAQ(), cond::getLastLumiFromOMS(), cond::getLatestLumiFromFile(), info(), fwlog::logger(), cond::time::lumiTime(), cond::time::MIN_VAL(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::time::unpack().
Referenced by writeForNextLumisection().
|
private |
Definition at line 145 of file OnlineDBOutputService.cc.
References cond::service::PoolDBOutputService::newReadOnlySession().
cond::Iov_t OnlineDBOutputService::preLoadIov | ( | const std::string & | recordName, |
cond::Time_t | targetTime | ||
) |
Definition at line 135 of file OnlineDBOutputService.cc.
References cond::persistency::IOVProxy::getInterval(), cond::persistency::Session::readIov(), align_cfg::recordName, cond::persistency::TransactionScope::start(), cond::service::PoolDBOutputService::tag(), and cond::persistency::Session::transaction().
Referenced by writeForNextLumisection().
|
inline |
Definition at line 40 of file OnlineDBOutputService.h.
References cond::service::PoolDBOutputService::commitTransaction(), cond::service::PoolDBOutputService::eraseSinceTime(), getLastLumiProcessed(), cond::service::PoolDBOutputService::logger(), cond::persistency::Logger::logInfo(), cond::persistency::Logger::logWarning(), m_latencyInLumisections, fileCollector::now, jets_cff::payload, preLoadIov(), align_cfg::recordName, runTheMatrix::ret, cond::Iov_t::since, FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t1, RandomServiceHelper::t2, and RandomServiceHelper::t3.
Referenced by BeamMonitor::FitAndFill(), and FakeBeamMonitor::FitAndFill().
|
private |
Definition at line 88 of file OnlineDBOutputService.h.
|
private |
Definition at line 86 of file OnlineDBOutputService.h.
Referenced by OnlineDBOutputService().
|
private |
Definition at line 85 of file OnlineDBOutputService.h.
Referenced by OnlineDBOutputService().
|
private |
Definition at line 83 of file OnlineDBOutputService.h.
Referenced by writeForNextLumisection().
|
private |
Definition at line 84 of file OnlineDBOutputService.h.
Referenced by OnlineDBOutputService().
|
private |
Definition at line 87 of file OnlineDBOutputService.h.
|
private |
Definition at line 82 of file OnlineDBOutputService.h.
Referenced by OnlineDBOutputService().