 |
Belle II Software
release-05-01-25
|
12 #include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
14 #include <analysis/dataobjects/Particle.h>
16 namespace TreeFitter {
19 class RecoTrack :
public RecoParticle {
47 virtual int dimM()
const override {
return 5 ; }
50 virtual int type()
const override {
return kRecoTrack ; }
58 alist.push_back(Constraint(
this, Constraint::track, depth,
dimM(), 1)) ;
82 Eigen::Matrix<double, 1, 5>
m_params;
ErrCode updFltToMother(const FitParams &fitparams)
update flight length to mother
ErrCode initCovariance(FitParams &fitparams) const override
init covariance matrix of this particle constraint
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config)
default constructor
abstract errorocode be aware that the default is succes
Class to store and manage fitparams (statevector)
virtual ~RecoTrack()
destructor
virtual int nFinalChargedCandidates() const override
number of final charged candidates
Values of the result of a track fit with a given particle hypothesis.
RecoTrack(Belle2::Particle *bc, const ParticleBase *mother)
constructor
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init with mother particle (replacing initPar2)
Eigen::Matrix< double, 1, 5 > m_params
column vector to store the measurement
virtual ErrCode projectRecoConstraint(const FitParams &, Projection &) const override
project the constraint (calculate residuals)
const Belle2::TrackFitResult * m_trackfit
trackfit result from reconstruction
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init without mother particle
virtual int dimM() const override
dimension (5)
Eigen::Matrix< double, 5, 5 > m_covariance
only lower triangle filled!
std::vector< Constraint > constraintlist
alias
double m_bfield
B field along z
void setFlightLength(double flt)
setter for the flight length
virtual int type() const override
type of the constraint
Class to store reconstructed particles.
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add to the list of constraints
const ParticleBase * mother() const
getMother() / hasMother()
bool m_cached
flag to mark the particle as initialised
ErrCode updateParams(double flt)
updated the cahed parameters
ErrCode updFltToMotherCopy(const FitParams *fitparams)
update m_flt
double m_flt
helix arc length at vertex
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...