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

Member Function Documentation

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

Definition at line 136 of file L1TCompare.h.

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

137  {
138  // for equal rank I don't know what the appropriate sorting is.
139  if ( a.rank_ == b.rank_ ) {
140  if ( a.eta_ == b.eta_ ) {
141  return a.phi_ < b.phi_;
142  }
143  else {
144  return a.eta_ < b.eta_;
145  }
146  }
147  else {
148  return a.rank_ < b.rank_;
149  }
150  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121