Public Member Functions | |
bool | operator() (const RctObject &a, const RctObject &b) const |
Definition at line 129 of file L1TCompare.h.
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 }