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 const &a, reco::TransientTrack const &b)
 

Detailed Description

Definition at line 69 of file ConversionTrackPairFinder.h.

Member Function Documentation

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

Definition at line 71 of file ConversionTrackPairFinder.h.

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

71  {
72  if (a.numberOfValidHits() == b.numberOfValidHits() ) {
73  return a.normalizedChi2() < b.normalizedChi2();
74  } else {
75  return a.numberOfValidHits() > b.numberOfValidHits() ;
76  }
77  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121