From e42c857c513ff7730e7f951194da058979f77ec2 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 19 Jun 2020 16:35:40 +0200 Subject: [PATCH] TrkParticleCreator: Use summary rather than createSummary. Use the summary method from the track summary tool rather than createSummary, to avoid warnings from the thread-safety checker. --- .../TrkParticleCreator/src/TrackParticleCreatorTool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tracking/TrkTools/TrkParticleCreator/src/TrackParticleCreatorTool.cxx b/Tracking/TrkTools/TrkParticleCreator/src/TrackParticleCreatorTool.cxx index 4d3f381d258..a928cff654b 100644 --- a/Tracking/TrkTools/TrkParticleCreator/src/TrackParticleCreatorTool.cxx +++ b/Tracking/TrkTools/TrkParticleCreator/src/TrackParticleCreatorTool.cxx @@ -363,7 +363,7 @@ TrackParticleCreatorTool::TrackParticleCreatorTool(const std::string& t, const s std::unique_ptr<const Trk::TrackSummary> summary; if (m_trackSummaryTool.get()!=nullptr) { - summary.reset(m_trackSummaryTool->createSummary(*track)); + summary = m_trackSummaryTool->summary(*track, nullptr); if (summary == nullptr) { ATH_MSG_DEBUG ("No proper TrackSummary was returned. Creating TrackParticle with a dummy TrackSummary"); summary = std::make_unique<Trk::TrackSummary>(); -- GitLab