ATLAS Offline Software
ResidualPull.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class ResidualPull
8 // (c) ATLAS Detector software
10 // Class for residual and pull information
12 // Sebastian.Fleischmann@cern.ch
14 
15 #ifndef TRK_RESIDUALPULL_H
16 #define TRK_RESIDUALPULL_H
17 
18 #include <vector>
19 
20 namespace Trk {
46 {
48  // Public methods:
50 
51 public:
53  {
54  McTruth = 0,
55  Biased = 1,
56  HitOnly = 2,
57  Unbiased = 3,
59  };
60 
62  ResidualPull() = default;
64  ResidualPull(std::vector<double> residual,
65  std::vector<double> pull,
66  bool pullValid,
68  int parameterKey,
69  double sineStripAngle = 0.0);
70 
72  // Main methods
74 
76  const std::vector<double>& residual() const;
77 
79  const std::vector<double>& pull() const;
80 
84  bool isPullValid() const;
85 
88  int parameterKey() const;
89 
91  int dimension() const;
92 
95 
98  double sineStripAngle() const;
99 
100 protected:
102  // Protected Data
104  std::vector<double> m_residual{};
105  std::vector<double> m_pull{};
106  bool m_pullValid = false;
108  int m_parameterKey = 0;
109  double m_sineStripAngle = 0.0;
110 };
111 
113 // Inline methods
115 
116 } // end of name space
118 #endif // TRK_RESIDUALPULL_H
Trk::ResidualPull::residualType
ResidualType residualType() const
returns residual type (truth/biased/unbiased etc)
Trk::ResidualPull::Unbiased
@ Unbiased
RP with track state that has measurement not included.
Definition: ResidualPull.h:57
Trk::ResidualPull::pull
const std::vector< double > & pull() const
return pull vector
Trk::ResidualPull::m_residual
std::vector< double > m_residual
Definition: ResidualPull.h:104
Trk::ResidualPull
This class containes residual and pull information.
Definition: ResidualPull.h:46
Trk::ResidualPull::ResidualPull
ResidualPull(std::vector< double > residual, std::vector< double > pull, bool pullValid, ResidualType residualType, int parameterKey, double sineStripAngle=0.0)
explicit constructor
Trk::ResidualPull::m_residualType
ResidualType m_residualType
Definition: ResidualPull.h:107
ResidualPull.icc
Trk::ResidualPull::NumberOfResidualTypes
@ NumberOfResidualTypes
Definition: ResidualPull.h:58
Trk::ResidualPull::ResidualPull
ResidualPull()=default
default constructor
Trk::ResidualPull::McTruth
@ McTruth
RP between rec and true track intersection.
Definition: ResidualPull.h:54
Trk::ResidualPull::m_pullValid
bool m_pullValid
Definition: ResidualPull.h:106
Trk::ResidualPull::m_sineStripAngle
double m_sineStripAngle
Definition: ResidualPull.h:109
Trk::ResidualPull::HitOnly
@ HitOnly
RP with biased track state, but pull from hit only.
Definition: ResidualPull.h:56
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ResidualPull::sineStripAngle
double sineStripAngle() const
returns strip angle wrt.
Trk::ResidualPull::m_parameterKey
int m_parameterKey
Definition: ResidualPull.h:108
Trk::ResidualPull::parameterKey
int parameterKey() const
return the parameter key of the Trk::LocalParameters (of the measurement) used for the calculation
Trk::ResidualPull::dimension
int dimension() const
return the dimension of the residual and pull
Trk::ResidualPull::Biased
@ Biased
RP with track state including the hit.
Definition: ResidualPull.h:55
Trk::ResidualPull::isPullValid
bool isPullValid() const
returns false if the pull was calculated without a valid covariance matrix for the track parameters,...
Trk::ResidualPull::m_pull
std::vector< double > m_pull
Definition: ResidualPull.h:105
Trk::ResidualPull::residual
const std::vector< double > & residual() const
return residual vector
Trk::ResidualPull::ResidualType
ResidualType
Definition: ResidualPull.h:53