Belle II Software development
RecoParticle.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * External Contributor: Wouter Hulsbergen *
5 * *
6 * See git log for contributors and copyright holders. *
7 * This file is licensed under LGPL-3.0, see LICENSE.md. *
8 **************************************************************************/
9
10#include <analysis/VertexFitting/TreeFitter/RecoParticle.h>
11#include <analysis/VertexFitting/TreeFitter/FitParams.h>
12
13namespace TreeFitter {
14
17
19 {
20 return ErrCode(ErrCode::Status::success);
21 }
22
23 std::string RecoParticle::parname(int index) const
24 {
25 return ParticleBase::parname(index + 4);
26 }
27
29 {
30 ErrCode status ;
31 switch (type) {
32 case Constraint::track :
33 case Constraint::neutralHadron :
34 status |= projectRecoConstraint(fitparams, p);
35 break ;
36 default:
37 status |= ParticleBase::projectConstraint(type, fitparams, p);
38 }
39 return status;
40 }
41
42}
Class to store reconstructed particles.
Definition Particle.h:76
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
Definition Constraint.h:27
abstract errorocode be aware that the default is success
Definition ErrCode.h:14
Class to store and manage fitparams (statevector)
Definition FitParams.h:20
Belle2::Particle * particle() const
get basf2 particle
virtual std::string parname(int index) const
get name of parameter i
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const
project constraint.
virtual int type() const =0
get particle type
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config=nullptr)
default constructor
int index() const
get index
const ParticleBase * mother() const
getMother() / hasMother()
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...
Definition Projection.h:18
virtual ErrCode projectRecoConstraint(const FitParams &fitparams, Projection &p) const =0
abstract projection
virtual std::string parname(int index) const override
name
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
abstract abstract projection
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
RecoParticle(Belle2::Particle *bc, const ParticleBase *mother)
constructor