 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 return StatusCode::SUCCESS;
26 if (writeHandle.isValid()) {
27 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
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()) {
57 ATH_MSG_FATAL(
"Could not record TGCTriggerLUTs " << writeHandle.key()
58 <<
" with EventRange " << rangeW_bw
59 <<
" into Conditions Store");
60 return StatusCode::FAILURE;
63 return StatusCode::SUCCESS;
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_bw
const DataObjID & fullKey() const
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
bool range(EventIDRange &r)
This class is a collection of AttributeLists where each one is associated with a channel number....
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
size_type size() const
number of Chan/AttributeList pairs
SG::WriteCondHandleKey< TGCTriggerLUTs > m_writeKey
const std::string & key() const