ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSummary.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4inline int
5Trk::TrackSummary::get(const Trk::SummaryType& type) const
6{
7 return m_information.at(type);
8}
9
10inline bool
11Trk::TrackSummary::update(Trk::SummaryType type, int new_value)
12{
13 if (m_information.at(type) != SummaryTypeNotSet) {
14 return false;
15 }
16 m_information[type] = new_value;
17 return true;
18}
19
20inline bool
21Trk::TrackSummary::isHit(const Trk::DetectorType& type) const
22{
23 // no range checking because people should be using enums
24 return (m_idHitPattern & (1 << static_cast<unsigned int>(type)));
25}
26
27inline const Trk::MuonTrackSummary*
28Trk::TrackSummary::muonTrackSummary() const
29{
30 return m_muonTrackSummary.get();
31}
32
33inline Trk::MuonTrackSummary*
34Trk::TrackSummary::muonTrackSummary()
35{
36 return m_muonTrackSummary.get();
37}
38
39inline unsigned long
40Trk::TrackSummary::getHitPattern() const
41{
42 return m_idHitPattern;
43}
44