 |
Belle II Software
release-05-02-19
|
12 #include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
13 #include <analysis/VertexFitting/TreeFitter/RecoTrack.h>
15 namespace TreeFitter {
18 class InternalTrack :
public ParticleBase {
25 const ConstraintConfiguration& config,
28 bool forceMassConstraint
50 virtual int dim()
const override;
53 virtual int type()
const override {
return kInternalTrack ; }
56 virtual int posIndex()
const override;
59 virtual int tauIndex()
const override;
62 virtual int momIndex()
const override;
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle in case it has a mother
virtual int tauIndex() const override
tau index in fit params only if it has a mother
void setMassConstraint(bool b)
set mass constraint flag
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config)
default constructor
ErrCode initMomentum(FitParams &fitparams) const
init momentum of *this and daughters
virtual int type() const override
type
abstract errorocode be aware that the default is succes
Class to store and manage fitparams (statevector)
InternalTrack(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll, bool noEnergySum, bool forceMassConstraint)
constructor
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle in case it has no mother
virtual int dim() const override
space reserved in fit params
bool m_isconversion
is conversion
reprasentation of all charged final states FIXME rename since this name is taken in tracking
virtual void addToConstraintList(constraintlist &list, int depth) const override
add to constraint list
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
virtual int momIndex() const override
momentum index in fit params depending on whether it has a mother
virtual bool hasPosition() const override
has position index
ErrCode projectHelixConstraint(const FitParams &, Projection &) const
project helix constraint
std::vector< Constraint > constraintlist
alias
bool m_noEnergySum
Energy is not conserved at the decay (happens in Bremsstrahlung)
virtual ~InternalTrack()
destructor
static bool compTrkTransverseMomentum(const RecoTrack *lhs, const RecoTrack *rhs)
compare transverse track momentum
bool m_massconstraint
has mass cosntraint
Class to store reconstructed particles.
const ParticleBase * mother() const
getMother() / hasMother()
ErrCode projectConstraint(const Constraint::Type type, const FitParams &fitparams, Projection &p) const override
find out which constraint it is and project
virtual bool hasEnergy() const override
has energy in fitparams
virtual int posIndex() const override
position index in fit params
Belle2::Particle * particle() const
get basf2 particle
void forceP4Sum(FitParams &fitparams) const override
Forces the four-momentum sum.
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...
double m_bfield
B field value.
virtual ErrCode initCovariance(FitParams &) const override
init covariance