11#include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
13#include <analysis/dataobjects/Particle.h>
46 virtual int dimM()
const override {
return 5 ; }
49 virtual int type()
const override {
return kRecoTrack ; }
57 alist.push_back(
Constraint(
this, Constraint::track, depth,
dimM(), 1)) ;
Class to store reconstructed particles.
Values of the result of a track fit with a given particle hypothesis.
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...
base for RecoPhoton RecoTrack
representation of all charged final states FIXME rename since this name is taken in tracking
virtual int nFinalChargedCandidates() const override
number of final charged candidates
virtual ~RecoTrack()
destructor
ErrCode initCovariance(FitParams &fitparams) const override
init covariance matrix of this particle constraint
const Belle2::TrackFitResult * m_trackfit
trackfit result from reconstruction
Eigen::Matrix< double, 1, 5 > m_params
column vector to store the measurement
const float m_momentumScalingFactor
scale the momenta by this correction factor
virtual int type() const override
type of the constraint
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add to the list of constraints
virtual int dimM() const override
dimension (5)
virtual ErrCode projectRecoConstraint(const FitParams &, Projection &) const override
project the constraint (calculate residuals)
ErrCode updateParams(double flt)
updated the cached parameters
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init with mother particle (replacing initPar2)
double m_bfield
B field along z
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init without mother particle
ErrCode updFltToMother(const FitParams &fitparams)
update flight length to mother
double m_flt
helix arc length at vertex
void setFlightLength(double flt)
setter for the flight length
Eigen::Matrix< double, 5, 5 > m_covariance
only lower triangle filled!
ErrCode updFltToMotherCopy(const FitParams *fitparams)
update m_flt
bool m_cached
flag to mark the particle as initialised