10#include <analysis/VertexFitting/TreeFitter/FitParams.h>
11#include <analysis/VertexFitting/TreeFitter/FitParameterDimensionException.h>
22 m_dimensionReduction(0),
23 m_nConstraintsVec(dim, 0),
25 m_globalCovariance(dim, dim)
39 Eigen::Matrix < double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE >::Zero(
m_dim,
m_dim);
49 for (
int row = 0; row <
m_dim; ++row) {
60 const std::string error_string =
61 "Not enough constraints for this fit. Try adding a mass or beam constraint. constraints: " + std::to_string(
62 m_nConstraints) +
" parameters to extract: " + std::to_string(
m_dim) +
" ndf: " + std::to_string(ndf);
exception template, runtime_error implements what()
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > m_globalState
vector holding all parameters of this fit
int m_dim
dimension of statevector
std::vector< int > m_nConstraintsVec
vector with the number of constraints per parameter
bool testCovariance() const
test if the covariance makes sense
int nDof() const
get number of degrees of freedom
void resetStateVector()
reset the statevector
int m_nConstraints
number of constraints
Eigen::Matrix< double, -1, -1, 0, MAX_MATRIX_SIZE, MAX_MATRIX_SIZE > m_globalCovariance
covariance of the global state
void resetCovariance()
reset the statevector