ATLAS Offline Software
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 
5 namespace Trk {
6 inline void
7 TrackSummaryTool::updateTrack(const EventContext& ctx, Track& track) const
8 {
9  computeAndReplaceTrackSummary(
10  ctx, track, false /*DO NOT suppress hole search*/);
11 }
12 
13 inline void
14 TrackSummaryTool::updateTrackSummary(const EventContext& ctx,
15  Track& track) const
16 {
17  /*suppress hole search*/
18  UpdateSummary(ctx, track, true);
19 }
20 
21 inline void
22 TrackSummaryTool::updateTrackSummary(const EventContext& ctx,
23  Track& track,
24  bool suppress_hole_search) const
25 {
26  UpdateSummary(ctx, track, suppress_hole_search);
27 }
28 
29 inline void
30 TrackSummaryTool::updateAdditionalInfo(Track& track) const
31 {
32  if (!track.trackSummary()) {
33  computeAndReplaceTrackSummary(
34  track, false /*DO NOT suppress hole search*/);
35  }
36 }
37 inline void
38 TrackSummaryTool::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 }