 |
Belle II Software
release-05-01-25
|
12 #include <analysis/VertexFitting/TreeFitter/EigenStackConfig.h>
16 namespace TreeFitter {
54 Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > &
getCovariance()
60 const Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > &
getCovariance()
const
69 const Eigen::Matrix < double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > &
getStateVector()
const
146 typedef std::vector< std::pair<const ParticleBase*, int> >
indexmap;
171 Eigen::Matrix < double, -1, 1, 0, MAX_MATRIX_SIZE, 1 >
m_globalState;
174 Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE >
m_globalCovariance;
int nDof() const
get numer of degrees of freedom
void resetChiSquare()
reset chi2
int & incrementNConstraintsVec(int row)
increment nconstraints vec
int nConstraints() const
get number of constraints
void resetStateVector()
reset the staevector
int getDimensionOfState() const
get the states dimension
void resizeAndResetStateAndCov(int newdim)
resize and reset statevec and its covariance
bool testCov() const
check if global cov makes sense
double chiSquare() const
get chi2 of statevector
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > & getCovariance()
getter for the states covariance
double & getRefToElementOfStateVec(int row)
get a reference to an element of the state vector todo replace by setter?
void resize(int newdim)
resize (enlarge!) the statevector
Class to store and manage fitparams (statevector)
std::vector< std::pair< const ParticleBase *, int > > indexmap
index map
std::vector< int > m_nConstraintsVec
vector with the number of constraints per parameter
int getNConstraints()
get dimension sum of constraints
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > & getStateVector()
getter for the fit parameters/statevector
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > m_globalCovariance
covariance of the global state
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > m_globalState
vector holding all parameters of this fit
int dim() const
get dimension od statevector
void addNConstraint(int value)
some constraints are special the geometric for example
void resetPar()
set statevector elements to 0
int & nConstraintsVec(int row)
returns a reference(!) to the number of constraints for rows parameter.
double getCovDiaElement(int counter)
get an covaraince diagonal element
int m_dim
dimension of statevector
bool testCovariance() const
test if the covariance makes sense
int m_nConstraints
number of conatraints
int m_dimensionReduction
reduce the ndf used in the chi2 by this count
void addChiSquare(double chisq, int nconstraints)
increment global chi2
FitParams & operator=(const FitParams &other)
Assignment operator.
void resetCovariance()
reset the staevector