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.

39  {
40  return (a[0].impactPointState().globalMomentum().perp() > b[0].impactPointState().globalMomentum().perp());
41  }

References a, b, and perp().

perp
T perp() const
Magnitude of transverse component.
Definition: Basic3DVectorLD.h:133
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119