CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ConversionTrackPairFinder::ByNumOfHits Class Reference

Public Member Functions

bool operator() (reco::TransientTrack a, reco::TransientTrack b)
 

Detailed Description

Definition at line 56 of file ConversionTrackPairFinder.h.

Member Function Documentation

bool ConversionTrackPairFinder::ByNumOfHits::operator() ( reco::TransientTrack  a,
reco::TransientTrack  b 
)
inline

Definition at line 58 of file ConversionTrackPairFinder.h.

References reco::TransientTrack::normalizedChi2(), and reco::TransientTrack::numberOfValidHits().

58  {
59  if (a.numberOfValidHits() == b.numberOfValidHits() ) {
60  return a.normalizedChi2() < b.normalizedChi2();
61  } else {
62  return a.numberOfValidHits() > b.numberOfValidHits() ;
63  }
64  }
unsigned short numberOfValidHits() const
number of hits found
double normalizedChi2() const
chi-squared divided by n.d.o.f.