CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
trackFromSeedFitFailed.h
Go to the documentation of this file.
1 #ifndef Validation_RecoTrack_trackFomSeedFitFailed_h
2 #define Validation_RecoTrack_trackFomSeedFitFailed_h
3 
5 
7  // these magic values denote a case where the fit has failed
8  return track.chi2() < 0 && track.ndof() < 0 && track.charge() == 0;
9 }
10 
11 #endif
bool trackFromSeedFitFailed(const reco::Track &track)
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:587
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:590
int charge() const
track electric charge
Definition: TrackBase.h:596