28 return StatusCode::SUCCESS;
41 <<
". In theory this should not be called, but may happen"
42 <<
" if multiple concurrent events are being processed out of order.");
43 return StatusCode::SUCCESS;
49 if (readCdo==
nullptr) {
51 return StatusCode::FAILURE;
53 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->
size());
59 std::unique_ptr<SCT_MonitorCondData> writeCdo{std::make_unique<SCT_MonitorCondData>()};
62 static const unsigned int defectListIndex{7};
65 for (; iter!=last; ++iter) {
66 const coral::AttributeList& list{iter->second};
67 if (list.size()>defectListIndex) {
75 if (writeHandle.
record(std::move(writeCdo)).isFailure()) {
77 <<
" with EventRange " << writeHandle.
getRange()
78 <<
" into Conditions Store");
79 return StatusCode::FAILURE;
81 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
83 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
char data[hepevt_bytes_allocation_ATLAS]
This is an Identifier helper class for the SCT subdetector.
const ServiceHandle< StoreGateSvc > & detStore() const
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
const_iterator end() const
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
size_type size() const
number of Chan/AttributeList pairs
ChanAttrListMap::const_iterator const_iterator
This is a "hash" representation of an Identifier.
virtual StatusCode initialize() override final
virtual StatusCode finalize() override final
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteCondHandleKey< SCT_MonitorCondData > m_writeKey
SCT_MonitorCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
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