Belle II Software development
|
MakeMotherKFit is a class to build mother particle from kinematically fitted daughters. More...
#include <MakeMotherKFit.h>
Public Member Functions | |
MakeMotherKFit (void) | |
Construct an object with no argument. | |
~MakeMotherKFit (void) | |
Destruct the object. | |
enum KFitError::ECode | addTrack (const KFitTrack &kp) |
Add a track to the make-mother object. | |
enum KFitError::ECode | addTrack (const CLHEP::HepLorentzVector &p, const HepPoint3D &x, const CLHEP::HepSymMatrix &e, const double q, const int flag=KFitConst::kAfterFit) |
Add a track to the make-mother object with specifying its momentum, position, error matrix, and charge. | |
enum KFitError::ECode | setMagneticField (const double mf) |
Change a magnetic field from the default value KFitConst::kDefaultMagneticField. | |
enum KFitError::ECode | setVertex (const HepPoint3D &v) |
Set a vertex position of the mother particle. | |
enum KFitError::ECode | setVertexError (const CLHEP::HepSymMatrix &e) |
Set a vertex error matrix of the mother particle. | |
enum KFitError::ECode | setTrackVertexError (const CLHEP::HepMatrix &e) |
Set a vertex error matrix of the child particle in the addTrack'ed order. | |
enum KFitError::ECode | setTrackZeroVertexError (void) |
Indicate no vertex uncertainty in the child particle in the addTrack'ed order. | |
enum KFitError::ECode | setCorrelation (const CLHEP::HepMatrix &e) |
Set a correlation matrix. | |
enum KFitError::ECode | setZeroCorrelation (void) |
Indicate no correlation between tracks. | |
enum KFitError::ECode | setFlagAtDecayPoint (const bool flag) |
Set a flag to control computational point for the mother particle property at the decay point or not. | |
enum KFitError::ECode | setFlagBeforeAfter (const int flag) |
Set a flag to control computational parameters for the mother particle property before or after the fit. | |
enum KFitError::ECode | getErrorCode (void) const |
Get a code of the last error. | |
const KFitTrack | getMother (void) const |
Get a track object of the mother particle. | |
const CLHEP::HepLorentzVector | getMotherMomentum (void) const |
Get a Lorentz vector of the mother particle. | |
const HepPoint3D | getMotherPosition (void) const |
Get a position of the mother particle. | |
const CLHEP::HepSymMatrix | getMotherError (void) const |
Get an error matrix of the mother particle. | |
enum KFitError::ECode | doMake (void) |
Perform a reconstruction of mother particle. | |
Private Member Functions | |
void | calculateError (CLHEP::HepSymMatrix *Ec) const |
Make a matrix to calculate error matrix of the mother particle. | |
void | calculateDELMDELC (CLHEP::HepMatrix *e) const |
Make delMdelC to calculate error matrix of the mother particle. | |
Private Attributes | |
enum KFitError::ECode | m_ErrorCode |
Error code. | |
bool | m_FlagAtDecayPoint |
Flag controlled by setFlagAtDecayPoint(). | |
int | m_FlagBeforeAfter |
Flag controlled by setFlagBeforeAfter(). | |
bool | m_FlagVertexError |
Flag to indicate if the vertex error matrix of the mother particle is preset. | |
bool | m_FlagCorrelation |
Flag to indicate if the correlation matrix among the child particles is preset. | |
bool | m_FlagTrackVertexError |
Flag to indicate if the vertex error matrix of the child particle is preset. | |
double | m_MagneticField |
Magnetic field. | |
int | m_TrackCount |
Number of tracks. | |
std::vector< KFitTrack > | m_Tracks |
Array of track objects of the child particles. | |
std::vector< CLHEP::HepMatrix > | m_TrackVertexError |
Array of vertex error matrices of the child particles. | |
std::vector< CLHEP::HepMatrix > | m_Correlation |
Array of correlation matrices among the child particles. | |
CLHEP::Hep3Vector | m_Vertex |
Vertex position of the mother particle. | |
CLHEP::HepSymMatrix | m_VertexError |
Vertex error matrix of the mother particle. | |
double | m_Charge |
Charge of the mother particle. | |
KFitTrack | m_Mother |
Track object of the mother particle. | |
MakeMotherKFit is a class to build mother particle from kinematically fitted daughters.
Definition at line 40 of file MakeMotherKFit.h.
MakeMotherKFit | ( | void | ) |
Construct an object with no argument.
Definition at line 19 of file MakeMotherKFit.cc.
enum KFitError::ECode addTrack | ( | const CLHEP::HepLorentzVector & | p, |
const HepPoint3D & | x, | ||
const CLHEP::HepSymMatrix & | e, | ||
const double | q, | ||
const int | flag = KFitConst::kAfterFit |
||
) |
Add a track to the make-mother object with specifying its momentum, position, error matrix, and charge.
This function internally calls addTrack(const KFitTrack &kp).
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 49 of file MakeMotherKFit.cc.
enum KFitError::ECode addTrack | ( | const KFitTrack & | kp | ) |
Add a track to the make-mother object.
kp | object of the track |
Definition at line 39 of file MakeMotherKFit.cc.
|
private |
Make delMdelC to calculate error matrix of the mother particle.
e | delMdelC container |
Definition at line 306 of file MakeMotherKFit.cc.
|
private |
Make a matrix to calculate error matrix of the mother particle.
Ec | error matrix container |
Definition at line 254 of file MakeMotherKFit.cc.
enum KFitError::ECode doMake | ( | void | ) |
Perform a reconstruction of mother particle.
Definition at line 192 of file MakeMotherKFit.cc.
enum KFitError::ECode getErrorCode | ( | void | ) | const |
const KFitTrack getMother | ( | void | ) | const |
Get a track object of the mother particle.
Definition at line 164 of file MakeMotherKFit.cc.
const HepSymMatrix getMotherError | ( | void | ) | const |
Get an error matrix of the mother particle.
Definition at line 185 of file MakeMotherKFit.cc.
const HepLorentzVector getMotherMomentum | ( | void | ) | const |
Get a Lorentz vector of the mother particle.
Definition at line 171 of file MakeMotherKFit.cc.
const HepPoint3D getMotherPosition | ( | void | ) | const |
Get a position of the mother particle.
Definition at line 178 of file MakeMotherKFit.cc.
enum KFitError::ECode setCorrelation | ( | const CLHEP::HepMatrix & | e | ) |
Set a correlation matrix.
e | (7x7) correlation matrix |
Definition at line 119 of file MakeMotherKFit.cc.
enum KFitError::ECode setFlagAtDecayPoint | ( | const bool | flag | ) |
Set a flag to control computational point for the mother particle property at the decay point or not.
flag | true for yes, false for no |
Definition at line 143 of file MakeMotherKFit.cc.
enum KFitError::ECode setFlagBeforeAfter | ( | const int | flag | ) |
Set a flag to control computational parameters for the mother particle property before or after the fit.
flag | KFitConst::kBeforeFit or KFitConst::kAfterFit |
Definition at line 151 of file MakeMotherKFit.cc.
enum KFitError::ECode setMagneticField | ( | const double | mf | ) |
Change a magnetic field from the default value KFitConst::kDefaultMagneticField.
mf | magnetic field to set |
Definition at line 63 of file MakeMotherKFit.cc.
enum KFitError::ECode setTrackVertexError | ( | const CLHEP::HepMatrix & | e | ) |
Set a vertex error matrix of the child particle in the addTrack'ed order.
e | (3x7) vertex error matrix |
Definition at line 95 of file MakeMotherKFit.cc.
enum KFitError::ECode setTrackZeroVertexError | ( | void | ) |
Indicate no vertex uncertainty in the child particle in the addTrack'ed order.
Definition at line 111 of file MakeMotherKFit.cc.
enum KFitError::ECode setVertex | ( | const HepPoint3D & | v | ) |
Set a vertex position of the mother particle.
v | vertex position |
Definition at line 71 of file MakeMotherKFit.cc.
enum KFitError::ECode setVertexError | ( | const CLHEP::HepSymMatrix & | e | ) |
Set a vertex error matrix of the mother particle.
e | (3x3) vertex error matrix |
Definition at line 79 of file MakeMotherKFit.cc.
enum KFitError::ECode setZeroCorrelation | ( | void | ) |
Indicate no correlation between tracks.
Definition at line 135 of file MakeMotherKFit.cc.
|
private |
Charge of the mother particle.
Definition at line 180 of file MakeMotherKFit.h.
|
private |
Array of correlation matrices among the child particles.
Definition at line 170 of file MakeMotherKFit.h.
|
private |
Error code.
Definition at line 146 of file MakeMotherKFit.h.
|
private |
Flag controlled by setFlagAtDecayPoint().
Definition at line 149 of file MakeMotherKFit.h.
|
private |
Flag controlled by setFlagBeforeAfter().
Definition at line 151 of file MakeMotherKFit.h.
|
private |
Flag to indicate if the correlation matrix among the child particles is preset.
Definition at line 155 of file MakeMotherKFit.h.
|
private |
Flag to indicate if the vertex error matrix of the child particle is preset.
Definition at line 157 of file MakeMotherKFit.h.
|
private |
Flag to indicate if the vertex error matrix of the mother particle is preset.
Definition at line 153 of file MakeMotherKFit.h.
|
private |
Magnetic field.
Definition at line 160 of file MakeMotherKFit.h.
|
private |
Track object of the mother particle.
Definition at line 182 of file MakeMotherKFit.h.
|
private |
Number of tracks.
Definition at line 162 of file MakeMotherKFit.h.
|
private |
Array of track objects of the child particles.
Definition at line 166 of file MakeMotherKFit.h.
|
private |
Array of vertex error matrices of the child particles.
Definition at line 168 of file MakeMotherKFit.h.
|
private |
Vertex position of the mother particle.
Definition at line 174 of file MakeMotherKFit.h.
|
private |
Vertex error matrix of the mother particle.
Definition at line 176 of file MakeMotherKFit.h.