Main Page
Namespaces
Classes
Package Documentation
Validation
RecoTrack
interface
trackFromSeedFitFailed.h
Go to the documentation of this file.
1
#ifndef Validation_RecoTrack_trackFomSeedFitFailed_h
2
#define Validation_RecoTrack_trackFomSeedFitFailed_h
3
4
#include "
DataFormats/TrackReco/interface/Track.h
"
5
6
inline
bool
trackFromSeedFitFailed
(
const
reco::Track
&
track
) {
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
trackFromSeedFitFailed
bool trackFromSeedFitFailed(const reco::Track &track)
Definition:
trackFromSeedFitFailed.h:6
reco::TrackBase::chi2
double chi2() const
chi-squared of the fit
Definition:
TrackBase.h:582
reco::TrackBase::ndof
double ndof() const
number of degrees of freedom of the fit
Definition:
TrackBase.h:588
HiIsolationCommonParameters_cff.track
track
Definition:
HiIsolationCommonParameters_cff.py:9
reco::Track
Definition:
Track.h:28
reco::TrackBase::charge
int charge() const
track electric charge
Definition:
TrackBase.h:600
Track.h
Generated for CMSSW Reference Manual by
1.8.11