test
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 148 of file L1TCompare.h.

Member Function Documentation

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

Definition at line 152 of file L1TCompare.h.

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

153  {
154  // for equal rank I don't know what the appropriate sorting is.
155  if ( a.rank_ == b.rank_ ) {
156  if ( a.eta_ == b.eta_ ) {
157  return a.phi_ < b.phi_;
158  }
159  else {
160  return a.eta_ < b.eta_;
161  }
162  }
163  else {
164  return a.rank_ < b.rank_;
165  }
166  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121