EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Class where important numbers and properties of a fit can be stored. More...
#include <fun4all_GenFit/blob/master/core/include/FitStatus.h>
Public Member Functions | |
FitStatus () | |
virtual | ~FitStatus () |
virtual FitStatus * | clone () const |
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 | setCharge (double charge) |
PruneFlags & | getPruneFlags () |
void | setChi2 (const double &chi2) |
void | setNdf (const double &ndf) |
virtual void | Print (const Option_t *="") const |
Protected Member Functions | |
ClassDef (FitStatus, 3) | |
Protected Attributes | |
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 | |
PruneFlags | pruneFlags_ |
Prune flags. | |
double | charge_ |
fitted charge | |
double | chi2_ |
double | ndf_ |
Class where important numbers and properties of a fit can be stored.
Definition at line 80 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 80 of file FitStatus.h
|
inline |
Definition at line 84 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 84 of file FitStatus.h
Referenced by clone().
|
inlinevirtual |
Definition at line 89 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 89 of file FitStatus.h
|
protected |
|
inlinevirtual |
Reimplemented in genfit::GblFitStatus, and genfit::KalmanFitStatus.
Definition at line 91 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 91 of file FitStatus.h
References FitStatus().
|
inline |
Get the fitted charge.
Definition at line 118 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 118 of file FitStatus.h
References charge_.
Referenced by genfit::GFRaveTrackParameters::getCharge(), genfit::GFTrackToTrack(), PHG4TrackFastSim::process_event(), and B0TrackFastSim::process_event().
|
inline |
Get chi^2 of the fit.
Definition at line 120 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 120 of file FitStatus.h
References chi2_.
Referenced by PHTpcTrackFollower::followTracks(), PHGenFit2::Track::get_chi2(), PHGenFit::Track::get_chi2(), genfit::KalmanFitStatus::getBackwardChi2(), genfit::GFTrackToTrack(), genfit::KalmanFitStatus::Print(), PHG4TrackFastSim::process_event(), B0TrackFastSim::process_event(), and PHTpcTrackFollower::propagateTrack().
|
inline |
Get the degrees of freedom of the fit.
Definition at line 122 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 122 of file FitStatus.h
References ndf_.
Referenced by PHTpcTrackFollower::followTracks(), PHGenFit2::Track::get_ndf(), PHGenFit::Track::get_ndf(), genfit::KalmanFitStatus::getBackwardNdf(), genfit::GFTrackToTrack(), genfit::KalmanFitStatus::Print(), PHG4TrackFastSim::process_event(), B0TrackFastSim::process_event(), and PHTpcTrackFollower::propagateTrack().
|
inline |
Definition at line 112 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 112 of file FitStatus.h
References nFailedPoints_.
Referenced by PHTpcTrackFollower::followTracks(), genfit::DAF::processTrackWithRep(), and PHTpcTrackFollower::propagateTrack().
|
inline |
Definition at line 137 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 137 of file FitStatus.h
References pruneFlags_.
Referenced by genfit::KalmanFitterInfo::getFittedState(), and main().
|
inlinevirtual |
Get the p value of the fit.
Virtual, because the fitter may use a different probability distribution.
Definition at line 128 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 128 of file FitStatus.h
References chi2_, max, and ndf_.
Referenced by genfit::KalmanFitStatus::getBackwardPVal(), and main().
|
inline |
Has anything in the Track been changed since the fit?
Definition at line 114 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 114 of file FitStatus.h
References trackHasChanged_.
|
inline |
Did the fit converge (in all Points or only partially)?
Per default, this function will only be true, if all TrackPoints (with measurements) have been used in the fit, and the fit has converged.
If one or more TrackPoints have been skipped (e.g. plane could not be constructed or extrapolation to plane failed), but the fit otherwise met the convergence criteria, isFitConverged(false) will return true.
Definition at line 105 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 105 of file FitStatus.h
References isFitConvergedFully_, and isFitConvergedPartially_.
Referenced by genfit::GFTrackToTrack(), main(), and PHGenFit::Fitter::processTrack().
|
inline |
Definition at line 110 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 110 of file FitStatus.h
References isFitConvergedFully_.
|
inline |
Definition at line 111 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 111 of file FitStatus.h
References isFitConvergedPartially_.
|
inline |
Has the track been fitted?
Definition at line 94 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 94 of file FitStatus.h
References isFitted_.
Referenced by genfit::EventDisplay::drawEvent(), genfit::AbsKalmanFitter::isTrackFitted(), and genfit::DAF::processTrackWithRep().
|
inline |
Has the track been pruned after the fit?
Definition at line 116 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 116 of file FitStatus.h
References genfit::PruneFlags::isPruned(), and pruneFlags_.
Referenced by genfit::KalmanFitter::processTrackPartially(), genfit::KalmanFitterRefTrack::processTrackWithRep(), and genfit::KalmanFitter::processTrackWithRep().
|
virtual |
Reimplemented in genfit::KalmanFitStatus, and genfit::GblFitStatus.
Definition at line 88 of file FitStatus.cc.
View newest version in sPHENIX GitHub at line 88 of file FitStatus.cc
References charge_, isFitConvergedFully_, isFitConvergedPartially_, isFitted_, nFailedPoints_, genfit::PruneFlags::Print(), genfit::printOut, pruneFlags_, and trackHasChanged_.
Referenced by genfit::EventDisplay::drawEvent(), main(), and genfit::KalmanFitStatus::Print().
|
inline |
Definition at line 135 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 135 of file FitStatus.h
References charge, and charge_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), and PHRaveVertexing::TranslateSvtxToGenFitTrack().
|
inline |
Definition at line 139 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 139 of file FitStatus.h
References chi2_.
Referenced by genfit::GblFitter::processTrackWithRep(), genfit::KalmanFitStatus::setBackwardChi2(), and PHRaveVertexing::TranslateSvtxToGenFitTrack().
|
inline |
Definition at line 134 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 134 of file FitStatus.h
References trackHasChanged_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep().
|
inline |
Definition at line 131 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 131 of file FitStatus.h
References isFitConvergedFully_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), genfit::DAF::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), and PHRaveVertexing::TranslateSvtxToGenFitTrack().
|
inline |
Definition at line 132 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 132 of file FitStatus.h
References isFitConvergedPartially_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), genfit::DAF::processTrackWithRep(), and genfit::GblFitter::processTrackWithRep().
|
inline |
Definition at line 130 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 130 of file FitStatus.h
References isFitted_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), genfit::DAF::processTrackWithRep(), genfit::GblFitter::processTrackWithRep(), and PHRaveVertexing::TranslateSvtxToGenFitTrack().
|
inline |
Definition at line 140 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 140 of file FitStatus.h
References ndf_.
Referenced by genfit::GblFitter::processTrackWithRep(), genfit::KalmanFitStatus::setBackwardNdf(), and PHRaveVertexing::TranslateSvtxToGenFitTrack().
|
inline |
Definition at line 133 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 133 of file FitStatus.h
References nFailedPoints_.
Referenced by genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), and genfit::GblFitter::processTrackWithRep().
|
protected |
fitted charge
Definition at line 159 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 159 of file FitStatus.h
Referenced by getCharge(), Print(), and setCharge().
|
protected |
These are provided for the sake of the fitter, and their interpretation may vary. For the Kalman-derived fitters in particular, this corresponds to the backwards fit.
Definition at line 163 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 163 of file FitStatus.h
|
protected |
did the fit converge with all TrackPoints?
Definition at line 149 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 149 of file FitStatus.h
Referenced by isFitConverged(), isFitConvergedFully(), Print(), and setIsFitConvergedFully().
|
protected |
did the fit converge with a subset of all TrackPoints?
Definition at line 151 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 151 of file FitStatus.h
Referenced by isFitConverged(), isFitConvergedPartially(), Print(), and setIsFitConvergedPartially().
|
protected |
has the track been fitted?
Definition at line 147 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 147 of file FitStatus.h
Referenced by isFitted(), genfit::KalmanFitStatus::Print(), Print(), and setIsFitted().
|
protected |
Definition at line 164 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 164 of file FitStatus.h
|
protected |
Number of failed TrackPoints.
Definition at line 153 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 153 of file FitStatus.h
Referenced by getNFailedPoints(), Print(), and setNFailedPoints().
|
protected |
Prune flags.
Definition at line 157 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 157 of file FitStatus.h
Referenced by getPruneFlags(), isTrackPruned(), and Print().
|
protected |
has anything in the Track been changed since the fit? -> fit isn't valid anymore
Definition at line 155 of file FitStatus.h.
View newest version in sPHENIX GitHub at line 155 of file FitStatus.h
Referenced by hasTrackChanged(), Print(), and setHasTrackChanged().