Analysis Software
Documentation for sPHENIX simulation software
|
A scalar class for storage of the vertex in the cartesian parametrisation. More...
#include <KFParticle/blob/master/KFParticle/KFPVertex.h>
Public Member Functions | |
KFPVertex () | |
~KFPVertex () | |
float | GetX () const |
Returns X coordinate of the vertex. | |
float | GetY () const |
Returns Y coordinate of the vertex. | |
float | GetZ () const |
Returns Z coordinate of the vertex. | |
void | GetXYZ (float *position) const |
void | GetXYZ (double *position) const |
void | GetCovarianceMatrix (float *covmatrix) const |
void | GetCovarianceMatrix (double *covmatrix) const |
float | GetChi2perNDF () const |
Returns Chi2/NDF of the vertex, NDF is a number of degrees of freedom. | |
float | GetChi2 () const |
Returns Chi2 of the vertex fit. | |
int | GetNDF () const |
Returns number of degrees of freedom of the vertex. | |
int | GetNContributors () const |
Returns number of tracks which were used for construction of the vertex. | |
float | GetParameter (int i) const |
Returns parameter "i" of the vertex. | |
float | GetCovariance (int i) const |
Returns element of the covariance matrix "i" of the vertex. | |
void | SetXYZ (float *position) |
void | SetXYZ (float x, float y, float z) |
void | SetX (float x) |
Sets X coordinate of the vertex. | |
void | SetY (float y) |
Sets Y coordinate of the vertex. | |
void | SetZ (float z) |
Sets Z coordinate of the vertex. | |
void | SetChi2 (float chi) |
Sets Chi2 of the vertex. | |
void | SetNDF (int ndf) |
Sets number of degrees of freedom of the vertex. | |
void | SetNContributors (int nc) |
Sets number of tracks which were used for construction of the vertex. | |
void | SetCovarianceMatrix (float *C) |
void | SetCovarianceMatrix (float C00, float C10, float C11, float C20, float C21, float C22) |
Private Attributes | |
float | fP [3] |
Coordinates of the vertex. | |
float | fC [6] |
Covariance matrix of the vertex parameters. | |
float | fChi2 |
Chi-square of the vertex fit. | |
int | fNContributors |
Number of tracks, from which the vertex was built. | |
int | fNDF |
Number of degrees of freedom of the vertex fit. | |
A scalar class for storage of the vertex in the cartesian parametrisation.
A vertex is described with the state vector { X, Y, Z } and the corresponding covariance matrix. Also contains chi2 of the fit, corresponding number of degrees of freedom, and number of tracks which were used to construct current vertex. The class is used to provide an external vertex through the interfaces to the KF Particle package.
Definition at line 39 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 39 of file KFPVertex.h
KFPVertex::KFPVertex | ( | ) |
Definition at line 24 of file KFPVertex.cxx.
View newest version in sPHENIX GitHub at line 24 of file KFPVertex.cxx
|
inline |
Definition at line 43 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 43 of file KFPVertex.h
|
inline |
Returns Chi2 of the vertex fit.
Definition at line 74 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 74 of file KFPVertex.h
References fChi2.
Referenced by KFParticle::KFParticle(), KFParticleSIMD::KFParticleSIMD(), and KFVertex::KFVertex().
|
inline |
Returns Chi2/NDF of the vertex, NDF is a number of degrees of freedom.
Definition at line 73 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 73 of file KFPVertex.h
|
inline |
Returns element of the covariance matrix "i" of the vertex.
[in] | i | - index of the element to be returned |
Definition at line 79 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 79 of file KFPVertex.h
|
inline |
Copies the covariance matrix of the vertex to the array of floats.
[out] | covmatrix[6] | - the output array, where the covariance matrix is copied |
Definition at line 56 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 56 of file KFPVertex.h
Referenced by KFParticle::KFParticle(), KFParticleSIMD::KFParticleSIMD(), and KFVertex::KFVertex().
|
inline |
Copies the covariance matrix of the vertex to the array of doubles.
[out] | covmatrix[6] | - the output array, where the covariance matrix is copied |
Definition at line 64 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 64 of file KFPVertex.h
|
inline |
Returns number of tracks which were used for construction of the vertex.
Definition at line 76 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 76 of file KFPVertex.h
References fNContributors.
Referenced by KFParticle::KFParticle(), KFParticleSIMD::KFParticleSIMD(), and KFVertex::KFVertex().
|
inline |
Returns number of degrees of freedom of the vertex.
Definition at line 75 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 75 of file KFPVertex.h
References fNDF.
|
inline |
Returns parameter "i" of the vertex.
[in] | i | - index of the parameter to be returned |
Definition at line 78 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 78 of file KFPVertex.h
|
inline |
Returns X coordinate of the vertex.
Definition at line 48 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 48 of file KFPVertex.h
References fP.
|
inline |
Copies position of the vertex to the output array of floats.
[out] | position | - the output array with the position of the vertex |
Definition at line 53 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 53 of file KFPVertex.h
References fP.
Referenced by KFParticle::KFParticle(), KFParticleSIMD::KFParticleSIMD(), and KFVertex::KFVertex().
|
inline |
Copies position of the vertex to the output array of doubles.
[out] | position | - the output array with the position of the vertex |
Definition at line 55 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 55 of file KFPVertex.h
References fP.
|
inline |
Returns Y coordinate of the vertex.
Definition at line 49 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 49 of file KFPVertex.h
References fP.
|
inline |
Returns Z coordinate of the vertex.
Definition at line 50 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 50 of file KFPVertex.h
References fP.
|
inline |
Sets Chi2 of the vertex.
Definition at line 94 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 94 of file KFPVertex.h
References fChi2.
Referenced by KFParticlePVReconstructor::ReconstructPrimVertex(), and KFParticleTest::RunTestSingle().
|
inline |
Sets the covariance matrix from the input array of floats.
[in] | C[6] | - array with the input elements of the covariance matrix stored in the lower triangular form |
Definition at line 98 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 98 of file KFPVertex.h
Referenced by KFParticlePVReconstructor::ReconstructPrimVertex(), and KFParticleTest::RunTestSingle().
|
inline |
Sets the covariance matrix from the input array of floats.
[in] | C00 | - Cxx |
[in] | C10 | - Cxy = Cyx |
[in] | C11 | - Cyy |
[in] | C20 | - Cxz = Czx |
[in] | C21 | - Cyz = Czy |
[in] | C22 | - Czz |
Definition at line 107 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 107 of file KFPVertex.h
References fC.
|
inline |
Sets number of tracks which were used for construction of the vertex.
Definition at line 96 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 96 of file KFPVertex.h
References fNContributors.
Referenced by KFParticlePVReconstructor::ReconstructPrimVertex(), and KFParticleTest::RunTestSingle().
|
inline |
Sets number of degrees of freedom of the vertex.
Definition at line 95 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 95 of file KFPVertex.h
References fNDF.
|
inline |
Sets X coordinate of the vertex.
Definition at line 91 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 91 of file KFPVertex.h
References fP, and ambiguity_solver_full_chain::x.
|
inline |
Sets position { X, Y, Z } of the vertex from the input array of doubles.
[in] | position | - input array with the vertex parameters |
Definition at line 84 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 84 of file KFPVertex.h
References fP.
Referenced by KFParticlePVReconstructor::ReconstructPrimVertex(), and KFParticleTest::RunTestSingle().
|
inline |
Sets position { X, Y, Z } of the vertex.
[in] | x | - X coordinate to be set |
[in] | y | - Y coordinate to be set |
[in] | z | - Z coordinate to be set |
Definition at line 90 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 90 of file KFPVertex.h
References fP, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
|
inline |
Sets Y coordinate of the vertex.
Definition at line 92 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 92 of file KFPVertex.h
|
inline |
Sets Z coordinate of the vertex.
Definition at line 93 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 93 of file KFPVertex.h
References fP, and physmon_track_finding_ttbar::z.
|
private |
Covariance matrix of the vertex parameters.
Definition at line 128 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 128 of file KFPVertex.h
Referenced by GetCovariance(), GetCovarianceMatrix(), KFPVertex(), and SetCovarianceMatrix().
|
private |
Chi-square of the vertex fit.
Definition at line 129 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 129 of file KFPVertex.h
Referenced by GetChi2(), GetChi2perNDF(), and SetChi2().
|
private |
Number of tracks, from which the vertex was built.
Definition at line 130 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 130 of file KFPVertex.h
Referenced by GetNContributors(), and SetNContributors().
|
private |
Number of degrees of freedom of the vertex fit.
Definition at line 131 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 131 of file KFPVertex.h
Referenced by GetChi2perNDF(), GetNDF(), and SetNDF().
|
private |
Coordinates of the vertex.
Definition at line 127 of file KFPVertex.h.
View newest version in sPHENIX GitHub at line 127 of file KFPVertex.h
Referenced by GetParameter(), GetX(), GetXYZ(), GetY(), GetZ(), KFPVertex(), SetX(), SetXYZ(), SetY(), and SetZ().