TrackSummary.icc 1.57 KB
Newer Older
1
/*
2
  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
*/
inline int
Trk::TrackSummary::get(const Trk::SummaryType& type) const
{
  return m_information.at(type);
}

// Troels.Petersen@cern.ch:
inline float
Trk::TrackSummary::getPID(const Trk::eProbabilityType& PIDtype) const
{
  return (PIDtype < m_eProbability.size() ? m_eProbability[PIDtype] : 0.);
}

inline bool
Trk::TrackSummary::update(Trk::SummaryType type, int new_value)
{
  if (m_information.at(type) != SummaryTypeNotSet) {
    return false;
  }
  m_information[type] = new_value;
  return true;
}

inline float
Trk::TrackSummary::getPixeldEdx() const
{
  return m_dedx;
}

inline int
Trk::TrackSummary::numberOfUsedHitsdEdx() const
{
  return m_nhitsdedx;
}

inline int
Trk::TrackSummary::numberOfOverflowHitsdEdx() const
{
  return m_nhitsoverflowdedx;
}

inline bool
Trk::TrackSummary::isHit(const Trk::DetectorType& type) const
{
  // no range checking because people should be using enums
  return (m_idHitPattern & (1 << static_cast<unsigned int>(type)));
}

inline const Trk::InDetTrackSummary*
Trk::TrackSummary::indetTrackSummary() const
{
55
  return m_indetTrackSummary.get();
56
57
58
}

inline Trk::InDetTrackSummary*
59
Trk::TrackSummary::indetTrackSummary()
60
{
61
  return m_indetTrackSummary.get();
62
63
64
65
66
}

inline const Trk::MuonTrackSummary*
Trk::TrackSummary::muonTrackSummary() const
{
67
  return m_muonTrackSummary.get();
68
69
70
71
72
}

inline Trk::MuonTrackSummary*
Trk::TrackSummary::muonTrackSummary()
{
73
  return m_muonTrackSummary.get();
74
75
76
77
78
79
80
81
}

inline unsigned long
Trk::TrackSummary::getHitPattern() const
{
  return m_idHitPattern;
}