CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
trackFromSeedFitFailed.h File Reference
#include "DataFormats/TrackReco/interface/Track.h"

Go to the source code of this file.

Functions

bool trackFromSeedFitFailed (const reco::Track &track)
 

Function Documentation

bool trackFromSeedFitFailed ( const reco::Track track)
inline

Definition at line 6 of file trackFromSeedFitFailed.h.

References reco::TrackBase::charge(), reco::TrackBase::chi2(), and reco::TrackBase::ndof().

Referenced by MultiTrackValidator::analyze(), MTVHistoProducerAlgoForTracker::fill_generic_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_ResoAndPull_recoTrack_histos(), MTVHistoProducerAlgoForTracker::fill_simAssociated_recoTrack_histos(), and TrackingNtuple::fillSeeds().

6  {
7  // these magic values denote a case where the fit has failed
8  return track.chi2() < 0 && track.ndof() < 0 && track.charge() == 0;
9 }
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:544
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:550
int charge() const
track electric charge
Definition: TrackBase.h:562