SND@LHC Software
Loading...
Searching...
No Matches
genfit::KalmanFitStatus Class Reference

FitStatus for use with AbsKalmanFitter implementations. More...

#include <KalmanFitStatus.h>

Inheritance diagram for genfit::KalmanFitStatus:
Collaboration diagram for genfit::KalmanFitStatus:

Public Member Functions

 KalmanFitStatus ()
 
virtual ~KalmanFitStatus ()
 
virtual FitStatusclone () const
 
unsigned int getNumIterations () const
 
bool isFittedWithDaf () const
 
bool isFittedWithReferenceTrack () const
 
double getTrackLen () const
 
double getForwardChi2 () const
 
double getBackwardChi2 () const
 
double getForwardNdf () const
 
double getBackwardNdf () const
 
double getForwardPVal () const
 
double getBackwardPVal () const
 
void setNumIterations (unsigned int numIterations)
 
void setIsFittedWithDaf (bool fittedWithDaf=true)
 
void setIsFittedWithReferenceTrack (bool fittedWithReferenceTrack=true)
 
void setTrackLen (double trackLen)
 
void setForwardChi2 (double fChi2)
 
void setBackwardChi2 (double bChi2)
 
void setForwardNdf (double fNdf)
 
void setBackwardNdf (double bNdf)
 
virtual void Print (const Option_t *="") const
 
- Public Member Functions inherited from genfit::FitStatus
 FitStatus ()
 
virtual ~FitStatus ()
 
bool isFitted () const
 Has the track been fitted?
 
bool isFitConverged (bool inAllPoints=true) const
 Did the fit converge (in all Points or only partially)?
 
bool isFitConvergedFully () const
 
bool isFitConvergedPartially () const
 
int getNFailedPoints () const
 
bool hasTrackChanged () const
 Has anything in the Track been changed since the fit?
 
bool isTrackPruned () const
 Has the track been pruned after the fit?
 
double getCharge () const
 Get the fitted charge.
 
double getChi2 () const
 Get chi^2 of the fit.
 
double getNdf () const
 Get the degrees of freedom of the fit.
 
virtual double getPVal () const
 Get the p value of the fit.
 
void setIsFitted (bool fitted=true)
 
void setIsFitConvergedFully (bool fitConverged=true)
 
void setIsFitConvergedPartially (bool fitConverged=true)
 
void setNFailedPoints (int nFailedPoints)
 
void setHasTrackChanged (bool trackChanged=true)
 
void setIsTrackPruned (bool pruned=true)
 
void setCharge (double charge)
 
void setChi2 (const double &chi2)
 
void setNdf (const double &ndf)
 

Protected Attributes

unsigned int numIterations_
 
bool fittedWithDaf_
 
bool fittedWithReferenceTrack_
 
double trackLen_
 
double fChi2_
 
double fNdf_
 
double fPval_
 
- Protected Attributes inherited from genfit::FitStatus
bool isFitted_
 has the track been fitted?
 
bool isFitConvergedFully_
 did the fit converge with all TrackPoints?
 
bool isFitConvergedPartially_
 did the fit converge with a subset of all TrackPoints?
 
int nFailedPoints_
 Number of failed TrackPoints.
 
bool trackHasChanged_
 has anything in the Track been changed since the fit? -> fit isn't valid anymore
 
bool trackIsPruned_
 Information has been stripped off, no refitting possible!
 
double charge_
 fitted charge
 
double chi2_
 
double ndf_
 

Additional Inherited Members

- Protected Member Functions inherited from genfit::FitStatus
 ClassDef (FitStatus, 1)
 

Detailed Description

FitStatus for use with AbsKalmanFitter implementations.

Definition at line 36 of file KalmanFitStatus.h.

Constructor & Destructor Documentation

◆ KalmanFitStatus()

genfit::KalmanFitStatus::KalmanFitStatus ( )
inline

◆ ~KalmanFitStatus()

virtual genfit::KalmanFitStatus::~KalmanFitStatus ( )
inlinevirtual

Definition at line 44 of file KalmanFitStatus.h.

44{};

Member Function Documentation

◆ clone()

virtual FitStatus * genfit::KalmanFitStatus::clone ( ) const
inlinevirtual

Reimplemented from genfit::FitStatus.

Definition at line 46 of file KalmanFitStatus.h.

46{return new KalmanFitStatus(*this);}

◆ getBackwardChi2()

double genfit::KalmanFitStatus::getBackwardChi2 ( ) const
inline

Definition at line 53 of file KalmanFitStatus.h.

53{return FitStatus::getChi2();}
double getChi2() const
Get chi^2 of the fit.
Definition FitStatus.h:74

◆ getBackwardNdf()

double genfit::KalmanFitStatus::getBackwardNdf ( ) const
inline

Definition at line 55 of file KalmanFitStatus.h.

55{return FitStatus::getNdf();}
double getNdf() const
Get the degrees of freedom of the fit.
Definition FitStatus.h:76

◆ getBackwardPVal()

double genfit::KalmanFitStatus::getBackwardPVal ( ) const
inline

Definition at line 58 of file KalmanFitStatus.h.

58{return FitStatus::getPVal(); }
virtual double getPVal() const
Get the p value of the fit.
Definition FitStatus.h:82

◆ getForwardChi2()

double genfit::KalmanFitStatus::getForwardChi2 ( ) const
inline

Definition at line 52 of file KalmanFitStatus.h.

52{return fChi2_;}

◆ getForwardNdf()

double genfit::KalmanFitStatus::getForwardNdf ( ) const
inline

Definition at line 54 of file KalmanFitStatus.h.

54{return fNdf_;}

◆ getForwardPVal()

double genfit::KalmanFitStatus::getForwardPVal ( ) const
inline

Definition at line 57 of file KalmanFitStatus.h.

57{return ROOT::Math::chisquared_cdf_c(fChi2_, fNdf_);}

◆ getNumIterations()

unsigned int genfit::KalmanFitStatus::getNumIterations ( ) const
inline

Definition at line 48 of file KalmanFitStatus.h.

48{return numIterations_;}

◆ getTrackLen()

double genfit::KalmanFitStatus::getTrackLen ( ) const
inline

Definition at line 51 of file KalmanFitStatus.h.

51{return trackLen_;}

◆ isFittedWithDaf()

bool genfit::KalmanFitStatus::isFittedWithDaf ( ) const
inline

Definition at line 49 of file KalmanFitStatus.h.

49{return fittedWithDaf_;}

◆ isFittedWithReferenceTrack()

bool genfit::KalmanFitStatus::isFittedWithReferenceTrack ( ) const
inline

Definition at line 50 of file KalmanFitStatus.h.

◆ Print()

void genfit::KalmanFitStatus::Print ( const Option_t *  = "") const
virtual

Reimplemented from genfit::FitStatus.

Definition at line 27 of file KalmanFitStatus.cc.

28{
30 if (fittedWithDaf_) std::cout << " track has been fitted with DAF,";
31 if (fittedWithReferenceTrack_) std::cout << " track has been fitted with reference track,";
32 if (isFitted_) {
33 std::cout << " numIterations = " << numIterations_ << ", ";
34 std::cout << "track length = " << trackLen_ << ", ";
35 std::cout << "fChi2 = " << fChi2_ << ", ";
36 std::cout << "bChi2 = " << FitStatus::getChi2() << ", ";
37 std::cout << "fNdf = " << fNdf_ << ", ";
38 std::cout << "bNdf = " << FitStatus::getNdf() << ", ";
39 std::cout << "fPVal = " << getForwardPVal() << ", ";
40 std::cout << "bPVal = " << getBackwardPVal() << "\n";
41 }
42 std::cout << "\n";
43}
bool isFitted_
has the track been fitted?
Definition FitStatus.h:100
virtual void Print(const Option_t *="") const
Definition FitStatus.cc:27
double getForwardPVal() const
double getBackwardPVal() const

◆ setBackwardChi2()

void genfit::KalmanFitStatus::setBackwardChi2 ( double  bChi2)
inline

Definition at line 65 of file KalmanFitStatus.h.

65{FitStatus::setChi2(bChi2);}
void setChi2(const double &chi2)
Definition FitStatus.h:92

◆ setBackwardNdf()

void genfit::KalmanFitStatus::setBackwardNdf ( double  bNdf)
inline

Definition at line 67 of file KalmanFitStatus.h.

67{FitStatus::setNdf(bNdf);}
void setNdf(const double &ndf)
Definition FitStatus.h:93

◆ setForwardChi2()

void genfit::KalmanFitStatus::setForwardChi2 ( double  fChi2)
inline

Definition at line 64 of file KalmanFitStatus.h.

64{fChi2_ = fChi2;}

◆ setForwardNdf()

void genfit::KalmanFitStatus::setForwardNdf ( double  fNdf)
inline

Definition at line 66 of file KalmanFitStatus.h.

66{fNdf_ = fNdf;}

◆ setIsFittedWithDaf()

void genfit::KalmanFitStatus::setIsFittedWithDaf ( bool  fittedWithDaf = true)
inline

Definition at line 61 of file KalmanFitStatus.h.

61{fittedWithDaf_ = fittedWithDaf;}

◆ setIsFittedWithReferenceTrack()

void genfit::KalmanFitStatus::setIsFittedWithReferenceTrack ( bool  fittedWithReferenceTrack = true)
inline

Definition at line 62 of file KalmanFitStatus.h.

62{fittedWithReferenceTrack_ = fittedWithReferenceTrack;}

◆ setNumIterations()

void genfit::KalmanFitStatus::setNumIterations ( unsigned int  numIterations)
inline

Definition at line 60 of file KalmanFitStatus.h.

60{numIterations_ = numIterations;}

◆ setTrackLen()

void genfit::KalmanFitStatus::setTrackLen ( double  trackLen)
inline

Definition at line 63 of file KalmanFitStatus.h.

63{trackLen_ = trackLen;}

Member Data Documentation

◆ fChi2_

double genfit::KalmanFitStatus::fChi2_
protected

Definition at line 79 of file KalmanFitStatus.h.

◆ fittedWithDaf_

bool genfit::KalmanFitStatus::fittedWithDaf_
protected

Definition at line 74 of file KalmanFitStatus.h.

◆ fittedWithReferenceTrack_

bool genfit::KalmanFitStatus::fittedWithReferenceTrack_
protected

Definition at line 75 of file KalmanFitStatus.h.

◆ fNdf_

double genfit::KalmanFitStatus::fNdf_
protected

Definition at line 80 of file KalmanFitStatus.h.

◆ fPval_

double genfit::KalmanFitStatus::fPval_
protected

Definition at line 81 of file KalmanFitStatus.h.

◆ numIterations_

unsigned int genfit::KalmanFitStatus::numIterations_
protected

Definition at line 73 of file KalmanFitStatus.h.

◆ trackLen_

double genfit::KalmanFitStatus::trackLen_
protected

Definition at line 77 of file KalmanFitStatus.h.


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