diff --git a/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellMaker.cxx b/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellMaker.cxx index 0b7ca1ab7f0b5cf3f1062b7775cd6b9bf4f1b7ad..c91155fe022aac04f6d19dbdd13b18d718977f67 100644 --- a/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellMaker.cxx +++ b/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellMaker.cxx @@ -49,7 +49,7 @@ StatusCode HLTCaloCellMaker::initialize() { StatusCode HLTCaloCellMaker::execute( const EventContext& context ) const { - auto roisHandle = SG::makeHandle( m_roiCollectionKey ); + auto roisHandle = SG::makeHandle( m_roiCollectionKey, context ); const TrigRoiDescriptorCollection* roiCollection = roisHandle.cptr(); // datahandle diff --git a/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellSumMaker.cxx b/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellSumMaker.cxx index 873b4471cc9d0a18d6474b356e0b5eb2e3fb42b0..947a9282665329ae0ce29369326caaa3e84491a3 100644 --- a/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellSumMaker.cxx +++ b/Trigger/TrigAlgorithms/TrigCaloRec/src/HLTCaloCellSumMaker.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration * */ /* @@ -36,13 +36,13 @@ StatusCode HLTCaloCellSumMaker::initialize() { return StatusCode::SUCCESS; } -StatusCode HLTCaloCellSumMaker::execute( const EventContext& /*context*/ ) const { +StatusCode HLTCaloCellSumMaker::execute( const EventContext& context ) const { if ( m_roiMode ) { int cc=0; // datahandle - auto roisHandle = SG::makeHandle( m_cellContainerKey ); + auto roisHandle = SG::makeHandle( m_cellContainerKey, context ); const CaloCellContainer* roiCollection = roisHandle.cptr(); if ( !roiCollection ){ ATH_MSG_INFO( "empty container"); @@ -53,7 +53,7 @@ StatusCode HLTCaloCellSumMaker::execute( const EventContext& /*context*/ ) const ATH_MSG_INFO ( "Executing " << name() << "..." << "RoIToSum Single : " << cc << " " << sum ); } else { - auto roisHandle = SG::makeHandle( m_cellContainerVKey ); + auto roisHandle = SG::makeHandle( m_cellContainerVKey, context ); const ConstDataVector<CaloCellContainerVector>* roiCollection = roisHandle.cptr(); int cc=0;