 |
Belle II Software
release-05-02-19
|
13 #include <analysis/VertexFitting/TreeFitter/ErrCode.h>
15 namespace TreeFitter {
28 enum Type { unknown = 0,
54 return m_type == rhs.m_type;
61 unsigned int dim()
const {
return m_dim; }
95 virtual ErrCode
project(
const FitParams& fitpar, Projection& p)
const;
98 virtual ErrCode
filter(FitParams& fitpar);
104 std::string
name()
const;
int m_maxNIter
maximum number of iterations for non-linear constraints
unsigned int m_dim
dimension of constraint
Type type() const
get type of constraint
int m_depth
chi2 coming from the constraint
const ParticleBase * m_node
particle behind the constraint
bool isLinear() const
is this a linear constraint
int m_weight
weight of this constraint currently we set them all to unity
base class for all particles
virtual ErrCode filterWithReference(FitParams &fitpar, const FitParams &oldState)
filter this constraint
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
void setDim(unsigned int d)
set dimension of cosntraint
Type m_type
type of constraint
unsigned int dim() const
get dimension of constraint
class to manage the order of contraints and their filtering
void setNIter(unsigned int d)
set max number of iterations for non lin constraint
virtual ErrCode filter(FitParams &fitpar)
filter this constraint
void setWeight(int w)
used to be able to weigth the cosntraints
virtual ErrCode project(const FitParams &fitpar, Projection &p) const
call the constraints projection function
std::string name() const
get name of constraint
bool operator<(const Constraint &rhs) const
operator used to sort the constraints
virtual ~Constraint()
destructor
bool operator==(const Constraint &rhs) const
operator
unsigned int nIter() const
get maximum number of iterations for non in contraint