diff --git a/Calorimeter/CaloRec/src/CaloCellFastCopyTool.cxx b/Calorimeter/CaloRec/src/CaloCellFastCopyTool.cxx index 3a3d47af0093ac6351834b7e2b5ae367fb21413d..31b4a1daf71a3a35d6b9e94f27785917c210c822 100644 --- a/Calorimeter/CaloRec/src/CaloCellFastCopyTool.cxx +++ b/Calorimeter/CaloRec/src/CaloCellFastCopyTool.cxx @@ -109,10 +109,10 @@ StatusCode CaloCellFastCopyTool::initialize() { StatusCode CaloCellFastCopyTool::process (CaloCellContainer* theCont, - const EventContext& /*ctx*/) const + const EventContext& ctx) const { // Retrieve source cell container - SG::ReadHandle<CaloCellContainer> srcCont(m_srcCellContainerKey); + SG::ReadHandle<CaloCellContainer> srcCont(m_srcCellContainerKey, ctx); ATH_CHECK( dispatchCopy (srcCont.cptr(), theCont) ); @@ -126,10 +126,10 @@ StatusCode CaloCellFastCopyTool::process (CaloCellContainer* theCont, StatusCode CaloCellFastCopyTool::process (CaloConstCellContainer* theCont, - const EventContext& /*ctx*/) const + const EventContext& ctx) const { // Retrieve source cell container - SG::ReadHandle<CaloCellContainer> srcCont(m_srcCellContainerKey); + SG::ReadHandle<CaloCellContainer> srcCont(m_srcCellContainerKey, ctx); ATH_CHECK( dispatchCopyConst (srcCont.cptr(), theCont) ); diff --git a/Calorimeter/CaloRec/test/CaloCellFastCopyTool_test.cxx b/Calorimeter/CaloRec/test/CaloCellFastCopyTool_test.cxx index b680abc87f8d12838552d95501024b675eb79a47..18227fb6f2ae9c8d6d76ff055f8a7a7656cd38e5 100644 --- a/Calorimeter/CaloRec/test/CaloCellFastCopyTool_test.cxx +++ b/Calorimeter/CaloRec/test/CaloCellFastCopyTool_test.cxx @@ -24,6 +24,7 @@ #include "AthenaBaseComps/AthAlgorithm.h" #include "StoreGate/StoreGateSvc.h" #include "StoreGate/setupStoreGate.h" +#include "AthenaKernel/ExtendedEventContext.h" #include "GaudiKernel/ISvcLocator.h" #include "GaudiKernel/ServiceHandle.h" #include <map> @@ -157,6 +158,7 @@ public: CONT* destCont) { EventContext ctx; + ctx.setExtension (Atlas::ExtendedEventContext (m_evtStore->hiveProxyDict(), 0)); return tool->process (destCont, ctx); }