Belle II Software  release-08-01-10
AbsFitter Class Referenceabstract

Abstract base class for fitters. More...

#include <AbsFitter.h>

Inheritance diagram for AbsFitter:

Public Member Functions

virtual void processTrackWithRep (Track *, const AbsTrackRep *, bool resortHits=false)=0
 Process Track with one AbsTrackRep of the Track. More...
 
void processTrack (Track *, bool resortHits=false)
 Process all reps. More...
 
virtual void setDebugLvl (unsigned int lvl=1)
 

Protected Attributes

unsigned int debugLvl_
 

Detailed Description

Abstract base class for fitters.

Definition at line 35 of file AbsFitter.h.

Member Function Documentation

◆ processTrack()

void processTrack ( Track tr,
bool  resortHits = false 
)

Process all reps.

Start with the cardinalRep and resort the hits if necessary (and supported by the fitter)

Definition at line 25 of file AbsFitter.cc.

25  {
26  AbsTrackRep* cardRep = tr->getCardinalRep();
27  // process cardinal rep first
28  processTrackWithRep(tr, cardRep, resortHits);
29 
30  // now process rest of reps, but don't change sorting anymore!
31  for (unsigned int i=0; i<tr->getNumReps(); ++i) {
32  if (tr->getTrackRep(i) != cardRep)
33  processTrackWithRep(tr, tr->getTrackRep(i), false);
34  }
35 
36  tr->checkConsistency();
37 }
virtual void processTrackWithRep(Track *, const AbsTrackRep *, bool resortHits=false)=0
Process Track with one AbsTrackRep of the Track.

◆ processTrackWithRep()

virtual void processTrackWithRep ( Track ,
const AbsTrackRep ,
bool  resortHits = false 
)
pure virtual

Process Track with one AbsTrackRep of the Track.

Optionally resort the hits if necessary (and supported by the fitter)

Implemented in GFGbl, GblFitter, KalmanFitterRefTrack, KalmanFitter, and DAF.


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