 |
Belle II Software
release-05-02-19
|
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;
60 enum fields { C = 1 << 0,
128 virtual double getPVal()
const {
return std::max(0.,ROOT::Math::chisquared_cdf_c(
chi2_, ndf_));}
130 void setIsFitted(
bool fitted =
true) {
isFitted_ = fitted;}
133 void setNFailedPoints(
int nFailedPoints) {
nFailedPoints_ = nFailedPoints;}
134 void setHasTrackChanged(
bool trackChanged =
true) {
trackHasChanged_ = trackChanged;}
139 void setChi2(
const double& chi2) {
chi2_ = chi2;}
140 void setNdf(
const double& ndf) {ndf_ = ndf;}
142 virtual void Print(
const Option_t* =
"")
const;
172 #endif // genfit_FitStatus_h
double getCharge() const
Get the fitted charge.
double charge(int pdgCode)
Returns electric charge of a particle with given pdg code.
double getChi2() const
Get chi^2 of the fit.
Info which information has been pruned from the Track.
bool isTrackPruned() const
Has the track been pruned after the fit?
bool hasTrackChanged() const
Has anything in the Track been changed since the fit?
Defines for I/O streams used for error and debug printing.
bool isFitted_
has the track been fitted?
bool isFitConvergedPartially_
did the fit converge with a subset of all TrackPoints?
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.
virtual double getPVal() const
Get the p value of the fit.
double chi2_
These are provided for the sake of the fitter, and their interpretation may vary.
bool trackHasChanged_
has anything in the Track been changed since the fit? -> fit isn't valid anymore
bool isFitConvergedFully_
did the fit converge with all TrackPoints?
bool isFitConverged(bool inAllPoints=true) const
Did the fit converge (in all Points or only partially)?
double charge_
fitted charge
double getNdf() const
Get the degrees of freedom of the fit.
int nFailedPoints_
Number of failed TrackPoints.
PruneFlags pruneFlags_
Prune flags.
Class where important numbers and properties of a fit can be stored.
bool isFitted() const
Has the track been fitted?
bool hasFlags(Option_t *option="CFLWRMIU") const
check if all the given flags are set