Belle II Software light-2406-ragdoll
|
does the calculation of the gain matrix, updates the cov and fitpars More...
#include <KalmanCalculator.h>
Public Member Functions | |
KalmanCalculator (int sizeRes, int sizeState) | |
constructor | |
void | updateState (FitParams &fitparams) |
update statevector | |
void | updateState (FitParams &fitparams, FitParams &oldState) |
update statevector | |
void | updateCovariance (FitParams &fitparams) |
update the statevectors covariance | |
double | getChiSquare () const |
get chi2 of this iteration | |
ErrCode | calculateGainMatrix (const Eigen::Matrix< double, -1, 1, 0, 7, 1 > &residuals, const Eigen::Matrix< double, -1, -1, 0, 7, MAX_MATRIX_SIZE > &G, const FitParams &fitparams, const Eigen::Matrix< double, -1, -1, 0, 7, 7 > *V=0, double weight=1) |
init the kalman machienery | |
double | getConstraintDim () const |
get dimension of the constraint | |
Private Attributes | |
int | m_constrDim |
dimension of the constraint | |
double | m_chisq |
chi2 | |
Eigen::Matrix< double, -1, 1, 0, 7, 1 > | m_res |
we know the max sizes of the matrices we assume the tree is smaller than MAX_MATRIX_SIZE parameters and the largest constraint is the track constraint with 7 | |
Eigen::Matrix< double, -1, -1, 0, 7, MAX_MATRIX_SIZE > | m_G |
G former H, transforms covraince of {residuals}<->{x,p,E}. | |
Eigen::Matrix< double, -1, -1, 0, 7, 7 > | m_R |
R residual covariance. | |
Eigen::Matrix< double, -1, -1, 0, 7, 7 > | m_Rinverse |
R inverse. | |
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, 7 > | m_K |
K kalman gain matrix. | |
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, 7 > | m_CGt |
C times G^t | |
does the calculation of the gain matrix, updates the cov and fitpars
Definition at line 23 of file KalmanCalculator.h.
KalmanCalculator | ( | int | sizeRes, |
int | sizeState | ||
) |
constructor
Definition at line 14 of file KalmanCalculator.cc.
ErrCode calculateGainMatrix | ( | const Eigen::Matrix< double, -1, 1, 0, 7, 1 > & | residuals, |
const Eigen::Matrix< double, -1, -1, 0, 7, MAX_MATRIX_SIZE > & | G, | ||
const FitParams & | fitparams, | ||
const Eigen::Matrix< double, -1, -1, 0, 7, 7 > * | V = 0 , |
||
double | weight = 1 |
||
) |
init the kalman machienery
Definition at line 31 of file KalmanCalculator.cc.
|
inline |
|
inline |
TREEFITTER_NO_STACK_WARNING void updateCovariance | ( | FitParams & | fitparams | ) |
update the statevectors covariance
Definition at line 87 of file KalmanCalculator.cc.
void updateState | ( | FitParams & | fitparams | ) |
update statevector
Definition at line 65 of file KalmanCalculator.cc.
update statevector
Definition at line 73 of file KalmanCalculator.cc.
|
private |
C times G^t
Definition at line 89 of file KalmanCalculator.h.
|
private |
chi2
Definition at line 60 of file KalmanCalculator.h.
|
private |
dimension of the constraint
Definition at line 57 of file KalmanCalculator.h.
|
private |
G former H, transforms covraince of {residuals}<->{x,p,E}.
Definition at line 77 of file KalmanCalculator.h.
|
private |
K kalman gain matrix.
Definition at line 86 of file KalmanCalculator.h.
|
private |
R residual covariance.
Definition at line 80 of file KalmanCalculator.h.
|
private |
we know the max sizes of the matrices we assume the tree is smaller than MAX_MATRIX_SIZE parameters and the largest constraint is the track constraint with 7
-> Eigen puts this on the stack
Eigen::Matrix < double, col, row, ColMajor, maxCol, maxRow> -1 = Eigen::Dynamic 0 = Eigen::ColMajor (don't touch) vector holding the residuals
Definition at line 74 of file KalmanCalculator.h.
|
private |
R inverse.
Definition at line 83 of file KalmanCalculator.h.