From ba90cf3c876bcfb652ae5a9aec303be0fe19123c Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Sat, 11 May 2019 15:57:26 +0200 Subject: [PATCH] InDetTruthAlgs: Avoid EventContext TLS lookups. Don't fetch EventContext from thread-local storage if we already have it as an argument. --- .../InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx b/InnerDetector/InDetTruth/InDetTruthAlgs/src/PRD_MultiTruthMaker.cxx index 5fd65d0558e..742837ca697 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()); -- GitLab