28 return StatusCode::SUCCESS;
38 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.
fullKey() <<
" is already valid.. In theory this should not be called, but may happen if multiple concurrent events are being processed out of order.");
39 return StatusCode::SUCCESS;
43 std::vector<const LArXTalkWeight*>
weights;
58 std::unique_ptr<LArXTalkWeightGlobal> xtalk = std::make_unique<LArXTalkWeightGlobal>(
weights);
61 if(writeHandle.
record(std::move(xtalk)).isFailure()) {
64 <<
" with EventRange " << writeHandle.
getRange()
65 <<
" into Conditions Store");
66 return StatusCode::FAILURE;
70 << writeHandle.
getRange() <<
" into Conditions Store");
71 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Base class for conditions algorithms.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddleback_ecowKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddleback_eciwKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle2_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle1Key
SG::ReadCondHandleKey< LArXTalkWeight > m_xt2stripKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripmiddle_ecKey
const LArXTalkWeight * pointerFromKey(const EventContext &context, const SG::ReadCondHandleKey< LArXTalkWeight > &key) const
virtual StatusCode initialize() override
SG::WriteCondHandleKey< LArXTalkWeightGlobal > m_xtalkKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripmiddleKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstripKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddlebackKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle2Key
SG::ReadCondHandleKey< LArXTalkWeight > m_xt2strip_ecKey
LArXTalkWeightGlobalCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< LArXTalkWeight > m_xtmiddle1_ecKey
SG::ReadCondHandleKey< LArXTalkWeight > m_xtstrip_ecKey
const std::string & key() const
void addDependency(const EventIDRange &range)
const EventIDRange & getRange() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const