CMS 3D CMS Logo

Public Member Functions

EBDetIdSorter Struct Reference

List of all members.

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().

                                                        {
    if(lhs.ieta()<rhs.ieta()) return true;
    else if(lhs.ieta()>rhs.ieta()) return false;
    else return lhs.iphi()<rhs.iphi(); 
  }