11#include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
24 bool massconstraint =
false);
51 virtual int type()
const override {
return kComposite ; }
71 alist.push_back(
Constraint(
this, Constraint::composite, depth,
dimM())) ;
72 alist.push_back(
Constraint(
this, Constraint::geometric, depth, 3)) ;
74 alist.push_back(
Constraint(
this, Constraint::mass, depth, 1, 3));
Class to store reconstructed particles.
virtual bool hasPosition() const override
return true FIXME
virtual ~Composite()
destructor
int dimM() const
get dimension of measurement
virtual int tauIndex() const override
get tau (lifetime) index in statevector
Composite(Belle2::Particle *bc, const ParticleBase *mother, const ConstraintConfiguration &config, bool massconstraint=false)
constructor
virtual int dim() const override
get dimension of constraint
void updateParams()
update changed params
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
project this constraint
bool m_massconstraint
flag
Eigen::Matrix< double, 7, 1 > m_params
column vector to store the measurement
virtual int momIndex() const override
get momentum index in statevector
Eigen::Matrix< double, -1, -1, 0, 7, 7 > m_covariance
only lower triangle filled!
virtual int type() const override
get type
virtual bool hasEnergy() const override
return of this constraint/particle has an energy component
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add this to list
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle in case it has a mother
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle in case it has no mother
ErrCode projectComposite(const FitParams &fitparams, Projection &p) const
project this particle constraint
virtual int posIndex() const override
get position index in statevectof x,y,z,tau,px,py,pz
constraint configuration class
class to manage the order of constraints and their filtering
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
abstract errorocode be aware that the default is success
Class to store and manage fitparams (statevector)
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config=nullptr)
default constructor
int index() const
get index
const ParticleBase * mother() const
getMother() / hasMother()
std::vector< Constraint > constraintlist
alias
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...