11#include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
41 virtual int dimM()
const override {
return dim(); }
44 virtual bool hasEnergy()
const override {
return false; }
47 virtual int dim()
const override {
return m_dim; }
50 virtual int type()
const override {
return kRecoPhoton ; }
55 alist.push_back(
Constraint(
this, Constraint::photon, depth,
dimM())) ;
Class to store reconstructed particles.
class to manage the order of constraints and their filtering
abstract errorocode be aware that the default is success
Class to store and manage fitparams (statevector)
base class for all particles
const ParticleBase * mother() const
getMother() / hasMother()
std::vector< Constraint > constraintlist
alias
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...
base for RecoPhoton RecoTrack
representation of the photon constraint
bool m_useEnergy
has energy ins statevector
Eigen::Matrix< double, 4, 4 > m_covariance
covariance (x_c,y_c,z_c,E_c) of measured pars
ErrCode initCovariance(FitParams &fitparams) const override
init covariance
virtual int dim() const override
set the size of the particle in the statevector
ErrCode initParams()
update or init params
const float m_momentumScalingFactor
scale the momentum / energy by this correction factor
virtual int type() const override
type
const int m_dim
dimension of residuals and 'width' of H
virtual bool hasEnergy() const override
how should the energy be calculated ? from momentum or from E ?
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add to list
int m_i3
another random index
virtual int dimM() const override
sets the size of the corresponding residual projection
int m_i1
index with the highest momentum.
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle with mother
static bool useEnergy(const Belle2::Particle &cand)
has energy in fit params?
int m_i2
random other index
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
bool m_init
was initialized*
ErrCode projectRecoConstraint(const FitParams &fitparams, Projection &p) const override
project photon constraint
Eigen::Matrix< double, 1, 4 > m_clusterPars
constrains measured params (x_c, y_c, z_c, E_c)
virtual ~RecoPhoton()
destructor