11#include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
13#include <mdst/dbobjects/BeamSpot.h>
14#include <framework/database/DBObjPtr.h>
26 const bool forceFitAll
51 virtual int type()
const override {
return kOrigin; }
66 virtual int momIndex()
const override {
return -1; }
69 virtual int tauIndex()
const override {
return -1; }
72 virtual bool hasEnergy()
const override {
return false; }
75 virtual std::string
name()
const {
return "Origin"; }
89 Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1>
m_posVec;
94 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)
representation of the beamspot as a particle
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 tauIndex() const override
the lifetime index.
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
virtual int momIndex() const override
momentum index in the statevector.
ErrCode initOrigin()
init the origin "particle"
virtual int type() const override
get particle type
virtual bool hasEnergy() const override
has energy
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
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?
virtual ~Origin()
destructor
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
base class for all particles
Belle2::Particle * particle() const
get basf2 particle
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...