CMS 3D CMS Logo

Public Member Functions

EEDetIdSorter Struct Reference

List of all members.

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

                                                        {
    if(lhs.zside()<rhs.zside()) return true;
    else if(lhs.zside()>rhs.zside()) return false;
    else { //z is equal, onto ix
      if(lhs.ix()<rhs.ix()) return true;
      else if(lhs.ix()>rhs.ix()) return false;
      else return lhs.iy()<rhs.iy();
    }
  }