23 #ifndef genfit_FitStatus_h
24 #define genfit_FitStatus_h
27 #include <Math/ProbFuncMathCore.h>
51 void setFlags(Option_t* option =
"");
53 bool hasFlags(Option_t* option =
"CFLWRMIU")
const;
57 void Print(
const Option_t* =
"")
const;
126 virtual double getPVal()
const {
return std::max(0.,ROOT::Math::chisquared_cdf_c(
chi2_,
ndf_));}
140 virtual void Print(
const Option_t* =
"")
const;
170 #endif // genfit_FitStatus_h
PruneFlags & getPruneFlags()
double getNdf() const
Get the degrees of freedom of the fit.
bool hasTrackChanged() const
Has anything in the Track been changed since the fit?
virtual void Print(const Option_t *="") const
Info which information has been pruned from the Track.
int nFailedPoints_
Number of failed TrackPoints.
bool isFitted() const
Has the track been fitted?
bool isFitConvergedFully() const
void setNFailedPoints(int nFailedPoints)
bool hasFlags(Option_t *option="CFLWRMIU") const
check if all the given flags are set
void setIsFitted(bool fitted=true)
double getCharge() const
Get the fitted charge.
bool isFitConvergedPartially_
did the fit converge with a subset of all TrackPoints?
double charge_
fitted charge
PruneFlags pruneFlags_
Prune flags.
void Print(const Option_t *="") const
bool isTrackPruned() const
Has the track been pruned after the fit?
void setNdf(const double &ndf)
Class where important numbers and properties of a fit can be stored.
virtual double getPVal() const
Get the p value of the fit.
void setCharge(double charge)
bool isFitConvergedPartially() const
bool isFitConvergedFully_
did the fit converge with all TrackPoints?
double getChi2() const
Get chi^2 of the fit.
bool isPruned() const
check if any of the flags is set
void setFlags(Option_t *option="")
does not reset! If a flag is already true and is not in opt, it will stay true.
void setHasTrackChanged(bool trackChanged=true)
int getNFailedPoints() const
virtual FitStatus * clone() const
bool isFitConverged(bool inAllPoints=true) const
Did the fit converge (in all Points or only partially)?
void setIsFitConvergedPartially(bool fitConverged=true)
bool isFitted_
has the track been fitted?
bool trackHasChanged_
has anything in the Track been changed since the fit? -> fit isn't valid anymore
void setIsFitConvergedFully(bool fitConverged=true)
void setChi2(const double &chi2)
Defines for I/O streams used for error and debug printing.