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
EEDetIdSorter Struct Reference

Public Member Functions

bool operator() (const EEDetId &lhs, const EEDetId &rhs)
 

Detailed Description

Definition at line 32 of file Multi5x5ClusterAlgo.cc.

Member Function Documentation

bool EEDetIdSorter::operator() ( const EEDetId lhs,
const EEDetId rhs 
)
inline

Definition at line 33 of file Multi5x5ClusterAlgo.cc.

References EEDetId::ix(), EEDetId::iy(), and EEDetId::zside().

33  {
34  if(lhs.zside()<rhs.zside()) return true;
35  else if(lhs.zside()>rhs.zside()) return false;
36  else { //z is equal, onto ix
37  if(lhs.ix()<rhs.ix()) return true;
38  else if(lhs.ix()>rhs.ix()) return false;
39  else return lhs.iy()<rhs.iy();
40  }
41  }
int ix() const
Definition: EEDetId.h:76
int zside() const
Definition: EEDetId.h:70
int iy() const
Definition: EEDetId.h:82