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

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.
parent b9ffea6f
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ TrackParticleCreatorTool::TrackParticleCreatorTool(const std::string& t, const s ...@@ -363,7 +363,7 @@ TrackParticleCreatorTool::TrackParticleCreatorTool(const std::string& t, const s
std::unique_ptr<const Trk::TrackSummary> summary; std::unique_ptr<const Trk::TrackSummary> summary;
if (m_trackSummaryTool.get()!=nullptr) { if (m_trackSummaryTool.get()!=nullptr) {
summary.reset(m_trackSummaryTool->createSummary(*track)); summary = m_trackSummaryTool->summary(*track, nullptr);
if (summary == nullptr) { if (summary == nullptr) {
ATH_MSG_DEBUG ("No proper TrackSummary was returned. Creating TrackParticle with a dummy TrackSummary"); ATH_MSG_DEBUG ("No proper TrackSummary was returned. Creating TrackParticle with a dummy TrackSummary");
summary = std::make_unique<Trk::TrackSummary>(); summary = std::make_unique<Trk::TrackSummary>();
......
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