18 return StatusCode::SUCCESS;
28 <<
". In theory this should not be called, but may happen"
29 <<
" if multiple concurrent events are being processed out of order.");
30 return StatusCode::SUCCESS;
33 auto writeCdo = std::make_unique<TGCTriggerLUTs>();
40 if (readCdo_bw == 0) {
42 return StatusCode::FAILURE;
45 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle_bw.
fullKey() <<
" readCdo->size()= " << readCdo_bw->
size());
47 EventIDRange rangeW_bw;
48 if ( !readHandle_bw.
range(rangeW_bw) ) {
49 ATH_MSG_ERROR(
"Failed to retrieve validity range for " << readHandle_bw.
key());
50 return StatusCode::FAILURE;
56 if (writeHandle.
record(rangeW_bw, std::move(writeCdo)).isFailure()) {
58 <<
" with EventRange " << rangeW_bw
59 <<
" into Conditions Store");
60 return StatusCode::FAILURE;
63 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
This class is a collection of AttributeLists where each one is associated with a channel number.
size_type size() const
number of Chan/AttributeList pairs
bool range(EventIDRange &r)
const std::string & key() const
const DataObjID & fullKey() const
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_bw
SG::WriteCondHandleKey< TGCTriggerLUTs > m_writeKey
virtual StatusCode initialize() override