11#include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
44 virtual bool hasEnergy()
const override {
return false; }
47 virtual int dim()
const override {
return m_dim; }
50 virtual int type()
const override {
return kRecoKlong ; }
55 alist.push_back(
Constraint(
this, Constraint::klong, depth,
dimM())) ;
Class to store reconstructed particles.
class to manage the order of constraints and their filtering
abstract errorocode be aware that the default is success
Class to store and manage fitparams (statevector)
base class for all particles
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...
representation of the Klong constraint
bool m_useEnergy
has energy ins statevector
Eigen::Matrix< double, 4, 4 > m_covariance
covariance (x_c,y_c,z_c,E_c) of measured pars
ErrCode initCovariance(FitParams &fitparams) const override
init covariance
virtual int dim() const override
set the size of the particle in the statevector
ErrCode initParams()
update or init params
virtual ~RecoKlong()
destructor
virtual int type() const override
type
const int m_dim
dimension of residuals and 'width' of H
virtual bool hasEnergy() const override
how should the energy be calculated ? from momentum or from E ?
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add to list
int m_i3
another random index
virtual int dimM() const override
sets the size of the corresponding residual projection
int m_i1
index with the highest momentum.
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle with mother
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
static bool useEnergy(Belle2::Particle &cand)
has energy in fit params?
bool m_init
was initialized*
ErrCode projectRecoConstraint(const FitParams &fitparams, Projection &p) const override
project klong constraint
Eigen::Matrix< double, 1, 4 > m_clusterPars
constrains measured params (x_c, y_c, z_c, E_c)
base for RecoPhoton RecoTrack