Belle II Software light-2406-ragdoll
|
KFitTrack is a container of the track information (Lorentz vector, position, and error matrix), and a set of macro functions to set/get the contents. More...
#include <KFitTrack.h>
Classes | |
struct | KFitPXE |
KFitPXE is a container of the track information (Lorentz vector, position, and error matrix). More... | |
Public Member Functions | |
KFitTrack (void) | |
Construct an object with no argument. | |
KFitTrack (const KFitTrack &kp) | |
Construct the object as a copy constructor. | |
KFitTrack (const CLHEP::HepLorentzVector &p, const HepPoint3D &x, const CLHEP::HepSymMatrix &e, const double q, const int flag=KFitConst::kBeforeFit) | |
Construct the object with track properties. | |
~KFitTrack (void) | |
Destruct the object. | |
KFitTrack & | operator= (const KFitTrack &) |
Operator: assignment operator. | |
void | setMomentum (const CLHEP::HepLorentzVector &p, const int flag=KFitConst::kBeforeFit) |
Set a Lorentz vector of the track. | |
void | setPosition (const HepPoint3D &x, const int flag=KFitConst::kBeforeFit) |
Set a position of the track. | |
void | setError (const CLHEP::HepSymMatrix &e, const int flag=KFitConst::kBeforeFit) |
Set an error matrix of the track. | |
void | setCharge (const double q) |
Set a charge of the track. | |
void | setVertex (const HepPoint3D &v) |
Set a vertex position associated to the track. | |
void | setVertexError (const CLHEP::HepSymMatrix &ve) |
Set a vertex error matrix associated to the track. | |
const CLHEP::HepLorentzVector | getMomentum (const int flag=KFitConst::kAfterFit) const |
Get a Lorentz vector of the track. | |
const HepPoint3D | getPosition (const int flag=KFitConst::kAfterFit) const |
Get a position of the track. | |
const CLHEP::HepSymMatrix | getError (const int flag=KFitConst::kAfterFit) const |
Get an error matrix of the track. | |
double | getCharge (void) const |
Get a charge of the track. | |
double | getMass (void) const |
Get a mass of the track. | |
const HepPoint3D | getVertex (void) const |
Get a vertex position associated to the track. | |
const CLHEP::HepSymMatrix | getVertexError (void) const |
Get a vertex error matrix associated to the track. | |
double | getFitParameter (const int which, const int flag) const |
Get a parameter of the track. | |
const CLHEP::HepMatrix | getFitParameter (const int flag) const |
Get a parameter set of the track. | |
const CLHEP::HepSymMatrix | getFitError (const int flag) const |
Get an error matrix of the track. | |
const CLHEP::HepMatrix | getMomPos (const int flag) const |
Get a combination of Lorentz vector and position of the track. | |
Private Member Functions | |
void | checkFlag (const int flag) const |
Check if the flag is one of KFitConst::kBeforeFit or KFitConst::kAfterFit. | |
void | checkMatrixDimension (const CLHEP::HepSymMatrix &m, const int dim) const |
Check if the matrix size is intended one. | |
Private Attributes | |
struct KFitPXE | m_PXEBefore |
Lorentz vector, position, and error matrix of the track before the fit. | |
struct KFitPXE | m_PXEAfter |
Lorentz vector, position, and error matrix of the track after the fit. | |
double | m_Charge |
Charge of the track. | |
double | m_Mass |
Mass of the track. | |
HepPoint3D | m_Vertex |
Vertex position associated to the track. | |
CLHEP::HepSymMatrix | m_VertexError |
Vertex error matrix associated to the track. | |
KFitTrack is a container of the track information (Lorentz vector, position, and error matrix), and a set of macro functions to set/get the contents.
Definition at line 38 of file KFitTrack.h.
KFitTrack | ( | void | ) |
Construct an object with no argument.
Definition at line 21 of file KFitTrack.cc.
KFitTrack | ( | const CLHEP::HepLorentzVector & | p, |
const HepPoint3D & | x, | ||
const CLHEP::HepSymMatrix & | e, | ||
const double | q, | ||
const int | flag = KFitConst::kBeforeFit |
||
) |
Construct the object with track properties.
p | Lorentz vector of the track |
x | position of the track |
e | (7x7) error matrix of the track |
q | charge of the track |
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 39 of file KFitTrack.cc.
|
inlineprivate |
Check if the flag is one of KFitConst::kBeforeFit or KFitConst::kAfterFit.
If check fails, abort the program.
flag |
Definition at line 164 of file KFitTrack.h.
|
inlineprivate |
Check if the matrix size is intended one.
If check fails, abort the program.
m | matrix to be tested |
dim | size of the matrix |
Definition at line 173 of file KFitTrack.h.
double getCharge | ( | void | ) | const |
Get a charge of the track.
Definition at line 180 of file KFitTrack.cc.
const HepSymMatrix getError | ( | const int | flag = KFitConst::kAfterFit | ) | const |
Get an error matrix of the track.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 172 of file KFitTrack.cc.
const HepSymMatrix getFitError | ( | const int | flag | ) | const |
Get an error matrix of the track.
Not intended for end user's use.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 246 of file KFitTrack.cc.
const HepMatrix getFitParameter | ( | const int | flag | ) | const |
Get a parameter set of the track.
Not intended for end user's use.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 234 of file KFitTrack.cc.
double getFitParameter | ( | const int | which, |
const int | flag | ||
) | const |
Get a parameter of the track.
Not intended for end user's use.
which | (0,1,2,3,4,5) = (Px,Py,Pz,Xx,Xy,Xz) |
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 208 of file KFitTrack.cc.
double getMass | ( | void | ) | const |
const HepLorentzVector getMomentum | ( | const int | flag = KFitConst::kAfterFit | ) | const |
Get a Lorentz vector of the track.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 156 of file KFitTrack.cc.
const HepMatrix getMomPos | ( | const int | flag | ) | const |
Get a combination of Lorentz vector and position of the track.
Not intended for end user's use.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 272 of file KFitTrack.cc.
const HepPoint3D getPosition | ( | const int | flag = KFitConst::kAfterFit | ) | const |
Get a position of the track.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 164 of file KFitTrack.cc.
const HepPoint3D getVertex | ( | void | ) | const |
Get a vertex position associated to the track.
Definition at line 194 of file KFitTrack.cc.
const HepSymMatrix getVertexError | ( | void | ) | const |
Get a vertex error matrix associated to the track.
Definition at line 201 of file KFitTrack.cc.
Operator: assignment operator.
Definition at line 79 of file KFitTrack.cc.
void setCharge | ( | const double | q | ) |
Set a charge of the track.
q | charge of the track |
Definition at line 134 of file KFitTrack.cc.
void setError | ( | const CLHEP::HepSymMatrix & | e, |
const int | flag = KFitConst::kBeforeFit |
||
) |
Set an error matrix of the track.
e | error matrix of the track |
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 121 of file KFitTrack.cc.
void setMomentum | ( | const CLHEP::HepLorentzVector & | p, |
const int | flag = KFitConst::kBeforeFit |
||
) |
Set a Lorentz vector of the track.
p | Lorentz vector of the track |
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 95 of file KFitTrack.cc.
void setPosition | ( | const HepPoint3D & | x, |
const int | flag = KFitConst::kBeforeFit |
||
) |
Set a position of the track.
x | position of the track |
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 109 of file KFitTrack.cc.
void setVertex | ( | const HepPoint3D & | v | ) |
Set a vertex position associated to the track.
v | vertex position associated to the track |
Definition at line 141 of file KFitTrack.cc.
void setVertexError | ( | const CLHEP::HepSymMatrix & | ve | ) |
Set a vertex error matrix associated to the track.
ve | vertex error matrix associated to the track |
Definition at line 148 of file KFitTrack.cc.
|
private |
Charge of the track.
Definition at line 187 of file KFitTrack.h.
|
private |
Mass of the track.
Definition at line 189 of file KFitTrack.h.
|
private |
Lorentz vector, position, and error matrix of the track after the fit.
Definition at line 184 of file KFitTrack.h.
|
private |
Lorentz vector, position, and error matrix of the track before the fit.
Definition at line 181 of file KFitTrack.h.
|
private |
Vertex position associated to the track.
Definition at line 192 of file KFitTrack.h.
|
private |
Vertex error matrix associated to the track.
Definition at line 194 of file KFitTrack.h.