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