Belle II Software  release-05-01-25
Resonance.cc
1 /**************************************************************************
2  *
3  * BASF2 (Belle Analysis Framework 2) *
4  * Copyright(C) 2013 - Belle II Collaboration *
5  * *
6  * Author: The Belle II Collaboration *
7  * Contributor: Wouter Hulsbergen, Francesco Tenchini *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #include <analysis/VertexFitting/TreeFitter/Resonance.h>
13 
14 namespace TreeFitter {
15 
17  const ParticleBase* mother,
18  const ConstraintConfiguration& config,
19  bool forceFitAll) :
20  InternalParticle(particle, mother, config, forceFitAll) {}
21 
22  ErrCode Resonance::initMotherlessParticle(FitParams& fitparams)
23  {
24  ErrCode status;
25  for (auto daughter : m_daughters) {
26  status |= daughter->initMotherlessParticle(fitparams);
27  }
28  return status;
29  }
30 
31  ErrCode Resonance::initParticleWithMother(FitParams& fitparams)
32  {
33  ErrCode status;
34  for (auto daughter : m_daughters) {
35  status |= daughter->initParticleWithMother(fitparams);
36  }
37  initMomentum(fitparams);
38  return status;
39  }
40 
41  Resonance::~Resonance() = default;
42 
43  std::string Resonance::parname(int index) const
44  {
45  return ParticleBase::parname(index + 4);
46  }
47 
48 }
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::Resonance::Resonance
Resonance(Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll)
constructor
Definition: Resonance.cc:25
Belle2::Particle
Class to store reconstructed particles.
Definition: Particle.h:77