Belle II Software  release-05-01-25
RecoParticle.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributor: Wouter Hulsbergen, Francesco Tenchini, Jo Frederik Krohn *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <analysis/VertexFitting/TreeFitter/ParticleBase.h>
13 
14 namespace TreeFitter {
15 
17  class RecoParticle : public ParticleBase {
18 
19  public:
20 
23 
25  virtual ~RecoParticle() {};
26 
28  virtual ErrCode initMotherlessParticle(FitParams& fitparams) override;
29 
31  virtual int dimM() const = 0;
32 
34  virtual std::string parname(int index) const override;
35 
40  virtual int dim() const override { return 3; }
41 
43  virtual int momIndex() const override { return index(); }
44 
46  virtual bool hasEnergy() const override { return false; }
47 
49  virtual ErrCode projectRecoConstraint(const FitParams& fitparams, Projection& p) const = 0;
50 
52  virtual ErrCode projectConstraint(Constraint::Type, const FitParams&, Projection&) const override;
53 
54  };
55 
56 }
TreeFitter::RecoParticle::RecoParticle
RecoParticle(Belle2::Particle *bc, const ParticleBase *mother)
hier koennte ihre werbung stehen
Definition: RecoParticle.cc:24
TreeFitter::ParticleBase::ParticleBase
ParticleBase(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration *config)
default constructor
Definition: ParticleBase.cc:41
TreeFitter::RecoParticle::dim
virtual int dim() const override
this here sets the size in the state vector we are only interested in the momenta of photons and trac...
Definition: RecoParticle.h:56
TreeFitter::ErrCode
abstract errorocode be aware that the default is succes
Definition: ErrCode.h:23
TreeFitter::FitParams
Class to store and manage fitparams (statevector)
Definition: FitParams.h:29
TreeFitter::RecoParticle::dimM
virtual int dimM() const =0
dimension of the constraint
TreeFitter::RecoParticle::~RecoParticle
virtual ~RecoParticle()
destructor
Definition: RecoParticle.h:41
TreeFitter::RecoParticle::parname
virtual std::string parname(int index) const override
name
Definition: RecoParticle.cc:32
TreeFitter::RecoParticle::initMotherlessParticle
virtual ErrCode initMotherlessParticle(FitParams &fitparams) override
init particle without mother
Definition: RecoParticle.cc:27
TreeFitter::Constraint::Type
Type
type of constraints the order of these constraints is important: it is the order in which they are ap...
Definition: Constraint.h:36
TreeFitter::ParticleBase::index
int index() const
get index
Definition: ParticleBase.h:112
TreeFitter::RecoParticle::hasEnergy
virtual bool hasEnergy() const override
has an energy in the statevector?
Definition: RecoParticle.h:62
TreeFitter::RecoParticle::projectRecoConstraint
virtual ErrCode projectRecoConstraint(const FitParams &fitparams, Projection &p) const =0
abstract projection
TreeFitter::RecoParticle::momIndex
virtual int momIndex() const override
get momentum index
Definition: RecoParticle.h:59
Belle2::Particle
Class to store reconstructed particles.
Definition: Particle.h:77
TreeFitter::ParticleBase::mother
const ParticleBase * mother() const
getMother() / hasMother()
Definition: ParticleBase.cc:295
TreeFitter::RecoParticle::projectConstraint
virtual ErrCode projectConstraint(Constraint::Type, const FitParams &, Projection &) const override
abstract abstract projection
Definition: RecoParticle.cc:37