Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-05-09 22:37:30

0001 #ifndef DataFormats_TrackReco_trackFomSeedFitFailed_h
0002 #define DataFormats_TrackReco_trackFomSeedFitFailed_h
0003 
0004 #include "DataFormats/TrackReco/interface/Track.h"
0005 
0006 inline bool trackFromSeedFitFailed(const reco::Track& track) {
0007   // these magic values denote a case where the fit has failed
0008   return track.chi2() < 0 && track.ndof() < 0 && track.charge() == 0;
0009 }
0010 
0011 #endif