CMS 3D CMS Logo

L1TCompare::RctObjectComp Class Reference

List of all members.

Public Member Functions

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


Detailed Description

Definition at line 129 of file L1TCompare.h.


Member Function Documentation

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

Definition at line 133 of file L1TCompare.h.

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

00134     {
00135       // for equal rank I don't know what the appropriate sorting is.
00136       if ( a.rank_ == b.rank_ ) {
00137         if ( a.eta_ == b.eta_ ) {
00138           return a.phi_ < b.phi_;
00139         }
00140         else {
00141           return a.eta_ < b.eta_;
00142         }
00143       }
00144       else {
00145         return a.rank_ < b.rank_;
00146       }
00147     }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:27:00 2009 for CMSSW by  doxygen 1.5.4