ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSummaryTool.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 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::updateAdditionalInfo(Track& track) const
31{
32 if (!track.trackSummary()) {
33 computeAndReplaceTrackSummary(
34 track, false /*DO NOT suppress hole search*/);
35 }
36}
37inline void
38TrackSummaryTool::UpdateSummary(const EventContext& ctx,
39 Track& track,
40 bool suppress_hole_search) const
41{
42 if (!track.trackSummary()) {
43 track.setTrackSummary(std::make_unique<Trk::TrackSummary>());
44 }
45 fillSummary(ctx,
46 *(track.trackSummary()),
47 track,
48 m_doHolesInDet && !suppress_hole_search,
49 m_doHolesMuon && !suppress_hole_search);
50}
51}