16 return StatusCode::SUCCESS;
25 return StatusCode::SUCCESS;
32 return StatusCode::FAILURE;
35 if(!cHdl.
range(rangeIn)) {
37 return StatusCode::FAILURE;
40 std::unique_ptr<LArFEBTempData> febTemp=std::make_unique<LArFEBTempData>();
44 citr!=cattr->
end();++citr) {
46 if(! ((*citr).second)[
"temp1"].isNull()) temp1 = (((*citr).second)[
"temp1"]).
data<float>();
48 if(! ((*citr).second)[
"temp2"].isNull()) temp2 = (((*citr).second)[
"temp2"]).
data<float>();
54 const EventIDRange crangeW(rangeIn);
55 if(writeHandle.
record(crangeW,febTemp.release()).isFailure()) {
56 ATH_MSG_ERROR(
"Could not record LArFebConfig object with " << writeHandle.
key()
57 <<
" with EventRange " << crangeW <<
" into Conditions Store");
58 return StatusCode::FAILURE;
61 ATH_MSG_INFO(
"recorded new " << writeHandle.
key() <<
" with range " << crangeW <<
" into Conditions Store");
63 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
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.
ChanAttrListMap::const_iterator const_iterator
SG::WriteCondHandleKey< LArFEBTempData > m_tempKey
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override final
SG::ReadCondHandleKey< CondAttrListCollection > m_foldernameKey
LArFEBTempAlg(const std::string &name, ISvcLocator *pSvcLocator)
std::map< HWIdentifier, FEBTemp > m_mapVec
std::pair< float, float > FEBTemp
bool range(EventIDRange &r)
const std::string & key() const
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED