Belle II Software  release-08-01-10
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 
13 namespace TreeFitter {
14 
16  : ParticleBase(particle, mother) {}
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::photon :
34  case Constraint::klong :
35  status |= projectRecoConstraint(fitparams, p);
36  break ;
37  default:
38  status |= ParticleBase::projectConstraint(type, fitparams, p);
39  }
40  return status;
41  }
42 
43 }
Class to store reconstructed particles.
Definition: Particle.h:75
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
base class for all particles
Definition: ParticleBase.h:25
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
int index() const
get index
Definition: ParticleBase.h:95
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
Definition: RecoParticle.cc:23
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
abstract abstract projection
Definition: RecoParticle.cc:28
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
Definition: RecoParticle.cc:18
RecoParticle(Belle2::Particle *bc, const ParticleBase *mother)
constructor
Definition: RecoParticle.cc:15