CMS 3D CMS Logo

List of all members | Public Member Functions
CompareTwoTracksVectors Struct Reference

#include <ConversionTrackPairFinder.h>

Public Member Functions

bool operator() (const std::vector< reco::TransientTrack > &a, const std::vector< reco::TransientTrack > &b) const
 

Detailed Description

Definition at line 38 of file ConversionTrackPairFinder.h.

Member Function Documentation

◆ operator()()

bool CompareTwoTracksVectors::operator() ( const std::vector< reco::TransientTrack > &  a,
const std::vector< reco::TransientTrack > &  b 
) const
inline

Definition at line 39 of file ConversionTrackPairFinder.h.

References a, b, and perp().

39  {
40  return (a[0].impactPointState().globalMomentum().perp() > b[0].impactPointState().globalMomentum().perp());
41  }
T perp() const
Magnitude of transverse component.
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121