24 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
39 <<
". In theory this should not be called, but may happen"
40 <<
" if multiple concurrent events are being processed out of order.");
41 return StatusCode::SUCCESS;
49 if (readCdo==
nullptr) {
51 return StatusCode::FAILURE;
55 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.
fullKey() <<
" readCdo->size()= " << readCdo->
size());
59 std::unique_ptr<SCT_DCSFloatCondData> writeCdo{std::make_unique<SCT_DCSFloatCondData>()};
62 std::string param{
"MOCH_TM0_RECV"};
66 for (; attrList!=end; ++attrList) {
70 if (payload.exists(param) and not payload[param].isNull()) {
71 float val{payload[param].data<
float>()};
72 writeCdo->setValue(channelNumber, val);
74 ATH_MSG_WARNING(param <<
" does not exist for ChanNum " << channelNumber);
79 if (writeHandle.
record(std::move(writeCdo)).isFailure()) {
81 <<
" with EventRange " << writeHandle.
getRange()
82 <<
" into Conditions Store");
83 return StatusCode::FAILURE;
85 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
87 return StatusCode::SUCCESS;
93 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
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
coral::AttributeList AttributeList
static EventIDRange infiniteMixed()
Produces an mixed EventIDRange that is infinite in Time and RunLumi.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
virtual StatusCode finalize() override final
SCT_DCSConditionsTempCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< SCT_DCSFloatCondData > m_writeKey
BooleanProperty m_returnHVTemp
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override final
const DataObjID & fullKey() const
const EventIDRange & getRange()
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