23 #ifndef genfit_KalmanFitStatus_h
24 #define genfit_KalmanFitStatus_h
26 #include "FitStatus.h"
28 #include <Math/ProbFunc.h>
41 FitStatus(), numIterations_(0), fittedWithDaf_(
false), fittedWithReferenceTrack_(
false),
42 trackLen_(0), fChi2_(-1e99), fNdf_(-1e99), fPval_(-1e99) {;}
48 unsigned int getNumIterations()
const {
return numIterations_;}
49 bool isFittedWithDaf()
const {
return fittedWithDaf_;}
50 bool isFittedWithReferenceTrack()
const {
return fittedWithReferenceTrack_;}
51 double getTrackLen()
const {
return trackLen_;}
52 double getForwardChi2()
const {
return fChi2_;}
54 double getForwardNdf()
const {
return fNdf_;}
57 double getForwardPVal()
const {
return std::max(0.,ROOT::Math::chisquared_cdf_c(fChi2_, fNdf_));}
60 void setNumIterations(
unsigned int numIterations) {numIterations_ = numIterations;}
61 void setIsFittedWithDaf(
bool fittedWithDaf =
true) {fittedWithDaf_ = fittedWithDaf;}
62 void setIsFittedWithReferenceTrack(
bool fittedWithReferenceTrack =
true) {fittedWithReferenceTrack_ = fittedWithReferenceTrack;}
63 void setTrackLen(
double trackLen) {trackLen_ = trackLen;}
64 void setForwardChi2(
double fChi2) {fChi2_ = fChi2;}
65 void setBackwardChi2(
double bChi2) {FitStatus::setChi2(bChi2);}
66 void setForwardNdf(
double fNdf) {fNdf_ = fNdf;}
67 void setBackwardNdf(
double bNdf) {FitStatus::setNdf(bNdf);}
69 virtual void Print(
const Option_t* =
"")
const override;
73 unsigned int numIterations_;
75 bool fittedWithReferenceTrack_;
Class where important numbers and properties of a fit can be stored.
virtual double getPVal() const
Get the p value of the fit.
double getChi2() const
Get chi^2 of the fit.
double getNdf() const
Get the degrees of freedom of the fit.
FitStatus for use with AbsKalmanFitter implementations.
Defines for I/O streams used for error and debug printing.