 |
Belle II Software
release-05-01-25
|
12 #include <analysis/dataobjects/Particle.h>
13 #include <analysis/VertexFitting/TreeFitter/ErrCode.h>
14 #include <analysis/VertexFitting/TreeFitter/ConstraintConfiguration.h>
16 namespace TreeFitter {
20 class ConstraintConfiguration;
27 enum VertexStatus { Success = 0, NonConverged, BadInput, Failed, UnFitted };
39 bool updateDaughters =
false,
40 const bool useReferencing =
false
FitParams * m_fitparams
parameters to be fitted
const ConstraintConfiguration m_config
config container
int tauIndex(Belle2::Particle *particle) const
getter for the index of tau, the lifetime in the statevector
double m_prec
precision that is needed for status:converged (delta chi2)
int nIter() const
getter for the current iteration number of the newton iteration
int momIndex(Belle2::Particle *particle) const
getter for the index of the momentum in the state vector
const ErrCode & errCode()
getter for some errorcode flag FIXME isn't this covered by the statusflag?
FitManager & operator=(const FitManager &other)=delete
use default assignment op
void getCovFromPB(const ParticleBase *pb, TMatrixFSym &returncov) const
extract cov from particle base
abstract errorocode be aware that the default is succes
base class for all particles
void setExtraInfo(Belle2::Particle *part, const std::string &name, const double value) const
add extrainfo to particle
Class to store and manage fitparams (statevector)
DecayChain * m_decaychain
the decay tree
std::tuple< double, double > getLifeTime(Belle2::Particle &cand) const
get lifetime
int posIndex(Belle2::Particle *particle) const
getter for the index of the vertex position in the state vector
double chiSquare() const
getter for chi2 of the newton iteration
std::tuple< double, double > getDecayLength(const ParticleBase *pb) const
get decay length
this class does a lot of stuff: Build decaytree structure allowing to index particles and handle the ...
double m_chiSquare
chi2 of the current iteration
int status() const
getter for the status of the newton iteration
const DecayChain * decaychain() const
const getter for the decay chain
ErrCode m_errCode
errorcode
int m_ndf
number of degrees of freedom for this topology
Class to store reconstructed particles.
bool fit()
main fit function that uses the kalman filter
bool updateCand(Belle2::Particle &particle, const bool isTreeHead) const
update particles parameters with the fit results
int m_niter
iteration index
const bool m_updateDaugthers
if this is set all daughters will be updated otherwise only the head of the tree
void updateTree(Belle2::Particle &particle, const bool isTreeHead) const
update the Belle2::Particles with the fit results
Belle2::Particle * m_particle
head of the tree
~FitManager()
destructor does stuff
VertexStatus
status flag of the fit-itereation (the step in the newton method)
int nDof() const
getter for degrees of freedom of the fitparameters
bool m_useReferencing
use referencing
int m_status
status of the current iteration
Belle2::Particle * particle()
getter for the head of the tree