SND@LHC Software
Loading...
Searching...
No Matches
genfit::AbsFitter Class Referenceabstract

Abstract base class for fitters. More...

#include <AbsFitter.h>

Inheritance diagram for genfit::AbsFitter:

Public Member Functions

 AbsFitter ()
 
virtual ~AbsFitter ()
 
virtual void processTrackWithRep (Track *, const AbsTrackRep *, bool resortHits=false)=0
 
void processTrack (Track *, bool resortHits=true)
 
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.

Constructor & Destructor Documentation

◆ AbsFitter()

genfit::AbsFitter::AbsFitter ( )
inline

Definition at line 37 of file AbsFitter.h.

37: debugLvl_(0) {}
unsigned int debugLvl_
Definition AbsFitter.h:55

◆ ~AbsFitter()

virtual genfit::AbsFitter::~AbsFitter ( )
inlinevirtual

Definition at line 38 of file AbsFitter.h.

38{}

Member Function Documentation

◆ processTrack()

void genfit::AbsFitter::processTrack ( Track tr,
bool  resortHits = true 
)

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 // self check
37 assert(tr->checkConsistency());
38}
virtual void processTrackWithRep(Track *, const AbsTrackRep *, bool resortHits=false)=0
int i
Definition ShipAna.py:86

◆ processTrackWithRep()

virtual void genfit::AbsFitter::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 genfit::DAF, genfit::KalmanFitter, genfit::KalmanFitterRefTrack, and genfit::GFGbl.

◆ setDebugLvl()

virtual void genfit::AbsFitter::setDebugLvl ( unsigned int  lvl = 1)
inlinevirtual

Reimplemented in genfit::DAF.

Definition at line 50 of file AbsFitter.h.

50{debugLvl_ = lvl;}

Member Data Documentation

◆ debugLvl_

unsigned int genfit::AbsFitter::debugLvl_
protected

Definition at line 55 of file AbsFitter.h.


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