CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
CrossingPtBasedLinearizationPointFinder::CompareTwoTracks Struct Reference

Public Member Functions

int operator() (const reco::TransientTrack &a, const reco::TransientTrack &b)
 

Detailed Description

Private struct to order tracks by momentum

Definition at line 72 of file CrossingPtBasedLinearizationPointFinder.h.

Member Function Documentation

int CrossingPtBasedLinearizationPointFinder::CompareTwoTracks::operator() ( const reco::TransientTrack a,
const reco::TransientTrack b 
)
inline

Definition at line 73 of file CrossingPtBasedLinearizationPointFinder.h.

References reco::TransientTrack::initialFreeState(), PV3DBase< T, PVType, FrameType >::mag(), and FreeTrajectoryState::momentum().

73  {
74  return a.initialFreeState().momentum().mag() >
76 // return a.p() > b.p();
77  };
T mag() const
Definition: PV3DBase.h:66
GlobalVector momentum() const
FreeTrajectoryState initialFreeState() const