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
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

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()) return true;
27  else if(lhs.ieta()>rhs.ieta()) return false;
28  else return lhs.iphi()<rhs.iphi();
29  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:53
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51