|
ATLAS Offline Software
|
Go to the documentation of this file.
23 return StatusCode::SUCCESS;
31 if (writeHandle.isValid()) {
32 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
33 <<
". In theory this should not be called, but may happen"
34 <<
" if multiple concurrent events are being processed out of order.");
35 return StatusCode::SUCCESS;
38 auto writeCdo = std::make_unique<TGCTriggerLUTs>();
45 if (readCdo_bw == 0) {
47 return StatusCode::FAILURE;
50 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle_bw.
fullKey() <<
" readCdo->size()= " << readCdo_bw->
size());
52 EventIDRange rangeW_bw;
53 if ( !readHandle_bw.
range(rangeW_bw) ) {
54 ATH_MSG_ERROR(
"Failed to retrieve validity range for " << readHandle_bw.
key());
55 return StatusCode::FAILURE;
61 if (writeHandle.record(rangeW_bw, std::move(writeCdo)).isFailure()) {
62 ATH_MSG_FATAL(
"Could not record TGCTriggerLUTs " << writeHandle.key()
63 <<
" with EventRange " << rangeW_bw
64 <<
" into Conditions Store");
65 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_bw
TGCTriggerCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
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
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute() override
StatusCode initialize(bool used=true)
size_type size() const
number of Chan/AttributeList pairs
SG::WriteCondHandleKey< TGCTriggerLUTs > m_writeKey
const std::string & key() const