Belle II Software  release-05-01-25
BaseTracer.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * See https://github.com/tferber/OrcaKinfit, forked from *
4  * https://github.com/iLCSoft/MarlinKinfit *
5  * *
6  * Further information about the fit engine and the user interface *
7  * provided in MarlinKinfit can be found at *
8  * https://www.desy.de/~blist/kinfit/doc/html/ *
9  * and in the LCNotes LC-TOOL-2009-001 and LC-TOOL-2009-004 available *
10  * from http://www-flc.desy.de/lcnotes/ *
11  * *
12  * Adopted by: Torben Ferber (torben.ferber@desy.de) (TF) *
13  * *
14  * This software is provided "as is" without any warranty. *
15  **************************************************************************/
16 
17 #include "analysis/OrcaKinFit/BaseTracer.h"
18 
19 namespace Belle2 {
24  namespace OrcaKinFit {
25 
26  BaseTracer::BaseTracer(): next(nullptr) {}
27 
28  BaseTracer::~BaseTracer() = default;
29 
30  void BaseTracer::initialize(BaseFitter& fitter)
31  {
32  if (next) next->initialize(fitter);
33  }
34 
35  void BaseTracer::step(BaseFitter& fitter)
36  {
37  if (next) next->step(fitter);
38  }
39 
40  void BaseTracer::substep(BaseFitter& fitter, int flag)
41  {
42  if (next) next->substep(fitter, flag);
43  }
44 
45  void BaseTracer::finish(BaseFitter& fitter)
46  {
47  if (next) next->finish(fitter);
48  }
49 
50  void BaseTracer::setNextTracer(BaseTracer* next_)
51  {
52  next = next_;
53  }
54 
55  void BaseTracer::setNextTracer(BaseTracer& next_)
56  {
57  next = &next_;
58  }
59 
60  BaseTracer* BaseTracer::getNextTracer()
61  {
62  return next;
63  }
64 
65  }// end OrcaKinFit namespace
67 } // end Belle2 namespace
68 
69 
Belle2::OrcaKinFit::BaseFitter
Abstract base class for fitting engines of kinematic fits.
Definition: BaseFitter.h:61
Belle2::OrcaKinFit::BaseTracer::step
virtual void step(BaseFitter &fitter)
Called at the end of each step.
Definition: BaseTracer.cc:49
Belle2::OrcaKinFit::BaseTracer
Abstract base class for trace objects of kinematic fits.
Definition: BaseTracer.h:70
Belle2::OrcaKinFit::BaseTracer::initialize
virtual void initialize(BaseFitter &fitter)
Called at the start of a new fit (during initialization)
Definition: BaseTracer.cc:44
Belle2::OrcaKinFit::BaseTracer::finish
virtual void finish(BaseFitter &fitter)
Called at the end of a fit.
Definition: BaseTracer.cc:59
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::OrcaKinFit::BaseTracer::substep
virtual void substep(BaseFitter &fitter, int flag)
Called at intermediate points during a step.
Definition: BaseTracer.cc:54