CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
L1MuDTTrack::Rank Class Reference

define a rank for muon candidates More...

#include <L1MuDTTrack.h>

Inheritance diagram for L1MuDTTrack::Rank:

Public Member Functions

bool operator() (const L1MuDTTrack *first, const L1MuDTTrack *second) const
 

Detailed Description

define a rank for muon candidates

Definition at line 185 of file L1MuDTTrack.h.

Member Function Documentation

bool L1MuDTTrack::Rank::operator() ( const L1MuDTTrack first,
const L1MuDTTrack second 
) const
inline

Definition at line 187 of file L1MuDTTrack.h.

References L1MuDTTrack::pt(), and L1MuRegionalCand::quality().

187  {
188  unsigned short int rank_f = 0; // rank of first
189  unsigned short int rank_s = 0; // rank of second
190  if ( first ) rank_f = 10 * first->pt() + first->quality();
191  if ( second ) rank_s = 10 * second->pt() + second->quality();
192  return rank_f > rank_s;
193  }
unsigned int pt() const
get pt-code (5 bits)
Definition: L1MuDTTrack.h:74
unsigned int quality() const
return quality