diff --git a/LArCalorimeter/LArRecUtils/src/LArFEBConfigCondAlg.cxx b/LArCalorimeter/LArRecUtils/src/LArFEBConfigCondAlg.cxx index 327afbeb31dea6907f1b5a3996fe528a9598af81..8f33c6e145b36b509618c480b5afb3b734b8fc98 100644 --- a/LArCalorimeter/LArRecUtils/src/LArFEBConfigCondAlg.cxx +++ b/LArCalorimeter/LArRecUtils/src/LArFEBConfigCondAlg.cxx @@ -42,7 +42,7 @@ StatusCode LArFEBConfigCondAlg::initialize() { StatusCode LArFEBConfigCondAlg::execute(const EventContext& ctx) const { ATH_MSG_DEBUG("executing"); - SG::WriteCondHandle<LArFebConfig> writeHandle{m_configKey}; + SG::WriteCondHandle<LArFebConfig> writeHandle{m_configKey, ctx}; if (writeHandle.isValid()) { ATH_MSG_DEBUG("Found valid write LArFebConfig handle"); return StatusCode::SUCCESS; diff --git a/LArCalorimeter/LArRecUtils/src/LArHVCondAlg.cxx b/LArCalorimeter/LArRecUtils/src/LArHVCondAlg.cxx index b0f663c2bc7d4a35bc4b161012d5caadfffb66fa..ddb974c75d548fbb274f262749f472804553da98 100755 --- a/LArCalorimeter/LArRecUtils/src/LArHVCondAlg.cxx +++ b/LArCalorimeter/LArRecUtils/src/LArHVCondAlg.cxx @@ -125,7 +125,7 @@ StatusCode LArHVCondAlg::execute(const EventContext& ctx) const { bool doHVData=false; bool doAffected=false; - SG::WriteCondHandle<LArHVData> writeHandle{m_hvDataKey}; + SG::WriteCondHandle<LArHVData> writeHandle{m_hvDataKey, ctx}; if(m_doHV || m_doAffectedHV) { if (writeHandle.isValid()) { ATH_MSG_DEBUG("Found valid write LArHVData handle"); @@ -134,7 +134,7 @@ StatusCode LArHVCondAlg::execute(const EventContext& ctx) const { } } - SG::WriteCondHandle<CaloAffectedRegionInfoVec> writeAffectedHandle{m_outKey}; + SG::WriteCondHandle<CaloAffectedRegionInfoVec> writeAffectedHandle{m_outKey, ctx}; if(m_doAffected){ if (writeAffectedHandle.isValid()) { ATH_MSG_DEBUG("Found valid write LArAffectedRegions handle"); @@ -279,13 +279,13 @@ StatusCode LArHVCondAlg::execute(const EventContext& ctx) const { } // doHVData if(doAffected) { - SG::ReadCondHandle<LArBadFebCont> readBFHandle{m_BFKey}; + SG::ReadCondHandle<LArBadFebCont> readBFHandle{m_BFKey, ctx}; const LArBadFebCont* bfCont{*readBFHandle}; if(!bfCont){ ATH_MSG_WARNING(" Do not have Bad FEBs info, will be not filled " << m_BFKey.key() ); } - SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey}; + SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey, ctx}; const LArOnOffIdMapping* cabling{*cablingHdl}; if(!cabling) { ATH_MSG_ERROR("Do not have cabling mapping from key " << m_cablingKey.key() );