10#include "GaudiKernel/ServiceHandle.h"
12#include "GaudiKernel/EventIDBase.h"
13#include "GaudiKernel/EventIDRange.h"
28 return StatusCode::SUCCESS;
37 return StatusCode::FAILURE;
41 <<
" e: " << evt->eventNumber() );
44 EventIDBase now(ctx.eventID());
45 if (evt->eventNumber() == 10) {
46 std::this_thread::sleep_for(std::chrono::milliseconds( 500 ));
53 <<
". In theory this should not be called, but may happen"
54 <<
" if multiple concurrent events are being processed out of order.");
55 return StatusCode::SUCCESS;
60 <<
" not valid. Getting new info for dbKey \""
61 << wch.
dbKey() <<
"\" from CondDb");
65 if (
m_cds->getRange(wch.
dbKey(), ctx,
r, val).isFailure()) {
67 <<
"\" in CondSvc registry");
68 return StatusCode::FAILURE;
72 if (wch.
record(
r, cdo).isFailure()) {
75 <<
" with EventRange " <<
r);
76 return StatusCode::FAILURE;
80 <<
" with range " <<
r);
82 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< IASCIICondDbSvc > m_cds
Gaudi::Property< std::string > m_dbKey
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteCondHandleKey< CondDataObj > m_wchk
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::EventInfo > m_evt
const std::string & key() const
const std::string & dbKey() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED