CMS 3D CMS Logo

Public Member Functions

ConversionTrackPairFinder::ByNumOfHits Class Reference

List of all members.

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().

                                                                               {
    if (a.numberOfValidHits()  == b.numberOfValidHits()  ) {
      return a.normalizedChi2() < b.normalizedChi2();
    } else {
      return a.numberOfValidHits()  > b.numberOfValidHits() ;
    }
  }