Belle II Software  release-08-01-10
RecoTrack Class Reference

representation of all charged final states FIXME rename since this name is taken in tracking
More...

#include <RecoTrack.h>

Inheritance diagram for RecoTrack:
Collaboration diagram for RecoTrack:

Public Types

enum  TFParticleType {
  kInteractionPoint ,
  kOrigin ,
  kComposite ,
  kRecoResonance ,
  kInternalParticle ,
  kRecoTrack ,
  kResonance ,
  kRecoPhoton ,
  kRecoKlong ,
  kMissingParticle
}
 particle types

 
typedef std::vector< Constraintconstraintlist
 alias
 
typedef std::vector< std::pair< const ParticleBase *, int > > indexmap
 alias
 

Public Member Functions

 RecoTrack (Belle2::Particle *bc, const ParticleBase *mother)
 constructor
 
virtual ~RecoTrack ()
 destructor
 
virtual ErrCode initParticleWithMother (FitParams &fitparams) override
 init with mother particle (replacing initPar2)

 
virtual ErrCode initMotherlessParticle (FitParams &fitparams) override
 init without mother particle

 
ErrCode initCovariance (FitParams &fitparams) const override
 init covariance matrix of this particle constraint
 
ErrCode updFltToMotherCopy (const FitParams *fitparams)
 update m_flt
 
virtual ErrCode projectRecoConstraint (const FitParams &, Projection &) const override
 project the constraint (calculate residuals)

 
ErrCode updateParams (double flt)
 updated the cached parameters
 
virtual int dimM () const override
 dimension (5)
 
virtual int type () const override
 type of the constraint

 
virtual int nFinalChargedCandidates () const override
 number of final charged candidates
 
virtual void addToConstraintList (constraintlist &alist, int depth) const override
 add to the list of constraints
 
ErrCode updFltToMother (const FitParams &fitparams)
 update flight length to mother
 
void setFlightLength (double flt)
 setter for the flight length
 
virtual std::string parname (int index) const override
 name
 
virtual int dim () const override
 this here sets the size in the state vector we are only interested in the momenta of photons and tracks as the position were the track ends or the cluster is, is not relevant for physics

 
virtual int momIndex () const override
 get momentum index
 
virtual bool hasEnergy () const override
 has an energy in the statevector?
 
virtual ErrCode projectConstraint (Constraint::Type, const FitParams &, Projection &) const override
 abstract abstract projection
 
virtual void updateIndex (int &offset)
 this sets the index for momentum, position, etc. More...
 
const ParticleBaselocate (Belle2::Particle *particle) const
 get particle base from basf2 particle
 
Belle2::Particleparticle () const
 get basf2 particle

 
int index () const
 get index

 
const ParticleBasemother () const
 getMother() / hasMother()
 
virtual ErrCode projectGeoConstraint (const FitParams &, Projection &) const
 project geometrical constraint More...
 
virtual ErrCode projectMassConstraintParticle (const FitParams &, Projection &) const
 project mass constraint using the particles parameters More...
 
virtual ErrCode projectMassConstraintDaughters (const FitParams &, Projection &) const
 project mass constraint using the parameters of the daughters More...
 
virtual ErrCode projectMassConstraint (const FitParams &, Projection &) const
 project mass constraint abstract
 
virtual void forceP4Sum (FitParams &) const
 force p4 sum conservation all along the tree
 
virtual int posIndex () const
 get vertex index (in statevector!)
 
virtual int tauIndex () const
 get tau index
 
virtual bool hasPosition () const
 get false

 
int eneIndex () const
 get energy index

 
virtual double chiSquare (const FitParams &) const
 get chi2
 
int charge () const
 get charge
 
virtual ParticleBaseaddDaughter (Belle2::Particle *, const ConstraintConfiguration &config, bool forceFitAll=false)
 add daughter

 
virtual void removeDaughter (const ParticleBase *pb)
 remove daughter
 
virtual void retrieveIndexMap (indexmap &anindexmap) const
 get index map

 
void setMother (const ParticleBase *m)
 set mother

 
void collectVertexDaughters (std::vector< ParticleBase * > &particles, int posindex)
 get vertex daughters
 

Static Public Member Functions

static ParticleBasecreateParticle (Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll=false)
 create the according treeFitter particle obj for a basf2 particle type

 
static ParticleBasecreateOrigin (Belle2::Particle *daughter, const ConstraintConfiguration &config, bool forceFitAll)
 create a custom origin particle or a beamspot
 

Protected Types

typedef std::vector< ParticleBase * > ParticleContainer
 just an alias
 

Protected Member Functions

ErrCode initTau (FitParams &par) const
 initialises tau as a length

 
void setIndex (int i)
 set Index (in statevector)
 

Static Protected Member Functions

static bool isAResonance (Belle2::Particle *particle)
 controls if a particle is treated as a resonance(lifetime=0) or a particle that has a finite lifetime. More...
 

Protected Attributes

Belle2::Particlem_particle
 pointer to framework type

 
const ParticleBasem_mother
 motherparticle
 
std::vector< ParticleBase * > m_daughters
 daughter container

 
bool m_isStronglyDecayingResonance
 decay length less than 1 micron

 
const ConstraintConfigurationm_config
 has all the constraint config
 

Private Attributes

double m_bfield
 B field along z

 
const Belle2::TrackFitResultm_trackfit
 trackfit result from reconstruction

 
bool m_cached
 flag to mark the particle as initialised

 
double m_flt
 helix arc length at vertex
 
Eigen::Matrix< double, 1, 5 > m_params
 column vector to store the measurement
 
Eigen::Matrix< double, 5, 5 > m_covariance
 only lower triangle filled!
 
const float m_momentumScalingFactor
 scale the momenta by this correction factor
 
int m_index
 index
 
std::string m_name
 name

 

Detailed Description

representation of all charged final states FIXME rename since this name is taken in tracking

Definition at line 18 of file RecoTrack.h.

Member Function Documentation

◆ isAResonance()

bool isAResonance ( Belle2::Particle particle)
staticprotectedinherited

controls if a particle is treated as a resonance(lifetime=0) or a particle that has a finite lifetime.

A finite life time means it will register a geo constraint for this particle

Definition at line 134 of file ParticleBase.cc.

◆ projectGeoConstraint()

ErrCode projectGeoConstraint ( const FitParams fitparams,
Projection p 
) const
virtualinherited

project geometrical constraint

the direction of the momentum is very well known from the kinematic constraints that is why we do not extract the distance as a vector here

Definition at line 249 of file ParticleBase.cc.

◆ projectMassConstraintDaughters()

ErrCode projectMassConstraintDaughters ( const FitParams fitparams,
Projection p 
) const
virtualinherited

project mass constraint using the parameters of the daughters

be aware that the signs here are important E-|p|-m extracts a negative mass and messes with the momentum !

Definition at line 314 of file ParticleBase.cc.

◆ projectMassConstraintParticle()

ErrCode projectMassConstraintParticle ( const FitParams fitparams,
Projection p 
) const
virtualinherited

project mass constraint using the particles parameters

be aware that the signs here are important E-|p|-m extracts a negative mass and messes with the momentum !

Definition at line 375 of file ParticleBase.cc.

◆ updateIndex()

void updateIndex ( int &  offset)
virtualinherited

this sets the index for momentum, position, etc.

in the statevector

Definition at line 84 of file ParticleBase.cc.


The documentation for this class was generated from the following files: