 |
Belle II Software
release-05-02-19
|
13 #include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
15 #include <mdst/dbobjects/BeamSpot.h>
16 #include <framework/database/DBObjPtr.h>
18 namespace TreeFitter {
21 class Origin :
public ParticleBase {
27 const ConstraintConfiguration& config,
28 const bool forceFitAll
53 virtual int type()
const override {
return kOrigin; }
68 virtual int momIndex()
const override {
return -1; }
71 virtual int tauIndex()
const override {
return -1; }
74 virtual bool hasEnergy()
const override {
return false; }
77 virtual std::string
name()
const {
return "Origin"; }
91 Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1>
m_posVec;
96 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, 3, 3>
m_covariance;
Eigen::Matrix< double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1 > m_posVec
vertex position of the origin
const int m_constraintDimension
dimension of the constraint
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
the abstract projection
virtual ErrCode initCovariance(FitParams &fitpar) const override
init covariance matrix of the constraint
const std::vector< double > m_customOriginVertex
vertex coordinates
virtual bool hasEnergy() const override
has energy
virtual std::string name() const
get name
abstract errorocode be aware that the default is succes
const bool m_isBeamSpot
is this the beam constraint?
Class to store and manage fitparams (statevector)
virtual int momIndex() const override
momentum index in the statevector.
virtual int type() const override
get particle type
ErrCode initOrigin()
init the origin "particle"
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle, used if it has no mother
virtual ~Origin()
destructor
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
ErrCode projectOriginConstraint(const FitParams &fitpar, Projection &) const
the actuall constraint projection
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
int index() const
get index
virtual int posIndex() const override
vertex position index in the statevector
virtual void addToConstraintList(constraintlist &list, int depth) const override
adds the origin as a particle to the constraint list
const int m_inflationFactorCovZ
inflated the covariance matrix in z by this number
std::vector< Constraint > constraintlist
alias
Class to store reconstructed particles.
Origin(Belle2::Particle *particle, const ConstraintConfiguration &config, const bool forceFitAll)
Constructor.
virtual int dim() const override
space reserved in fit pars
const std::vector< double > m_customOriginCovariance
vertex covariance
Belle2::Particle * particle() const
get basf2 particle
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...
virtual int tauIndex() const override
the lifetime index.
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle, used if it has a mother
Belle2::DBObjPtr< Belle2::BeamSpot > m_beamSpot
the parameters are initialize elsewhere this is just a pointer to that