diff --git a/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx b/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx index 5fd65d0558e30ef7cda172a6aea4c687afd86851..742837ca69734e5052abcdba0cc1a22528698f35 100755 --- a/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx +++ b/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.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 */ // Algorithm producing truth info for PrepRawData, keeping all MC particles contributed to a PRD. @@ -133,7 +133,7 @@ StatusCode PRD_MultiTruthMaker::execute(const EventContext &ctx) const { ATH_MSG_DEBUG ("SCT Cluster Container " << m_SCTClustersName.key() << " found"); // Create and fill the PRD truth structure - SG::WriteHandle<PRD_MultiTruthCollection> prdt_sct(m_PRDTruthNameSCT); + SG::WriteHandle<PRD_MultiTruthCollection> prdt_sct(m_PRDTruthNameSCT, ctx); ATH_CHECK(prdt_sct.record(std::make_unique<PRD_MultiTruthCollection>())); addPRDCollections(prdt_sct.ptr(), prdContainer->begin(), prdContainer->end(), simDataMap.cptr(), false); ATH_MSG_DEBUG ("PRD truth structure '" << m_PRDTruthNameSCT.key() << "' is registered in StoreGate, size="<<prdt_sct->size());