test
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 183 of file L1MuDTTrack.h.

Member Function Documentation

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

Definition at line 185 of file L1MuDTTrack.h.

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

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