ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSummaryTool.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5namespace Trk {
6inline void
7TrackSummaryTool::updateTrack(const EventContext& ctx, Track& track) const
8{
9 computeAndReplaceTrackSummary(
10 ctx, track, false /*DO NOT suppress hole search*/);
11}
12
13inline void
14TrackSummaryTool::updateTrackSummary(const EventContext& ctx,
15 Track& track) const
16{
17 /*suppress hole search*/
18 UpdateSummary(ctx, track, true);
19}
20
21inline void
22TrackSummaryTool::updateTrackSummary(const EventContext& ctx,
23 Track& track,
24 bool suppress_hole_search) const
25{
26 UpdateSummary(ctx, track, suppress_hole_search);
27}
28
29inline void
30TrackSummaryTool::UpdateSummary(const EventContext& ctx,
31 Track& track,
32 bool suppress_hole_search) const
33{
34 if (!track.trackSummary()) {
35 track.setTrackSummary(std::make_unique<Trk::TrackSummary>());
36 }
37 fillSummary(ctx,
38 *(track.trackSummary()),
39 track,
40 m_doHolesInDet && !suppress_hole_search,
41 m_doHolesMuon && !suppress_hole_search);
42}
43}