CMS 3D CMS Logo

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 35 of file Multi5x5ClusterAlgo.cc.

Member Function Documentation

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

Definition at line 36 of file Multi5x5ClusterAlgo.cc.

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

36  {
37  if (lhs.zside() < rhs.zside())
38  return true;
39  else if (lhs.zside() > rhs.zside())
40  return false;
41  else { //z is equal, onto ix
42  if (lhs.ix() < rhs.ix())
43  return true;
44  else if (lhs.ix() > rhs.ix())
45  return false;
46  else
47  return lhs.iy() < rhs.iy();
48  }
49  }
int ix() const
Definition: EEDetId.h:77
int zside() const
Definition: EEDetId.h:71
int iy() const
Definition: EEDetId.h:83