11#include <analysis/VertexFitting/TreeFitter/RecoResonance.h>
12#include <analysis/VertexFitting/TreeFitter/FitParams.h>
21 m_massconstraint(false)
29 return ErrCode(ErrCode::Status::success);
39 for (
int i = 0; i < 3; ++i) {
40 quickindexmap[i] = posindex + i;
42 for (
int i = 0; i < 4; ++i) {
43 quickindexmap[i + 3] = momindex + i;
47 for (
int row = 0; row <
dimM(); ++row) {
50 return ErrCode(ErrCode::Status::success);
57 case Constraint::resonance:
74 list.push_back(
Constraint(
this, Constraint::resonance, depth,
dimM()));
77 list.push_back(
Constraint(
this, Constraint::mass, depth, 1, 3));
Class to store reconstructed particles.
int getPDGCode(void) const
Returns PDG code.
A class for composite particles, where the daughters must be ignored by the fitter.
int dimM() const
get dimension of measurement
Eigen::Matrix< double, 7, 1 > m_params
column vector to store the measurement
ErrCode projectComposite(const FitParams &fitparams, Projection &p) const
project this particle constraint
constraint configuration class
const std::vector< int > m_massConstraintListPDG
list of pdg codes to mass constrain
class to manage the order of constraints and their filtering
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)
Eigen::Matrix< double, -1, 1, 0, MAX_MATRIX_SIZE, 1 > & getStateVector()
getter for the fit parameters/statevector
base class for all particles
virtual std::string parname(int index) const
get name of parameter i
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const
project constraint.
Belle2::Particle * m_particle
pointer to framework type
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...
RecoResonance(Belle2::Particle *bc, const ParticleBase *mother, const ConstraintConfiguration &config)
constructor
virtual std::string parname(int index) const override
parameter name
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
project the constraint
bool m_massconstraint
has mass constraint
virtual int momIndex() const override
get momentum index in statevector
virtual int type() const override
get type
virtual ErrCode initParticleWithMother(FitParams &fitparams) override
init particle in case it has a mother
virtual void addToConstraintList(constraintlist &list, int depth) const override
add to the list of constraints
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle in case it has no mother
virtual int posIndex() const override
get position index in statevector x,y,z,tau,px,py,pz