CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
L1TCompare::RctObjectComp Class Reference
Inheritance diagram for L1TCompare::RctObjectComp:

Public Member Functions

bool operator() (const RctObject &a, const RctObject &b) const
 

Detailed Description

Definition at line 141 of file L1TCompare.h.

Member Function Documentation

bool L1TCompare::RctObjectComp::operator() ( const RctObject a,
const RctObject b 
) const
inline

Definition at line 145 of file L1TCompare.h.

References L1TCompare::RctObject::eta_, L1TCompare::RctObject::phi_, and L1TCompare::RctObject::rank_.

146  {
147  // for equal rank I don't know what the appropriate sorting is.
148  if ( a.rank_ == b.rank_ ) {
149  if ( a.eta_ == b.eta_ ) {
150  return a.phi_ < b.phi_;
151  }
152  else {
153  return a.eta_ < b.eta_;
154  }
155  }
156  else {
157  return a.rank_ < b.rank_;
158  }
159  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121