Belle II Software  release-06-02-00
FitManager Class Reference

this class More...

#include <FitManager.h>

Collaboration diagram for FitManager:

Public Types

enum  VertexStatus {
  Success = 0 ,
  NonConverged ,
  BadInput ,
  Failed ,
  UnFitted
}
 status flag of the fit-itereation (the step in the newton method)
 

Public Member Functions

 FitManager ()
 constructor

 
 FitManager (Belle2::Particle *particle, const ConstraintConfiguration &config, double prec=0.01, bool updateDaughters=false, const bool useReferencing=false)
 constructor

 
 FitManager (const FitManager &other)=delete
 use default copy constructor
 
FitManageroperator= (const FitManager &other)=delete
 use default assignment op
 
 ~FitManager ()
 destructor does stuff
 
bool fit ()
 main fit function that uses the kalman filter
 
void setExtraInfo (Belle2::Particle *part, const std::string &name, const double value) const
 add extrainfo to particle
 
bool updateCand (Belle2::Particle &particle, const bool isTreeHead) const
 update particles parameters with the fit results
 
void updateCand (const ParticleBase &pb, Belle2::Particle &cand, const bool isTreeHead) const
 locate particle base for a belle2 particle and update the particle with the values from particle base
 
void updateTree (Belle2::Particle &particle, const bool isTreeHead) const
 update the Belle2::Particles with the fit results

 
void getCovFromPB (const ParticleBase *pb, TMatrixFSym &returncov) const
 extract cov from particle base
 
std::tuple< double, double > getLifeTime (Belle2::Particle &cand) const
 get lifetime
 
std::tuple< double, double > getDecayLength (const ParticleBase *pb) const
 get decay length
 
std::tuple< double, double > getDecayLength (const ParticleBase *pb, const FitParams &fitparams) const
 get decay length
 
std::tuple< double, double > getDecayLength (Belle2::Particle &cand) const
 get decay length
 
int posIndex (Belle2::Particle *particle) const
 getter for the index of the vertex position in the state vector
 
int momIndex (Belle2::Particle *particle) const
 getter for the index of the momentum in the state vector
 
int tauIndex (Belle2::Particle *particle) const
 getter for the index of tau, the lifetime in the statevector
 
double chiSquare () const
 getter for chi2 of the newton iteration
 
int nDof () const
 getter for degrees of freedom of the fitparameters
 
int status () const
 getter for the status of the newton iteration

 
int nIter () const
 getter for the current iteration number of the newton iteration

 
const ErrCodeerrCode ()
 getter for some errorcode flag FIXME isn't this covered by the status-flag?
 
const DecayChaindecaychain () const
 const getter for the decay chain
 
Belle2::Particleparticle ()
 getter for the head of the tree
 

Private Attributes

Belle2::Particlem_particle
 head of the tree

 
DecayChainm_decaychain
 the decay tree
 
int m_status
 status of the current iteration
 
double m_chiSquare
 chi2 of the current iteration
 
int m_niter
 iteration index
 
double m_prec
 precision that is needed for status:converged (delta chi2)
 
ErrCode m_errCode
 errorcode
 
const bool m_updateDaugthers
 if this is set all daughters will be updated otherwise only the head of the tree
 
int m_ndf
 number of degrees of freedom for this topology
 
FitParamsm_fitparams
 parameters to be fitted
 
bool m_useReferencing
 use referencing
 
const ConstraintConfiguration m_config
 config container
 

Detailed Description

this class

Definition at line 22 of file FitManager.h.


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