Belle II Software  release-05-02-19
DecayChain Class Reference

this class does a lot of stuff: Build decaytree structure allowing to index particles and handle the filtering of constraints across the tree More...

#include <DecayChain.h>

Collaboration diagram for DecayChain:

Public Member Functions

 DecayChain ()
 empty constructor

 
 DecayChain (Belle2::Particle *bc, const ConstraintConfiguration &config, bool forceFitAll=false)
 constructor

 
 ~DecayChain ()
 destructor

 
ErrCode initialize (FitParams &par)
 initalize the chain
 
ErrCode filter (FitParams &par)
 filter down the chain
 
ErrCode filterWithReference (FitParams &par, const FitParams &ref)
 filter with respect to a previous iteration for better stability
 
int dim () const
 get dimension

 
void initConstraintList ()
 init contraintlist

 
void removeConstraintFromList ()
 remove constraints from list
 
double chiSquare (const FitParams &par) const
 get the chi2 for the head of the chain
 
ParticleBasemother ()
 get mother
 
const ParticleBasecand ()
 get candidate
 
const ParticleBasemother () const
 get mother
 
const ParticleBaselocate (Belle2::Particle *bc) const
 convert Belle2::particle into particle base(fitter base particle)

 
int index (Belle2::Particle *bc) const
 get the particle index
 
int posIndex (Belle2::Particle *bc) const
 get the vertex index of the particle in state vector
 
int momIndex (Belle2::Particle *bc) const
 get momentum index of the particle in the state vector
 
int tauIndex (Belle2::Particle *bc) const
 get tau (i.e. More...
 
int momIndex () const
 !NOT IMPLEMENTED

 

Private Types

typedef std::map< Belle2::Particle *, const ParticleBase * > ParticleMap
 typedef for a map of a particle to a TreeFitter::ParticleBase
 

Private Attributes

int m_dim
 the dimension of constraint
 
ParticleBasem_headOfChain
 head of decay tree
 
const ParticleBasem_cand
 fit candidate (not same to mother in case of bs/be constraint)
 
ParticleBase::constraintlist m_constraintlist
 list of constraints
 
ParticleMap m_particleMap
 the map from Belle2::Particles to TreeFitter::ParticleBase
 
const bool m_isOwner
 internal class member to check if we own the chain
 
const ConstraintConfiguration m_config
 config container
 

Detailed Description

this class does a lot of stuff: Build decaytree structure allowing to index particles and handle the filtering of constraints across the tree

Definition at line 34 of file DecayChain.h.

Member Function Documentation

◆ tauIndex()

int tauIndex ( Belle2::Particle bc) const

get tau (i.e.

decay lifetime) index of the particle in the state vector

Definition at line 172 of file DecayChain.cc.


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