Belle II Software light-2406-ragdoll
BaseTracer Class Reference

Abstract base class for trace objects of kinematic fits. More...

#include <BaseTracer.h>

Inheritance diagram for BaseTracer:
Collaboration diagram for BaseTracer:

Public Member Functions

virtual void initialize (BaseFitter &fitter)
 Called at the start of a new fit (during initialization)
 
virtual void step (BaseFitter &fitter)
 Called at the end of each step.
 
virtual void substep (BaseFitter &fitter, int flag)
 Called at intermediate points during a step.
 
virtual void finish (BaseFitter &fitter)
 Called at the end of a fit.
 
virtual void setNextTracer (BaseTracer *next_)
 
virtual void setNextTracer (BaseTracer &next_)
 
virtual BaseTracergetNextTracer ()
 

Protected Types

typedef std::vector< BaseFitObject * > FitObjectContainer
 
typedef std::vector< BaseHardConstraint * > ConstraintContainer
 
typedef std::vector< BaseSoftConstraint * > SoftConstraintContainer
 
typedef FitObjectContainer::iterator FitObjectIterator
 
typedef ConstraintContainer::iterator ConstraintIterator
 
typedef SoftConstraintContainer::iterator SoftConstraintIterator
 

Protected Attributes

BaseTracernext
 

Detailed Description

Abstract base class for trace objects of kinematic fits.

A Tracer object is called during the fitting process by the fit engine, to store information on how the fit proceeded. This is useful for debugging purposes, because

  • it provides uniform debugging output across different fitters,
  • it frees the fitter code from too much debug code,
  • and it decouples the fit engine classes from other software such as Root, which may be used by the tracer.

Author: Benno List Last update:

Date
2009/09/01 09:48:12

by:

Author
blist

Definition at line 70 of file BaseTracer.h.

Member Typedef Documentation

◆ ConstraintContainer

typedef std::vector<BaseHardConstraint*> ConstraintContainer
protected

Definition at line 97 of file BaseTracer.h.

◆ ConstraintIterator

typedef ConstraintContainer::iterator ConstraintIterator
protected

Definition at line 101 of file BaseTracer.h.

◆ FitObjectContainer

typedef std::vector<BaseFitObject*> FitObjectContainer
protected

Definition at line 96 of file BaseTracer.h.

◆ FitObjectIterator

typedef FitObjectContainer::iterator FitObjectIterator
protected

Definition at line 100 of file BaseTracer.h.

◆ SoftConstraintContainer

typedef std::vector<BaseSoftConstraint*> SoftConstraintContainer
protected

Definition at line 98 of file BaseTracer.h.

◆ SoftConstraintIterator

typedef SoftConstraintContainer::iterator SoftConstraintIterator
protected

Definition at line 102 of file BaseTracer.h.

Constructor & Destructor Documentation

◆ BaseTracer()

Definition at line 26 of file BaseTracer.cc.

26: next(nullptr) {}

Member Function Documentation

◆ finish()

void finish ( BaseFitter fitter)
virtual

Called at the end of a fit.

Reimplemented in TextTracer.

Definition at line 45 of file BaseTracer.cc.

46 {
47 if (next) next->finish(fitter);
48 }
virtual void finish(BaseFitter &fitter)
Called at the end of a fit.
Definition: BaseTracer.cc:45

◆ getNextTracer()

BaseTracer * getNextTracer ( )
virtual

Definition at line 60 of file BaseTracer.cc.

61 {
62 return next;
63 }

◆ initialize()

void initialize ( BaseFitter fitter)
virtual

Called at the start of a new fit (during initialization)

Reimplemented in TextTracer.

Definition at line 30 of file BaseTracer.cc.

31 {
32 if (next) next->initialize(fitter);
33 }
virtual void initialize(BaseFitter &fitter)
Called at the start of a new fit (during initialization)
Definition: BaseTracer.cc:30

◆ setNextTracer() [1/2]

void setNextTracer ( BaseTracer next_)
virtual

Definition at line 55 of file BaseTracer.cc.

56 {
57 next = &next_;
58 }

◆ setNextTracer() [2/2]

void setNextTracer ( BaseTracer next_)
virtual

Definition at line 50 of file BaseTracer.cc.

51 {
52 next = next_;
53 }

◆ step()

void step ( BaseFitter fitter)
virtual

Called at the end of each step.

Reimplemented in TextTracer.

Definition at line 35 of file BaseTracer.cc.

36 {
37 if (next) next->step(fitter);
38 }
virtual void step(BaseFitter &fitter)
Called at the end of each step.
Definition: BaseTracer.cc:35

◆ substep()

void substep ( BaseFitter fitter,
int  flag 
)
virtual

Called at intermediate points during a step.

Reimplemented in TextTracer.

Definition at line 40 of file BaseTracer.cc.

41 {
42 if (next) next->substep(fitter, flag);
43 }
virtual void substep(BaseFitter &fitter, int flag)
Called at intermediate points during a step.
Definition: BaseTracer.cc:40

Member Data Documentation

◆ next

BaseTracer* next
protected

Definition at line 104 of file BaseTracer.h.


The documentation for this class was generated from the following files: