|
CbmRoot
|
The class describes a reconstructed vertex. More...
#include <KfVertex.h>
Public Types | |
| using | Parameters_t = std::array<T, kNofParameters> |
| covariance matrix type | |
| using | CovMatrix_t = MatrixSym<T, kNofParameters> |
| covariance matrix type | |
Public Member Functions | |
| Vertex ()=default | |
| Default constructor. | |
| ~Vertex ()=default | |
| Default destructor. | |
| T | X () const |
| Accessors. | |
| T | Y () const |
| y position [cm] | |
| T | Z () const |
| z position [cm] | |
| T | Time () const |
| t position [cm] | |
| T | ChiSq () const |
| chi2 | |
| int32_t | Ndf () const |
| nof degrees of freedom | |
| T | ChiSqTime () const |
| chi2 time | |
| int32_t | NdfTime () const |
| nof degrees of freedom time | |
| int32_t | NofTracks () const |
| T | GetX () const |
| nof tracks used | |
| T | GetY () const |
| y position [cm] | |
| T | GetZ () const |
| z position [cm] | |
| T | GetTime () const |
| t position [cm] | |
| T | GetChiSq () const |
| chi2 | |
| int32_t | GetNdf () const |
| nof degrees of freedom | |
| T | GetChiSqTime () const |
| chi2 time | |
| int32_t | GetNdfTime () const |
| nof degrees of freedom time | |
| int32_t | GetNofTracks () const |
| const Parameters_t & | GetParameters () const |
| nof tracks used | |
| const CovMatrix_t & | GetCovMatrix () const |
| get covariance matrix | |
| T & | X () |
| Mutators. | |
| T & | Y () |
| y position [cm] | |
| T & | Z () |
| z position [cm] | |
| T & | Time () |
| t position [cm] | |
| T & | ChiSq () |
| chi2 | |
| int32_t & | Ndf () |
| nof degrees of freedom | |
| T & | ChiSqTime () |
| chi2 time | |
| int32_t & | NdfTime () |
| nof degrees of freedom time | |
| int32_t & | NofTracks () |
| Parameters_t & | Parameters () |
| nof tracks used | |
| CovMatrix_t & | CovMatrix () |
| get covariance matrix | |
| void | SetParameters (const Parameters_t ¶ms) |
| Setters. | |
| void | SetCovMatrix (const CovMatrix_t &val) |
| set covariance matrix | |
| void | SetX (T v) |
| x position [cm] | |
| void | SetY (T v) |
| y position [cm] | |
| void | SetZ (T v) |
| z position [cm] | |
| void | SetTime (T v) |
| t position [cm] | |
| void | SetChiSq (T v) |
| chi2 | |
| void | SetNdf (int32_t v) |
| nof degrees of freedom | |
| void | SetChiSqTime (T v) |
| chi2 time | |
| void | SetNdfTime (int32_t v) |
| nof degrees of freedom time | |
| void | SetNofTracks (int32_t v) |
| void | ResetErrors (T c00, T c11, T c22, T c33) |
| nof tracks used | |
| std::string | ToString () const |
| Prints parameters to a string. | |
| bool | IsFinite () const |
| Checks whether some parameters are finite. | |
| bool | IsConsistent () const |
| Checks whether the covariance matrix elements are consistent. | |
| template<DoPrintDebug FlagPrintDebug = DoPrintDebug::Y> | |
| bool | IsFinite (std::stringstream *ss) const |
| Checks whether some parameters are finite. | |
| template<DoPrintDebug FlagPrintDebug = DoPrintDebug::Y> | |
| bool | IsConsistent (std::stringstream *ss) const |
| Checks whether the covariance matrix elements are consistent. | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
Static Public Attributes | |
| static constexpr int | kNofParameters {4} |
| N of variable track parameters: {x, y, z, t}. | |
| static constexpr int | kNofCovParameters {CovMatrix_t::kNofElements} |
| N of covariance matrix elements. | |
Private Member Functions | |
| ClassDefNV (Vertex, 1) | |
Private Attributes | |
| Parameters_t | fParameters {0., 0., 0., 0.} |
| parameters: x, y, z, t | |
| CovMatrix_t | fCovMatrix |
| covariance matrix | |
| T | fChiSq {0.} |
| chi^2 of track fit, spatial measurements | |
| T | fChiSqTime {0.} |
| chi^2 of track fit, time measurements | |
| int32_t | fNdf {-3} |
| NDF of track fit, spatial measurements. | |
| int32_t | fNdfTime {-1} |
| NDF of track fit, time measurements. | |
| int32_t | fNofTracks {0} |
The class describes a reconstructed vertex.
Definition at line 35 of file KfVertex.h.
| using cbm::algo::kf::Vertex< T >::CovMatrix_t = MatrixSym<T, kNofParameters> |
covariance matrix type
Definition at line 41 of file KfVertex.h.
| using cbm::algo::kf::Vertex< T >::Parameters_t = std::array<T, kNofParameters> |
covariance matrix type
Definition at line 40 of file KfVertex.h.
|
default |
Default constructor.
|
default |
Default destructor.
|
inline |
chi2
Definition at line 83 of file KfVertex.h.
|
inline |
chi2
Definition at line 58 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), IsConsistent(), IsFinite(), and ToString().
|
inline |
chi2 time
Definition at line 85 of file KfVertex.h.
|
inline |
chi2 time
Definition at line 60 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), IsConsistent(), IsFinite(), and ToString().
|
private |
|
inline |
get covariance matrix
Definition at line 89 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
chi2
Definition at line 68 of file KfVertex.h.
|
inline |
chi2 time
Definition at line 70 of file KfVertex.h.
|
inline |
get covariance matrix
Definition at line 74 of file KfVertex.h.
|
inline |
nof degrees of freedom
Definition at line 69 of file KfVertex.h.
|
inline |
nof degrees of freedom time
Definition at line 71 of file KfVertex.h.
|
inline |
Definition at line 72 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Checks whether the covariance matrix elements are consistent.
Definition at line 123 of file KfVertex.h.
Referenced by IsConsistent(), and cbm::algo::kf::Vertex< fscal >::IsConsistent().
|
inline |
Checks whether the covariance matrix elements are consistent.
Definition at line 216 of file KfVertex.h.
References ChiSq(), ChiSqTime(), fCovMatrix, IsConsistent(), IsFinite(), Ndf(), NdfTime(), NofTracks(), and cbm::algo::kf::Y.
|
inline |
Checks whether some parameters are finite.
Definition at line 120 of file KfVertex.h.
Referenced by IsConsistent(), IsFinite(), and cbm::algo::kf::Vertex< fscal >::IsFinite().
|
inline |
Checks whether some parameters are finite.
Definition at line 183 of file KfVertex.h.
References ChiSq(), ChiSqTime(), fCovMatrix, cbm::algo::kf::utils::IsFinite(), IsFinite(), Ndf(), NdfTime(), NofTracks(), X(), cbm::algo::kf::Y, and Z().
|
inline |
nof degrees of freedom
Definition at line 84 of file KfVertex.h.
|
inline |
nof degrees of freedom
Definition at line 59 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), IsConsistent(), IsFinite(), and ToString().
|
inline |
nof degrees of freedom time
Definition at line 86 of file KfVertex.h.
|
inline |
nof degrees of freedom time
Definition at line 61 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), IsConsistent(), IsFinite(), and ToString().
|
inline |
Definition at line 87 of file KfVertex.h.
|
inline |
Definition at line 62 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex(), IsConsistent(), IsFinite(), and ToString().
|
inline |
nof tracks used
get all parameters
Definition at line 88 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
nof tracks used
Other methods
Resets variances of track parameters and chi2, ndf values
| c00 | Variance of x-position [cm2] |
| c11 | Variance of y-position [cm2] |
| c22 | Variance of z-position [cm2] |
| c33 | Variance of time [ns2] |
Definition at line 171 of file KfVertex.h.
References fChiSq, fChiSqTime, fCovMatrix, fNdf, fNdfTime, and fNofTracks.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
|
inline |
chi2
Definition at line 100 of file KfVertex.h.
|
inline |
chi2 time
Definition at line 102 of file KfVertex.h.
|
inline |
set covariance matrix
Definition at line 94 of file KfVertex.h.
|
inline |
nof degrees of freedom
Definition at line 101 of file KfVertex.h.
|
inline |
nof degrees of freedom time
Definition at line 103 of file KfVertex.h.
|
inline |
Definition at line 104 of file KfVertex.h.
|
inline |
|
inline |
t position [cm]
Definition at line 99 of file KfVertex.h.
|
inline |
x position [cm]
Definition at line 96 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
y position [cm]
Definition at line 97 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
z position [cm]
Definition at line 98 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
t position [cm]
Definition at line 82 of file KfVertex.h.
|
inline |
t position [cm]
Definition at line 57 of file KfVertex.h.
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
| std::string cbm::algo::kf::Vertex< T >::ToString | ( | ) | const |
Prints parameters to a string.
Definition at line 22 of file KfVertex.cxx.
References ChiSq(), ChiSqTime(), fCovMatrix, GetTime(), GetX(), GetY(), GetZ(), Ndf(), NdfTime(), and NofTracks().
Referenced by cbm::algo::kf::VertexFitter< FlagFitTime >::FitVertex().
|
inline |
|
inline |
|
inline |
y position [cm]
Definition at line 80 of file KfVertex.h.
|
inline |
y position [cm]
Definition at line 55 of file KfVertex.h.
|
inline |
z position [cm]
Definition at line 81 of file KfVertex.h.
|
inline |
|
private |
chi^2 of track fit, spatial measurements
Definition at line 153 of file KfVertex.h.
Referenced by ResetErrors().
|
private |
chi^2 of track fit, time measurements
Definition at line 154 of file KfVertex.h.
Referenced by ResetErrors().
|
private |
covariance matrix
Definition at line 152 of file KfVertex.h.
Referenced by IsConsistent(), IsFinite(), ResetErrors(), and ToString().
|
private |
NDF of track fit, spatial measurements.
Definition at line 155 of file KfVertex.h.
Referenced by ResetErrors().
|
private |
NDF of track fit, time measurements.
Definition at line 156 of file KfVertex.h.
Referenced by ResetErrors().
|
private |
Definition at line 157 of file KfVertex.h.
Referenced by ResetErrors().
|
private |
parameters: x, y, z, t
Definition at line 151 of file KfVertex.h.
|
staticconstexpr |
N of covariance matrix elements.
Definition at line 43 of file KfVertex.h.
|
staticconstexpr |
N of variable track parameters: {x, y, z, t}.
Definition at line 38 of file KfVertex.h.