2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
8 // constructor with parameters
9 inline Trk::ResidualPull::ResidualPull(
10 std::vector<double> residual,
11 std::vector<double> pull,
13 Trk::ResidualPull::ResidualType type,
15 double sineStripAngle)
16 : m_residual(std::move(residual))
17 , m_pull(std::move(pull))
18 , m_pullValid(pullValid)
19 , m_residualType(type)
20 , m_parameterKey(parameterKey)
21 , m_sineStripAngle(sineStripAngle)
23 if (m_residual.size() != m_pull.size()) {
24 throw std::runtime_error(
25 "Trk::ResidualPull: residual and pull sizes differ");
29 // return the parameter key of the Trk::LocalParameters (of the measurement)
30 // used for the calculation
32 Trk::ResidualPull::parameterKey() const
34 return m_parameterKey;
37 // return the dimension of the residual and pull
39 Trk::ResidualPull::dimension() const
41 return m_residual.size();
43 inline const std::vector<double>&
44 ResidualPull::residual() const
49 inline const std::vector<double>&
50 ResidualPull::pull() const
56 ResidualPull::isPullValid() const
61 inline ResidualPull::ResidualType
62 ResidualPull::residualType() const
64 return m_residualType;
68 ResidualPull::sineStripAngle() const
70 return m_sineStripAngle;