ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace Trk {
44
46{
48 // Public methods:
50
51public:
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
100protected:
102 // Protected Data
104 std::vector<double> m_residual{};
105 std::vector<double> m_pull{};
106 bool m_pullValid = false;
109 double m_sineStripAngle = 0.0;
110};
111
113// Inline methods
115
116} // end of name space
118#endif // TRK_RESIDUALPULL_H
const std::vector< double > & residual() const
return residual vector
@ Biased
RP with track state including the hit.
@ HitOnly
RP with biased track state, but pull from hit only.
@ Unbiased
RP with track state that has measurement not included.
@ McTruth
RP between rec and true track intersection.
ResidualPull()=default
default constructor
ResidualType m_residualType
ResidualType residualType() const
returns residual type (truth/biased/unbiased etc)
std::vector< double > m_pull
bool isPullValid() const
returns false if the pull was calculated without a valid covariance matrix for the track parameters,...
const std::vector< double > & pull() const
return pull vector
ResidualPull(std::vector< double > residual, std::vector< double > pull, bool pullValid, ResidualType residualType, int parameterKey, double sineStripAngle=0.0)
explicit constructor
double sineStripAngle() const
returns strip angle wrt.
int dimension() const
return the dimension of the residual and pull
int parameterKey() const
return the parameter key of the Trk::LocalParameters (of the measurement) used for the calculation
std::vector< double > m_residual
Ensure that the ATLAS eigen extensions are properly loaded.