23 return StatusCode::SUCCESS;
29 ATH_MSG_DEBUG(
"Successfully initialized LArFEBConfigCondAlg");
30 return StatusCode::SUCCESS;
41 return StatusCode::SUCCESS;
45 std::vector<const CondAttrListCollection*> attrvec;
52 attrvec.push_back(cattr);
55 ATH_MSG_WARNING(
"Why do not have FEB config folder " << fldkey.fullKey());
60 std::unique_ptr<LArFebConfig> febConfig=std::make_unique<LArFebConfig>(
m_onlineID);
64 for(
const auto *dh: attrvec){
67 for (;chanit!=chanit_e;++chanit) {
68 if (chanit->first==0) {
75 p_febConfig->
add (fid, &chanit->second);
82 if(writeHandle.
record(std::move(febConfig)).isFailure()) {
83 ATH_MSG_ERROR(
"Could not record LArFebConfig object with " << writeHandle.
key()
84 <<
" with EventRange " << writeHandle.
getRange() <<
" into Conditions Store");
85 return StatusCode::FAILURE;
88 ATH_MSG_INFO(
"recorded new " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
90 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
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.
ChanAttrListMap::const_iterator const_iterator
value_type get_compact() const
Get the compact id.
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_listOfFolders
LArFEBConfigCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteCondHandleKey< LArFebConfig > m_configKey
const LArOnlineID * m_onlineID
virtual StatusCode initialize() override
virtual ~LArFEBConfigCondAlg()
void add(HWIdentifier febid, const coral::AttributeList *attrList)
const std::string & key() const
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