11#include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
13#include <mdst/dbobjects/BeamSpot.h>
14#include <framework/database/DBObjPtr.h>
28 const bool forceFitAll
53 virtual int type()
const override {
return kOrigin; }
68 virtual std::string
name()
const {
return "Origin"; }
82 Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1>
m_posVec;
87 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, 3, 3>
m_covariance;
Class for accessing objects in the database.
Class to store reconstructed particles.
constraint configuration class
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
abstract errorocode be aware that the default is success
Class to store and manage fitparams (statevector)
virtual ~Origin() override=default
destructor
ErrCode projectOriginConstraint(const FitParams &fitpar, Projection &) const
the actual constraint projection
const int m_constraintDimension
dimension of the constraint
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, 3, 3 > m_covariance
covariance of the origin dont know size but I know the max size
const std::vector< double > m_customOriginVertex
vertex coordinates
virtual ErrCode initCovariance(FitParams &fitpar) const override
init covariance matrix of the constraint
virtual int dim() const override
space reserved in fit pars
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
the abstract projection
virtual std::string name() const
get name
ErrCode initOrigin()
init the origin "particle"
virtual int type() const override
get particle type
const std::vector< double > m_customOriginCovariance
vertex covariance
Eigen::Matrix< double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1 > m_posVec
vertex position of the origin
Origin(Belle2::Particle *particle, const ConstraintConfiguration &config, const bool forceFitAll)
Constructor.
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle, used if it has a mother
virtual void addToConstraintList(constraintlist &list, int depth) const override
adds the origin as a particle to the constraint list
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle, used if it has no mother
virtual int posIndex() const override
vertex position index in the statevector
Origin(Belle2::Particle *daughter)
Constructor.
const bool m_isBeamSpot
is this the beam constraint?
Belle2::DBObjPtr< Belle2::BeamSpot > m_beamSpot
the parameters are initialize elsewhere this is just a pointer to that
const int m_inflationFactorCovZ
inflated the covariance matrix in z by this number
Belle2::Particle * particle() const
get basf2 particle
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config=nullptr)
default constructor
int index() const
get index
std::vector< Constraint > constraintlist
alias
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...