11#include <analysis/VertexFitting/TreeFitter/EigenStackConfig.h>
53 Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > &
getCovariance()
59 const Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > &
getCovariance()
const
68 const Eigen::Matrix < double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > &
getStateVector()
const
106 typedef std::vector< std::pair<const ParticleBase*, int> >
indexmap;
Class to store and manage fitparams (statevector)
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > m_globalState
vector holding all parameters of this fit
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > & getStateVector()
getter for the fit parameters/statevector
void addChiSquare(double chisq, int nconstraints)
increment global chi2
int m_dim
dimension of statevector
std::vector< int > m_nConstraintsVec
vector with the number of constraints per parameter
FitParams & operator=(const FitParams &other)
Assignment operator.
bool testCovariance() const
test if the covariance makes sense
double chiSquare() const
get chi2 of statevector
int nDof() const
get number of degrees of freedom
const Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > & getCovariance() const
const getter for the states covariance
int getDimensionOfState() const
get the states dimension
int m_dimensionReduction
reduce the ndf used in the chi2 by this count
std::vector< std::pair< const ParticleBase *, int > > indexmap
index map
void resetStateVector()
reset the statevector
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > & getCovariance()
getter for the states covariance
void resetChiSquare()
reset chi2
int m_nConstraints
number of constraints
const Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > & getStateVector() const
const 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
void resetCovariance()
reset the statevector
FitParams(const FitParams &toCopy)
copy constructor