CMS 3D CMS Logo

List of all members | Public Member Functions
EBDetIdSorter Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 24 of file Multi5x5ClusterAlgo.cc.

Member Function Documentation

◆ operator()()

bool EBDetIdSorter::operator() ( const EBDetId lhs,
const EBDetId rhs 
)
inline

Definition at line 25 of file Multi5x5ClusterAlgo.cc.

References EBDetId::ieta(), and EBDetId::iphi().

25  {
26  if (lhs.ieta() < rhs.ieta())
27  return true;
28  else if (lhs.ieta() > rhs.ieta())
29  return false;
30  else
31  return lhs.iphi() < rhs.iphi();
32  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49