|
| OnlineDBOutputService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR) |
|
template<typename PayloadType > |
cond::Time_t | writeIOVForNextLumisection (const PayloadType &payload, const std::string &recordName) |
|
| ~OnlineDBOutputService () override |
|
template<typename T > |
void | appendOneIOV (const T &payload, cond::Time_t sinceTime, const std::string &recordName) |
|
bool | appendSinceTime (const std::string &payloadId, 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 | createOneIOV (const T &payload, cond::Time_t firstSinceTime, 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) |
|
void | lockRecords () |
|
cond::persistency::Logger & | logger () |
|
const Record & | lookUpRecord (const std::string &recordName) |
|
cond::persistency::Session | newReadOnlySession (const std::string &connectionString, const std::string &transactionId) |
|
| PoolDBOutputService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR) |
|
void | postEndJob () |
|
void | releaseLocks () |
|
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 > |
void | writeMany (const std::map< Time_t, std::shared_ptr< T > > &iovAndPayloads, const std::string &recordName) |
|
template<typename T > |
Hash | writeOneIOV (const T &payload, Time_t time, const std::string &recordName) |
|
virtual | ~PoolDBOutputService () |
|
Definition at line 30 of file OnlineDBOutputService.h.
template<typename PayloadType >
cond::Time_t cond::service::OnlineDBOutputService::writeIOVForNextLumisection |
( |
const PayloadType & |
payload, |
|
|
const std::string & |
recordName |
|
) |
| |
|
inline |
Definition at line 37 of file OnlineDBOutputService.h.
References cond::service::PoolDBOutputService::commitTransaction(), submitPVResolutionJobs::count, cond::service::PoolDBOutputService::eraseSinceTime(), getLastLumiProcessed(), cond::service::PoolDBOutputService::logger(), cond::persistency::Logger::logInfo(), cond::persistency::Logger::logWarning(), cond::service::PoolDBOutputService::lookUpRecord(), cond::time::lumiTime(), m_latencyInLumisections, submitPVValidationJobs::now, jetsAK4_Puppi_cff::payload, preLoadIov(), align_cfg::recordName, cond::Iov_t::since, FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, and cond::time::unpack().
Referenced by FakeBeamMonitor::FitAndFill(), and BeamMonitor::FitAndFill().
47 if (payloadId.empty()) {
51 auto w_lat = std::chrono::duration_cast<std::chrono::microseconds>(
t1 -
t0).
count();
52 logger().
logInfo() <<
"Update has taken " << w_lat <<
" microsecs.";
55 logger().
logInfo() <<
"Last lumisection processed after update: " << lastProcessed;
57 logger().
logInfo() <<
"Preloading lumisection " << targetTime;
61 logger().
logInfo() <<
"Iov for preloaded lumisection " << targetTime <<
" is " << usedIov.
since;
62 auto p_lat = std::chrono::duration_cast<std::chrono::microseconds>(
t3 -
t2).
count();
63 logger().
logInfo() <<
"Preload has taken " << p_lat <<
" microsecs.";
64 if (usedIov.
since < targetTime) {
65 logger().
logWarning() <<
"Found a late update for lumisection " << targetTime <<
"(found since " 66 << usedIov.
since <<
"). A revert is required.";
72 auto t_lat = std::chrono::duration_cast<std::chrono::microseconds>(t4 -
t0).
count();
73 logger().
logInfo() <<
"Total update time: " << t_lat <<
" microsecs.";
const Record & lookUpRecord(const std::string &recordName)
EchoedLogStream< edm::LogWarning > logWarning()
unsigned long long Time_t
Time_t lumiTime(unsigned int run, unsigned int lumiId)
cond::persistency::Logger & logger()
size_t m_latencyInLumisections
cond::Iov_t preLoadIov(const PoolDBOutputService::Record &record, cond::Time_t targetTime)
EchoedLogStream< edm::LogInfo > logInfo()
void eraseSinceTime(const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName)
cond::UnpackedTime unpack(cond::Time_t iValue)
cond::Time_t getLastLumiProcessed()