 |
Belle II Software
release-05-01-25
|
12 #include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
14 namespace TreeFitter {
17 class RecoPhoton :
public RecoParticle {
42 virtual int dimM()
const override {
return dim(); }
45 virtual bool hasEnergy()
const override {
return false; }
48 virtual int dim()
const override {
return m_dim; }
51 virtual int type()
const override {
return kRecoPhoton ; }
56 alist.push_back(Constraint(
this, Constraint::photon, depth,
dimM())) ;
const int m_dim
dimension of residuals and 'width' of H
RecoPhoton(Belle2::Particle *bc, const ParticleBase *mother)
constructor
virtual int dim() const override
set the size of the particle in the statevector
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
ErrCode initParams()
update or init params
Eigen::Matrix< double, 1, 4 > m_clusterPars
constrains measured params (x_c, y_c, z_c, E_c)
virtual int dimM() const override
sets the size of the corresponding residual projection
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config)
default constructor
int m_i1
index with the highest momentum.
abstract errorocode be aware that the default is succes
Eigen::Matrix< double, 4, 4 > m_covariance
covariance (x_c,y_c,z_c,E_c) of measured pars
Class to store and manage fitparams (statevector)
virtual void addToConstraintList(constraintlist &alist, int depth) const override
add to list
bool m_useEnergy
has energy ins statevector
virtual ~RecoPhoton()
destructor
virtual bool hasEnergy() const override
how should the energy be calculated ? from momentum or from E ?
bool m_init
was initialized*
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle with mother
ErrCode initCovariance(FitParams &fitparams) const override
init covariance
std::vector< Constraint > constraintlist
alias
Class to store reconstructed particles.
virtual int type() const override
type
ErrCode projectRecoConstraint(const FitParams &fitparams, Projection &p) const override
project photon constraint
static bool useEnergy(const Belle2::Particle &cand)
has energy in fit params?
int m_i2
random other index
const ParticleBase * mother() const
getMother() / hasMother()
int m_i3
another random index
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...