26 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;
47 if (readCdo==
nullptr) {
49 return StatusCode::FAILURE;
51 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->
size());
59 std::unique_ptr<SCT_MajorityCondData> writeCdo{std::make_unique<SCT_MajorityCondData>()};
63 for (;majItr != majEnd; ++majItr) {
73 bool majorityState{
true};
77 ATH_MSG_DEBUG(
"Majority state for " << channelNumber <<
" = " <<
82 writeCdo->setMajorityState(channelNumber, majorityState);
87 ATH_MSG_DEBUG(
"Majority HV fraction for " << channelNumber <<
" = " <<
92 writeCdo->setHVFraction(channelNumber, hvFraction);
104 if (writeHandle.
record(std::move(writeCdo)).isFailure()) {
106 <<
" with EventRange " << writeHandle.
getRange()
107 <<
" into Conditions Store");
108 return StatusCode::FAILURE;
110 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
112 return StatusCode::SUCCESS;
118 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
header file containing the number of elements and enumerated type of parameters which may be retrieve...
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
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
SG::WriteCondHandleKey< SCT_MajorityCondData > m_writeKey
SCT_MajorityCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override final
virtual StatusCode initialize() override final
virtual StatusCode execute(const EventContext &ctx) const 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