![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/ServiceHandle.h"
16 ISvcLocator* pSvcLocator ) :
18 m_cds(
"ASCIICondDbSvc",
name)
35 return StatusCode::SUCCESS;
41 EventIDBase
now(getContext().eventID());
50 <<
" not valid. Getting new info for dbKey \""
51 << wch1.
dbKey() <<
"\" from CondDb");
55 if (
m_cds->getRange(wch1.
dbKey(), getContext(),
r,
val).isFailure()) {
57 <<
"\" in CondSvc registry");
58 return StatusCode::FAILURE;
62 if (wch1.
record(
r, cdo).isFailure()) {
65 <<
" with EventRange " <<
r);
66 return StatusCode::FAILURE;
69 <<
" with range " <<
r);
76 <<
" not valid. Getting new info for dbKey \""
77 << wch2.
dbKey() <<
"\" from CondDb");
81 if (
m_cds->getRange(wch2.
dbKey(), getContext(),
r,
val).isFailure()) {
83 <<
"\" in CondSvc registry");
84 return StatusCode::FAILURE;
88 if (wch2.
record(
r, cdo).isFailure()) {
91 <<
" with EventRange " <<
r);
92 return StatusCode::FAILURE;
95 <<
" with range " <<
r);
98 return StatusCode::SUCCESS;
CondAlgY(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
virtual StatusCode execute() override
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_dbk1
ServiceHandle< IASCIICondDbSvc > m_cds
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::string & dbKey() const
SG::WriteCondHandleKey< CondDataObjY > m_wch2
const std::string & key() const
StatusCode initialize(bool used=true)
void setDbKey(const std::string &dbKey)
SG::WriteCondHandleKey< CondDataObjY > m_wch1
Gaudi::Property< std::string > m_dbk2