24 return StatusCode::SUCCESS;
38 <<
". In theory this should not be called, but may happen"
39 <<
" if multiple concurrent events are being processed out of order.");
40 return StatusCode::SUCCESS;
46 if (readCdo==
nullptr) {
48 return StatusCode::FAILURE;
50 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->
size());
56 std::unique_ptr<SCT_SensorsCondData> writeCdo{std::make_unique<SCT_SensorsCondData>()};
62 for (; attrList!=end; ++attrList) {
66 isOK |=
data.setTruncatedSerialNumber(truncatedSerialNumber);
67 isOK |=
data.setManufacturer(attrList->second[0].data<std::string>());
77 ATH_MSG_WARNING(
"At least one element of SCT_SensorCondData for truncatedSerialNumber " << truncatedSerialNumber <<
" was not correctly stored.");
79 (*writeCdo)[truncatedSerialNumber] =
data;
83 if (writeHandle.
record(std::move(writeCdo)).isFailure()) {
85 <<
" with EventRange " << writeHandle.
getRange()
86 <<
" into Conditions Store");
87 return StatusCode::FAILURE;
89 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
91 return StatusCode::SUCCESS;
97 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
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
Class for data object used in SCT_SensorsCondAlg and SCT_SensorsTool.
SCT_SensorsCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode finalize() override final
SG::WriteCondHandleKey< SCT_SensorsCondData > m_writeKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
virtual StatusCode initialize() override final
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