Skip to content
Snippets Groups Projects
Commit ba90cf3c authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

InDetTruthAlgs: Avoid EventContext TLS lookups.

Don't fetch EventContext from thread-local storage if we already have
it as an argument.
parent 2b05bda2
No related branches found
No related tags found
No related merge requests found
/*
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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment