CMS 3D CMS Logo

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 59 of file ConversionTrackPairFinder.h.

Member Function Documentation

◆ operator()()

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

Definition at line 61 of file ConversionTrackPairFinder.h.

References a, and b.

61  {
62  if (a.numberOfValidHits() == b.numberOfValidHits()) {
63  return a.normalizedChi2() < b.normalizedChi2();
64  } else {
65  return a.numberOfValidHits() > b.numberOfValidHits();
66  }
67  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119