Analysis Software
Documentation for sPHENIX simulation software
|
A scalar class for storage of the track in the cartesian parametrisation. More...
#include <KFParticle/blob/master/KFParticle/KFPTrack.h>
Public Member Functions | |
KFPTrack () | |
~KFPTrack () | |
int | GetID () const |
Returns Id of the track. | |
bool | GetXYZPxPyPz (float *p) const |
bool | GetCovarianceXYZPxPyPz (float cv[21]) const |
bool | GetCovarianceXYZPxPyPz (double cv[21]) const |
void | GetXYZ (float *position) const |
void | GetPxPyPz (float *position) const |
void | XvYvZv (float *position) const |
void | PxPyPz (float *position) const |
void | XvYvZv (double *position) const |
void | PxPyPz (double *position) const |
float | GetX () const |
Returns X coordinate of the track. | |
float | GetY () const |
Returns Y coordinate of the track. | |
float | GetZ () const |
Returns Z coordinate of the track. | |
float | GetPx () const |
Returns Px component of the momentum of the track. | |
float | GetPy () const |
Returns Py component of the momentum of the track. | |
float | GetPz () const |
Returns Pz component of the momentum of the track. | |
float | GetPt () const |
Returns Pt - transverse momentum of the track. | |
float | GetP () const |
Returns P - momentum of the track. | |
void | GetCovarianceMatrix (float *covmatrix) |
float | GetParameter (int i) const |
Returns parameter "i" of the track. | |
float | GetCovariance (int i) const |
Returns element of the covariance matrix "i" of the track. | |
int | Charge () const |
Returns charge of the track. | |
float | GetChi2perNDF () const |
Returns Chi2/NDF of the track, NDF is a number of degrees of freedom. | |
float | GetChi2 () const |
Returns Chi2 of the track. | |
int | GetNDF () const |
Returns number of degrees of freedom of the track. | |
const float * | GetTrack () const |
Returns a pointer to the array of track parameters. | |
const float * | GetCovMatrix () const |
Returns a pointer to the array of the covariance matrix elements stored in a lower triangular form. | |
void | SetParameters (const float *position) |
void | SetParameters (double *position) |
void | SetParameters (float x, float y, float z, float px, float py, float pz) |
void | SetXYZ (float x, float y, float z) |
void | SetPxPyPz (float px, float py, float pz) |
void | SetID (int id) |
Sets Id of the track. | |
void | SetX (float x) |
Sets X coordinate of the track. | |
void | SetY (float y) |
Sets Y coordinate of the track. | |
void | SetZ (float z) |
Sets Z coordinate of the track. | |
void | SetPx (float px) |
Sets Px component of the track momentum. | |
void | SetPy (float py) |
Sets Py component of the track momentum. | |
void | SetPz (float pz) |
Sets Pz component of the track momentum. | |
void | SetCharge (int q) |
Sets charge of the track. | |
void | SetChi2 (float chi) |
Sets a value of the track Chi2. | |
void | SetNDF (int ndf) |
Sets a value of the number of degrees of freedom. | |
void | SetCovarianceMatrix (const float *C) |
void | SetCovarianceMatrix (const double *C) |
void | SetCovariance (const int i, const float c) |
void | RotateXY (float alpha) |
int | Id () const |
Returns Id of the track. | |
void | SetId (int id) |
Sets Id of the track. | |
Private Attributes | |
float | fP [6] |
Parameters of the track: { X, Y, Z, Px, Py, Pz }. | |
float | fC [21] |
Covariance matrix of the track parameters. Stored in the lower triangular form. | |
float | fChi2 |
Chi-square of the track fit. | |
char | fQ |
Charge of the track. | |
short | fNDF |
Number of degree of freedom of the fit. | |
int | fId |
Id of the track. | |
A scalar class for storage of the track in the cartesian parametrisation.
A track is described with the state vector { X, Y, Z, Px, Py, Pz } and the corresponding covariance matrix. Also contains charge of the track, chi2 of the track fit, the corresponding number of degrees of freedom, the unique Id of the track and the field approximation along the track trajectory.
Definition at line 39 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 39 of file KFPTrack.h
|
inline |
Definition at line 46 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 46 of file KFPTrack.h
|
inline |
Definition at line 47 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 47 of file KFPTrack.h
|
inline |
Returns charge of the track.
Definition at line 113 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 113 of file KFPTrack.h
References fQ.
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Returns Chi2 of the track.
Definition at line 115 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 115 of file KFPTrack.h
References fChi2.
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Returns Chi2/NDF of the track, NDF is a number of degrees of freedom.
Definition at line 114 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 114 of file KFPTrack.h
|
inline |
Returns element of the covariance matrix "i" of the track.
[in] | i | - index of the element to be returned |
Definition at line 111 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 111 of file KFPTrack.h
|
inline |
Copies the covariance matrix of the track to the array of floats.
[out] | covmatrix[21] | - the output array, where the covariance matrix is copied |
Definition at line 102 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 102 of file KFPTrack.h
|
inline |
Copies the covariance matrix of the track to the array of floats.
[out] | cv[21] | - the output array, where the covariance matrix is copied |
Definition at line 60 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 60 of file KFPTrack.h
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Copies the covariance matrix of the track to the array of doubles.
[out] | cv[21] | - the output array, where the covariance matrix is copied |
Definition at line 69 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 69 of file KFPTrack.h
|
inline |
Returns a pointer to the array of the covariance matrix elements stored in a lower triangular form.
Definition at line 119 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 119 of file KFPTrack.h
References fC.
|
inline |
Returns Id of the track.
Definition at line 49 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 49 of file KFPTrack.h
References fId.
|
inline |
Returns number of degrees of freedom of the track.
Definition at line 116 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 116 of file KFPTrack.h
References fNDF.
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Returns P - momentum of the track.
Definition at line 100 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 100 of file KFPTrack.h
References fP.
|
inline |
Returns parameter "i" of the track.
[in] | i | - index of the parameter to be returned |
Definition at line 110 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 110 of file KFPTrack.h
|
inline |
Returns Pt - transverse momentum of the track.
Definition at line 99 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 99 of file KFPTrack.h
References fP.
|
inline |
Returns Px component of the momentum of the track.
Definition at line 95 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 95 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Copies 3 momentum components of the track to the output array of floats.
[out] | position | - the output array with the momentum of the track |
Definition at line 82 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 82 of file KFPTrack.h
References fP.
|
inline |
Returns Py component of the momentum of the track.
Definition at line 96 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 96 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Returns Pz component of the momentum of the track.
Definition at line 97 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 97 of file KFPTrack.h
References fP.
|
inline |
Returns a pointer to the array of track parameters.
Definition at line 118 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 118 of file KFPTrack.h
References fP.
|
inline |
Returns X coordinate of the track.
Definition at line 92 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 92 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Copies position of the track to the output array of floats.
[out] | position | - the output array with the position of the track |
Definition at line 80 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 80 of file KFPTrack.h
References fP.
|
inline |
Fills an array p with the parameters of the track.
[out] | p | - array where { X, Y, Z, Px, Py, Pz } are copied |
Definition at line 51 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 51 of file KFPTrack.h
|
inline |
Returns Y coordinate of the track.
Definition at line 93 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 93 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Returns Z coordinate of the track.
Definition at line 94 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 94 of file KFPTrack.h
References fP.
|
inline |
Returns Id of the track.
Definition at line 202 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 202 of file KFPTrack.h
References fId.
Referenced by KFParticleFinder::FindParticles(), and KFParticlePVReconstructor::Init().
|
inline |
Copies 3 momentum components of the track to the output array of floats.
[out] | position | - the output array with the momentum of the track |
Definition at line 86 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 86 of file KFPTrack.h
References fP.
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Copies 3 momentum components of the track to the output array of doubles.
[out] | position | - the output array with the momentum of the track |
Definition at line 90 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 90 of file KFPTrack.h
References fP.
void KFPTrack::RotateXY | ( | float | alpha | ) |
Rotates the parameters of the track on an angle alpha in the XY plane. Can be used in case of the transforamtion of the coordinate system. The rotation matrix is:
{ cos(A), -sin(A), 0, 0, 0, 0 } { sin(A), cos(A), 0, 0, 0, 0 } { 0, 0, 1, 0, 0, 0 } { 0, 0, 0, cos(A), -sin(A), 0 } { 0, 0, 0, sin(A), cos(A), 0 } { 0, 0, 0, 0, 0, 1 }
[in] | alpha | - rotation angle |
Definition at line 28 of file KFPTrack.cxx.
View newest version in sPHENIX GitHub at line 28 of file KFPTrack.cxx
References Acts::Test::cov, fC, GetPx(), GetPy(), GetX(), GetY(), SetPx(), SetPy(), SetX(), SetY(), ambiguity_solver_full_chain::x, and y.
|
inline |
Sets charge of the track.
Definition at line 176 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 176 of file KFPTrack.h
References fQ.
Referenced by KFPTrackVector::GetTrack(), and KFParticleTest::RunTestSingle().
|
inline |
Sets a value of the track Chi2.
Definition at line 177 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 177 of file KFPTrack.h
References fChi2.
Referenced by KFParticleTest::RunTestSingle().
|
inline |
Sets an element of the covariance matrix with index "i".
[in] | c | - value to be set |
[in] | i | - index of the element |
Definition at line 198 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 198 of file KFPTrack.h
References Acts::PhysicalConstants::c, fC, and i.
Referenced by KFPTrackVector::GetTrack().
|
inline |
Sets the covariance matrix from the input array of floats.
[in] | C[21] | - array with the input elements of the covariance matrix stored in the lower triangular form |
Definition at line 180 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 180 of file KFPTrack.h
Referenced by KFParticleTest::RunTestSingle().
|
inline |
Sets the covariance matrix from the input array of doubles.
[in] | C[21] | - array with the input elements of the covariance matrix stored in the lower triangular form |
Definition at line 188 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 188 of file KFPTrack.h
|
inline |
Sets Id of the track.
Definition at line 168 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 168 of file KFPTrack.h
References fId, and train_ambiguity_solver::id.
|
inline |
Sets Id of the track.
Definition at line 203 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 203 of file KFPTrack.h
References fId, and train_ambiguity_solver::id.
Referenced by KFPTrackVector::GetTrack().
|
inline |
Sets a value of the number of degrees of freedom.
Definition at line 178 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 178 of file KFPTrack.h
References fNDF.
Referenced by KFParticleTest::RunTestSingle().
|
inline |
Sets parameters { X, Y, Z, Px, Py, Pz } of the track from the input array of floats.
[in] | position | - input array with the track parameters |
Definition at line 121 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 121 of file KFPTrack.h
Referenced by KFPTrackVector::GetTrack(), and KFParticleTest::RunTestSingle().
|
inline |
Sets parameters { X, Y, Z, Px, Py, Pz } of the track from the input array of doubles.
[in] | position | - input array with the track parameters |
Definition at line 129 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 129 of file KFPTrack.h
|
inline |
Sets parameters { X, Y, Z, Px, Py, Pz } of the track.
[in] | x | - X coordinate to be set |
[in] | y | - Y coordinate to be set |
[in] | z | - Z coordinate to be set |
[in] | Px | - Px momentum component to be set |
[in] | Py | - Py momentum component to be set |
[in] | Pz | - Pz momentum component to be set |
Definition at line 137 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 137 of file KFPTrack.h
References fP, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
|
inline |
Sets Px component of the track momentum.
Definition at line 173 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 173 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Sets momentum { Px, Py, Pz } of the track.
[in] | Px | - Px momentum component to be set |
[in] | Py | - Py momentum component to be set |
[in] | Pz | - Pz momentum component to be set |
Definition at line 159 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 159 of file KFPTrack.h
References fP.
|
inline |
Sets Py component of the track momentum.
Definition at line 174 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 174 of file KFPTrack.h
References fP.
Referenced by RotateXY().
|
inline |
Sets Pz component of the track momentum.
Definition at line 175 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 175 of file KFPTrack.h
References fP.
|
inline |
Sets X coordinate of the track.
Definition at line 170 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 170 of file KFPTrack.h
References fP, and ambiguity_solver_full_chain::x.
Referenced by RotateXY().
|
inline |
Sets position { X, Y, Z } of the track.
[in] | x | - X coordinate to be set |
[in] | y | - Y coordinate to be set |
[in] | z | - Z coordinate to be set |
Definition at line 150 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 150 of file KFPTrack.h
References fP, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
|
inline |
Sets Y coordinate of the track.
Definition at line 171 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 171 of file KFPTrack.h
Referenced by RotateXY().
|
inline |
Sets Z coordinate of the track.
Definition at line 172 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 172 of file KFPTrack.h
References fP, and physmon_track_finding_ttbar::z.
|
inline |
Copies position of the track to the output array of floats.
[out] | position | - the output array with the position of the track |
Definition at line 84 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 84 of file KFPTrack.h
References fP.
Referenced by KFParticleSIMD::Create(), KFParticle::KFParticle(), and KFParticleSIMD::KFParticleSIMD().
|
inline |
Copies position of the track to the output array of doubles.
[out] | position | - the output array with the position of the track |
Definition at line 88 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 88 of file KFPTrack.h
References fP.
|
private |
Covariance matrix of the track parameters. Stored in the lower triangular form.
Definition at line 213 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 213 of file KFPTrack.h
Referenced by GetCovariance(), GetCovarianceMatrix(), GetCovarianceXYZPxPyPz(), GetCovMatrix(), RotateXY(), SetCovariance(), and SetCovarianceMatrix().
|
private |
Chi-square of the track fit.
Definition at line 214 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 214 of file KFPTrack.h
Referenced by GetChi2(), GetChi2perNDF(), and SetChi2().
|
private |
Id of the track.
Definition at line 217 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 217 of file KFPTrack.h
|
private |
Number of degree of freedom of the fit.
Definition at line 216 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 216 of file KFPTrack.h
Referenced by GetChi2perNDF(), GetNDF(), and SetNDF().
|
private |
Parameters of the track: { X, Y, Z, Px, Py, Pz }.
Definition at line 212 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 212 of file KFPTrack.h
Referenced by GetP(), GetParameter(), GetPt(), GetPx(), GetPxPyPz(), GetPy(), GetPz(), GetTrack(), GetX(), GetXYZ(), GetXYZPxPyPz(), GetY(), GetZ(), PxPyPz(), SetParameters(), SetPx(), SetPxPyPz(), SetPy(), SetPz(), SetX(), SetXYZ(), SetY(), SetZ(), and XvYvZv().
|
private |
Charge of the track.
Definition at line 215 of file KFPTrack.h.
View newest version in sPHENIX GitHub at line 215 of file KFPTrack.h
Referenced by Charge(), and SetCharge().