21 return StatusCode::SUCCESS;
26 EventIDBase now(ctx.eventID());
38 <<
" not valid. Getting new info for dbKey \""
39 << wch1.
dbKey() <<
"\" from CondDb");
43 if (
m_cds->getRange(wch1.
dbKey(), ctx,
r, val).isFailure()) {
45 <<
"\" in CondSvc registry");
46 return StatusCode::FAILURE;
50 if (wch1.
record(
r, cdo).isFailure()) {
53 <<
" with EventRange " <<
r);
54 return StatusCode::FAILURE;
57 <<
" with range " <<
r);
67 <<
" not valid. Getting new info for dbKey \""
68 << wch2.
dbKey() <<
"\" from CondDb");
72 if (
m_cds->getRange(wch2.
dbKey(), ctx,
r, val).isFailure()) {
74 <<
"\" in CondSvc registry");
75 return StatusCode::FAILURE;
79 if (wch2.
record(
r, cdo).isFailure()) {
82 <<
" with EventRange " <<
r);
83 return StatusCode::FAILURE;
86 <<
" with range " <<
r);
89 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::WriteCondHandleKey< CondDataObjY > m_wch1
SG::WriteCondHandleKey< CondDataObjY > m_wch2
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_dbk2
ServiceHandle< IASCIICondDbSvc > m_cds
Gaudi::Property< std::string > m_dbk1
virtual StatusCode execute(const EventContext &ctx) const override
const std::string & key() const
const std::string & dbKey() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED