CMS 3D CMS Logo

Public Member Functions

L1TCompare::RctObjectComp Class Reference

Inheritance diagram for L1TCompare::RctObjectComp:
binary_function

List of all members.

Public Member Functions

bool operator() (const RctObject &a, const RctObject &b) const

Detailed Description

Definition at line 132 of file L1TCompare.h.


Member Function Documentation

bool L1TCompare::RctObjectComp::operator() ( const RctObject a,
const RctObject b 
) const [inline]

Definition at line 136 of file L1TCompare.h.

References L1TCompare::RctObject::eta_, L1TCompare::RctObject::phi_, and L1TCompare::RctObject::rank_.

    {
      // for equal rank I don't know what the appropriate sorting is.
      if ( a.rank_ == b.rank_ ) {
        if ( a.eta_ == b.eta_ ) {
          return a.phi_ < b.phi_;
        }
        else {
          return a.eta_ < b.eta_;
        }
      }
      else {
        return a.rank_ < b.rank_;
      }
    }