CMS 3D CMS Logo

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

Public Member Functions

bool operator() (const trklet::L1TStub &a, const trklet::L1TStub &b) const
 

Detailed Description

Definition at line 119 of file L1FPGATrackProducer.cc.

Member Function Documentation

bool L1TStubCompare::operator() ( const trklet::L1TStub a,
const trklet::L1TStub b 
) const
inline

Definition at line 121 of file L1FPGATrackProducer.cc.

References trklet::L1TStub::x(), trklet::L1TStub::y(), and trklet::L1TStub::z().

121  {
122  if (a.x() != b.x())
123  return (b.x() > a.x());
124  else {
125  if (a.y() != b.y())
126  return (b.y() > a.y());
127  else
128  return (a.z() > b.z());
129  }
130  }
double z() const
Definition: L1TStub.h:57
double x() const
Definition: L1TStub.h:55
double y() const
Definition: L1TStub.h:56