CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
L1GctElectronSorter::rank_gt Struct Reference

#include <L1GctElectronSorter.h>

Inheritance diagram for L1GctElectronSorter::rank_gt:

Public Member Functions

bool operator() (const prioritisedEmCand &x, const prioritisedEmCand &y)
 

Detailed Description

comparison operator for sort, used here and in the ElectronFinalSort Candidates of equal rank are sorted by priority, with the lower value given precedence

Definition at line 52 of file L1GctElectronSorter.h.

Member Function Documentation

bool L1GctElectronSorter::rank_gt::operator() ( const prioritisedEmCand x,
const prioritisedEmCand y 
)
inline

Definition at line 53 of file L1GctElectronSorter.h.

References L1GctElectronSorter::prioritisedEmCand::priority, and L1GctElectronSorter::prioritisedEmCand::rank().

53  {
54  return ( x.rank() > y.rank() || ( (x.rank() == y.rank()) && (x.priority < y.priority) ) ) ;
55  }
x
Definition: VDTMath.h:216