PandaRoot
genfit::KalmanFitStatus Class Reference

FitStatus for use with AbsKalmanFitter implementations. More...

#include <KalmanFitStatus.h>

Inheritance diagram for genfit::KalmanFitStatus:
genfit::FitStatus

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? More...
 
bool isFitConverged (bool inAllPoints=true) const
 Did the fit converge (in all Points or only partially)? More...
 
bool isFitConvergedFully () const
 
bool isFitConvergedPartially () const
 
int getNFailedPoints () const
 
bool hasTrackChanged () const
 Has anything in the Track been changed since the fit? More...
 
bool isTrackPruned () const
 Has the track been pruned after the fit? More...
 
double getCharge () const
 Get the fitted charge. More...
 
double getChi2 () const
 Get chi^2 of the fit. More...
 
double getNdf () const
 Get the degrees of freedom of the fit. More...
 
virtual double getPVal () const
 Get the p value of the fit. More...
 
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 setCharge (double charge)
 
PruneFlagsgetPruneFlags ()
 
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? More...
 
bool isFitConvergedFully_
 did the fit converge with all TrackPoints? More...
 
bool isFitConvergedPartially_
 did the fit converge with a subset of all TrackPoints? More...
 
int nFailedPoints_
 Number of failed TrackPoints. More...
 
bool trackHasChanged_
 has anything in the Track been changed since the fit? -> fit isn't valid anymore More...
 
PruneFlags pruneFlags_
 Prune flags. More...
 
double charge_
 fitted charge More...
 
double chi2_
 
double ndf_
 

Additional Inherited Members

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

Detailed Description

FitStatus for use with AbsKalmanFitter implementations.

Definition at line 35 of file KalmanFitStatus.h.

Constructor & Destructor Documentation

◆ KalmanFitStatus()

genfit::KalmanFitStatus::KalmanFitStatus ( )
inline

◆ ~KalmanFitStatus()

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

Definition at line 40 of file KalmanFitStatus.h.

40 {};

Member Function Documentation

◆ clone()

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

Reimplemented from genfit::FitStatus.

Definition at line 42 of file KalmanFitStatus.h.

References KalmanFitStatus().

42 { return new KalmanFitStatus(*this); }

◆ getBackwardChi2()

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

Definition at line 49 of file KalmanFitStatus.h.

References genfit::FitStatus::getChi2().

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

◆ getBackwardNdf()

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

Definition at line 51 of file KalmanFitStatus.h.

References genfit::FitStatus::getNdf().

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

◆ getBackwardPVal()

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

Definition at line 54 of file KalmanFitStatus.h.

References genfit::FitStatus::getPVal().

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

◆ getForwardChi2()

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

Definition at line 48 of file KalmanFitStatus.h.

References fChi2_.

48 { return fChi2_; }

◆ getForwardNdf()

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

Definition at line 50 of file KalmanFitStatus.h.

References fNdf_.

50 { return fNdf_; }

◆ getForwardPVal()

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

Definition at line 53 of file KalmanFitStatus.h.

References fChi2_, fNdf_, and max().

53 { return std::max(0., ROOT::Math::chisquared_cdf_c(fChi2_, fNdf_)); }
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25

◆ getNumIterations()

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

Definition at line 44 of file KalmanFitStatus.h.

References numIterations_.

44 { return numIterations_; }

◆ getTrackLen()

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

Definition at line 47 of file KalmanFitStatus.h.

References trackLen_.

47 { return trackLen_; }

◆ isFittedWithDaf()

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

Definition at line 45 of file KalmanFitStatus.h.

References fittedWithDaf_.

45 { return fittedWithDaf_; }

◆ isFittedWithReferenceTrack()

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

Definition at line 46 of file KalmanFitStatus.h.

References fittedWithReferenceTrack_.

◆ Print()

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

Reimplemented from genfit::FitStatus.

Referenced by setBackwardNdf().

◆ setBackwardChi2()

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

Definition at line 61 of file KalmanFitStatus.h.

References genfit::FitStatus::setChi2().

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

◆ setBackwardNdf()

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

Definition at line 63 of file KalmanFitStatus.h.

References Print(), and genfit::FitStatus::setNdf().

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

◆ setForwardChi2()

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

Definition at line 60 of file KalmanFitStatus.h.

References fChi2_.

60 { fChi2_ = fChi2; }

◆ setForwardNdf()

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

Definition at line 62 of file KalmanFitStatus.h.

References fNdf_.

62 { fNdf_ = fNdf; }

◆ setIsFittedWithDaf()

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

Definition at line 57 of file KalmanFitStatus.h.

References fittedWithDaf_.

57 { fittedWithDaf_ = fittedWithDaf; }

◆ setIsFittedWithReferenceTrack()

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

Definition at line 58 of file KalmanFitStatus.h.

References fittedWithReferenceTrack_.

58 { fittedWithReferenceTrack_ = fittedWithReferenceTrack; }

◆ setNumIterations()

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

Definition at line 56 of file KalmanFitStatus.h.

References numIterations_.

56 { numIterations_ = numIterations; }

◆ setTrackLen()

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

Definition at line 59 of file KalmanFitStatus.h.

References trackLen_.

59 { trackLen_ = trackLen; }

Member Data Documentation

◆ fChi2_

double genfit::KalmanFitStatus::fChi2_
protected

Definition at line 74 of file KalmanFitStatus.h.

Referenced by getForwardChi2(), getForwardPVal(), and setForwardChi2().

◆ fittedWithDaf_

bool genfit::KalmanFitStatus::fittedWithDaf_
protected

Definition at line 69 of file KalmanFitStatus.h.

Referenced by isFittedWithDaf(), and setIsFittedWithDaf().

◆ fittedWithReferenceTrack_

bool genfit::KalmanFitStatus::fittedWithReferenceTrack_
protected

Definition at line 70 of file KalmanFitStatus.h.

Referenced by isFittedWithReferenceTrack(), and setIsFittedWithReferenceTrack().

◆ fNdf_

double genfit::KalmanFitStatus::fNdf_
protected

Definition at line 75 of file KalmanFitStatus.h.

Referenced by getForwardNdf(), getForwardPVal(), and setForwardNdf().

◆ fPval_

double genfit::KalmanFitStatus::fPval_
protected

Definition at line 76 of file KalmanFitStatus.h.

◆ numIterations_

unsigned int genfit::KalmanFitStatus::numIterations_
protected

Definition at line 68 of file KalmanFitStatus.h.

Referenced by getNumIterations(), and setNumIterations().

◆ trackLen_

double genfit::KalmanFitStatus::trackLen_
protected

Definition at line 72 of file KalmanFitStatus.h.

Referenced by getTrackLen(), and setTrackLen().


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