GENFIT
Rev:NoNumberAvailable
|
Point on trajectory. More...
#include <GblPoint.h>
Public Member Functions | |
GblPoint (const TMatrixD &aJacobian) | |
Create a point. More... | |
GblPoint (const SMatrix55 &aJacobian) | |
virtual | ~GblPoint () |
void | addMeasurement (const TMatrixD &aProjection, const TVectorD &aResiduals, const TVectorD &aPrecision, double minPrecision=0.) |
Add a measurement to a point. More... | |
void | addMeasurement (const TMatrixD &aProjection, const TVectorD &aResiduals, const TMatrixDSym &aPrecision, double minPrecision=0.) |
Add a measurement to a point. More... | |
void | addMeasurement (const TVectorD &aResiduals, const TVectorD &aPrecision, double minPrecision=0.) |
Add a measurement to a point. More... | |
void | addMeasurement (const TVectorD &aResiduals, const TMatrixDSym &aPrecision, double minPrecision=0.) |
Add a measurement to a point. More... | |
unsigned int | hasMeasurement () const |
Check for measurement at a point. More... | |
void | getMeasurement (SMatrix55 &aProjection, SVector5 &aResiduals, SVector5 &aPrecision) const |
Retrieve measurement of a point. More... | |
void | getMeasTransformation (TMatrixD &aTransformation) const |
Get measurement transformation (from diagonalization). More... | |
void | addScatterer (const TVectorD &aResiduals, const TVectorD &aPrecision) |
Add a (thin) scatterer to a point. More... | |
void | addScatterer (const TVectorD &aResiduals, const TMatrixDSym &aPrecision) |
bool | hasScatterer () const |
void | getScatterer (SMatrix22 &aTransformation, SVector2 &aResiduals, SVector2 &aPrecision) const |
void | getScatTransformation (TMatrixD &aTransformation) const |
void | addLocals (const TMatrixD &aDerivatives) |
unsigned int | getNumLocals () const |
const TMatrixD & | getLocalDerivatives () const |
void | addGlobals (const std::vector< int > &aLabels, const TMatrixD &aDerivatives) |
unsigned int | getNumGlobals () const |
std::vector< int > | getGlobalLabels () const |
const TMatrixD & | getGlobalDerivatives () const |
void | setLabel (unsigned int aLabel) |
unsigned int | getLabel () const |
void | setOffset (int anOffset) |
int | getOffset () const |
const SMatrix55 & | getP2pJacobian () const |
void | addPrevJacobian (const SMatrix55 &aJac) |
void | addNextJacobian (const SMatrix55 &aJac) |
void | getDerivatives (int aDirection, SMatrix22 &matW, SMatrix22 &matWJ, SVector2 &vecWd) const |
void | printPoint (unsigned int level=0) const |
Private Attributes | |
unsigned int | theLabel |
Label identifying point. More... | |
int | theOffset |
Offset number at point if not negative (else interpolation needed) More... | |
SMatrix55 | p2pJacobian |
Point-to-point jacobian from previous point. More... | |
SMatrix55 | prevJacobian |
Jacobian to previous scatterer (or first measurement) More... | |
SMatrix55 | nextJacobian |
Jacobian to next scatterer (or last measurement) More... | |
unsigned int | measDim |
Dimension of measurement (1-5), 0 indicates absence of measurement. More... | |
SMatrix55 | measProjection |
Projection from measurement to local system. More... | |
SVector5 | measResiduals |
Measurement residuals. More... | |
SVector5 | measPrecision |
Measurement precision (diagonal of inverse covariance matrix) More... | |
bool | transFlag |
Transformation exists? More... | |
TMatrixD | measTransformation |
Transformation of diagonalization (of meas. precision matrix) More... | |
bool | scatFlag |
Scatterer present? More... | |
SMatrix22 | scatTransformation |
Transformation of diagonalization (of scat. precision matrix) More... | |
SVector2 | scatResiduals |
Scattering residuals (initial kinks if iterating) More... | |
SVector2 | scatPrecision |
Scattering precision (diagonal of inverse covariance matrix) More... | |
TMatrixD | localDerivatives |
Derivatives of measurement vs additional local (fit) parameters. More... | |
std::vector< int > | globalLabels |
Labels of global (MP-II) derivatives. More... | |
TMatrixD | globalDerivatives |
Derivatives of measurement vs additional global (MP-II) parameters. More... | |
Point on trajectory.
User supplied point on (initial) trajectory.
Must have jacobian for propagation from previous point. May have:
Definition at line 48 of file GblPoint.h.
gbl::GblPoint::GblPoint | ( | const TMatrixD & | aJacobian | ) |
Create a point.
Create point on (initial) trajectory. Needs transformation jacobian from previous point.
[in] | aJacobian | Transformation jacobian from previous point |
Definition at line 18 of file GblPoint.cc.
References p2pJacobian.
gbl::GblPoint::GblPoint | ( | const SMatrix55 & | aJacobian | ) |
Definition at line 29 of file GblPoint.cc.
|
virtual |
Definition at line 35 of file GblPoint.cc.
void gbl::GblPoint::addGlobals | ( | const std::vector< int > & | aLabels, |
const TMatrixD & | aDerivatives | ||
) |
Referenced by genfit::GblFitterInfo::constructGblPoint(), and genfit::GFGbl::processTrackWithRep().
void gbl::GblPoint::addLocals | ( | const TMatrixD & | aDerivatives | ) |
Referenced by genfit::GblFitterInfo::constructGblPoint().
void gbl::GblPoint::addMeasurement | ( | const TMatrixD & | aProjection, |
const TVectorD & | aResiduals, | ||
const TVectorD & | aPrecision, | ||
double | minPrecision = 0. |
||
) |
Add a measurement to a point.
Add measurement (in meas. system) with diagonal precision (inverse covariance) matrix. ((up to) 2D: position, 4D: slope+position, 5D: curvature+slope+position)
[in] | aProjection | Projection from local to measurement system |
[in] | aResiduals | Measurement residuals |
[in] | aPrecision | Measurement precision (diagonal) |
[in] | minPrecision | Minimal precision to accept measurement |
Definition at line 47 of file GblPoint.cc.
References measDim, measPrecision, measProjection, and measResiduals.
Referenced by genfit::GblFitterInfo::constructGblPoint(), and genfit::GFGbl::processTrackWithRep().
void gbl::GblPoint::addMeasurement | ( | const TMatrixD & | aProjection, |
const TVectorD & | aResiduals, | ||
const TMatrixDSym & | aPrecision, | ||
double | minPrecision = 0. |
||
) |
Add a measurement to a point.
Add measurement (in meas. system) with arbitrary precision (inverse covariance) matrix. Will be diagonalized. ((up to) 2D: position, 4D: slope+position, 5D: curvature+slope+position)
[in] | aProjection | Projection from local to measurement system |
[in] | aResiduals | Measurement residuals |
[in] | aPrecision | Measurement precision (matrix) |
[in] | minPrecision | Minimal precision to accept measurement |
Definition at line 72 of file GblPoint.cc.
References measDim, measPrecision, measProjection, measResiduals, measTransformation, and transFlag.
void gbl::GblPoint::addMeasurement | ( | const TVectorD & | aResiduals, |
const TVectorD & | aPrecision, | ||
double | minPrecision = 0. |
||
) |
Add a measurement to a point.
Add measurement in local system with diagonal precision (inverse covariance) matrix. ((up to) 2D: position, 4D: slope+position, 5D: curvature+slope+position)
[in] | aResiduals | Measurement residuals |
[in] | aPrecision | Measurement precision (diagonal) |
[in] | minPrecision | Minimal precision to accept measurement |
Definition at line 103 of file GblPoint.cc.
References measDim, measPrecision, measProjection, and measResiduals.
void gbl::GblPoint::addMeasurement | ( | const TVectorD & | aResiduals, |
const TMatrixDSym & | aPrecision, | ||
double | minPrecision = 0. |
||
) |
Add a measurement to a point.
Add measurement in local system with arbitrary precision (inverse covariance) matrix. Will be diagonalized. ((up to) 2D: position, 4D: slope+position, 5D: curvature+slope+position)
[in] | aResiduals | Measurement residuals |
[in] | aPrecision | Measurement precision (matrix) |
[in] | minPrecision | Minimal precision to accept measurement |
Definition at line 124 of file GblPoint.cc.
References measDim, measPrecision, measProjection, measResiduals, measTransformation, and transFlag.
void gbl::GblPoint::addNextJacobian | ( | const SMatrix55 & | aJac | ) |
Referenced by gbl::GblTrajectory::calcJacobians().
void gbl::GblPoint::addPrevJacobian | ( | const SMatrix55 & | aJac | ) |
void gbl::GblPoint::addScatterer | ( | const TVectorD & | aResiduals, |
const TVectorD & | aPrecision | ||
) |
Add a (thin) scatterer to a point.
Add scatterer with diagonal precision (inverse covariance) matrix. Changes local track direction.
[in] | aResiduals | Scatterer residuals |
[in] | aPrecision | Scatterer precision (diagonal of inverse covariance matrix) |
Definition at line 188 of file GblPoint.cc.
References scatFlag, scatPrecision, scatResiduals, and scatTransformation.
Referenced by genfit::GblFitterInfo::constructGblPoint(), and genfit::GFGbl::processTrackWithRep().
void gbl::GblPoint::addScatterer | ( | const TVectorD & | aResiduals, |
const TMatrixDSym & | aPrecision | ||
) |
const TMatrixD& gbl::GblPoint::getGlobalDerivatives | ( | ) | const |
std::vector<int> gbl::GblPoint::getGlobalLabels | ( | ) | const |
unsigned int gbl::GblPoint::getLabel | ( | ) | const |
const TMatrixD& gbl::GblPoint::getLocalDerivatives | ( | ) | const |
void gbl::GblPoint::getMeasTransformation | ( | TMatrixD & | aTransformation | ) | const |
Get measurement transformation (from diagonalization).
[out] | aTransformation | Transformation matrix |
Definition at line 171 of file GblPoint.cc.
References measDim, measTransformation, and transFlag.
void gbl::GblPoint::getMeasurement | ( | SMatrix55 & | aProjection, |
SVector5 & | aResiduals, | ||
SVector5 & | aPrecision | ||
) | const |
Retrieve measurement of a point.
[out] | aProjection | Projection from (diagonalized) measurement to local system |
[out] | aResiduals | Measurement residuals |
[out] | aPrecision | Measurement precision (diagonal) |
Definition at line 160 of file GblPoint.cc.
References measPrecision, measProjection, and measResiduals.
unsigned int gbl::GblPoint::getNumGlobals | ( | ) | const |
unsigned int gbl::GblPoint::getNumLocals | ( | ) | const |
int gbl::GblPoint::getOffset | ( | ) | const |
const SMatrix55& gbl::GblPoint::getP2pJacobian | ( | ) | const |
Referenced by gbl::GblTrajectory::calcJacobians().
void gbl::GblPoint::getScatterer | ( | SMatrix22 & | aTransformation, |
SVector2 & | aResiduals, | ||
SVector2 & | aPrecision | ||
) | const |
void gbl::GblPoint::getScatTransformation | ( | TMatrixD & | aTransformation | ) | const |
unsigned int gbl::GblPoint::hasMeasurement | ( | ) | const |
Check for measurement at a point.
Get dimension of measurement (0 = none).
Definition at line 150 of file GblPoint.cc.
References measDim.
Referenced by genfit::GblFitter::processTrackWithRep().
bool gbl::GblPoint::hasScatterer | ( | ) | const |
Referenced by genfit::GblFitter::processTrackWithRep().
void gbl::GblPoint::printPoint | ( | unsigned int | level = 0 | ) | const |
void gbl::GblPoint::setLabel | ( | unsigned int | aLabel | ) |
void gbl::GblPoint::setOffset | ( | int | anOffset | ) |
|
private |
Derivatives of measurement vs additional global (MP-II) parameters.
Definition at line 109 of file GblPoint.h.
|
private |
Labels of global (MP-II) derivatives.
Definition at line 108 of file GblPoint.h.
|
private |
Derivatives of measurement vs additional local (fit) parameters.
Definition at line 107 of file GblPoint.h.
|
private |
Dimension of measurement (1-5), 0 indicates absence of measurement.
Definition at line 97 of file GblPoint.h.
Referenced by addMeasurement(), getMeasTransformation(), and hasMeasurement().
|
private |
Measurement precision (diagonal of inverse covariance matrix)
Definition at line 100 of file GblPoint.h.
Referenced by addMeasurement(), and getMeasurement().
|
private |
Projection from measurement to local system.
Definition at line 98 of file GblPoint.h.
Referenced by addMeasurement(), and getMeasurement().
|
private |
Measurement residuals.
Definition at line 99 of file GblPoint.h.
Referenced by addMeasurement(), and getMeasurement().
|
private |
Transformation of diagonalization (of meas. precision matrix)
Definition at line 102 of file GblPoint.h.
Referenced by addMeasurement(), and getMeasTransformation().
|
private |
Jacobian to next scatterer (or last measurement)
Definition at line 96 of file GblPoint.h.
|
private |
Point-to-point jacobian from previous point.
Definition at line 94 of file GblPoint.h.
Referenced by GblPoint().
|
private |
Jacobian to previous scatterer (or first measurement)
Definition at line 95 of file GblPoint.h.
|
private |
|
private |
Scattering precision (diagonal of inverse covariance matrix)
Definition at line 106 of file GblPoint.h.
Referenced by addScatterer().
|
private |
Scattering residuals (initial kinks if iterating)
Definition at line 105 of file GblPoint.h.
Referenced by addScatterer().
|
private |
Transformation of diagonalization (of scat. precision matrix)
Definition at line 104 of file GblPoint.h.
Referenced by addScatterer().
|
private |
Label identifying point.
Definition at line 92 of file GblPoint.h.
|
private |
Offset number at point if not negative (else interpolation needed)
Definition at line 93 of file GblPoint.h.
|
private |
Transformation exists?
Definition at line 101 of file GblPoint.h.
Referenced by addMeasurement(), and getMeasTransformation().