CMS 3D CMS Logo

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

define a rank for muon candidates More...

#include <L1MuBMTrack.h>

Inheritance diagram for L1MuBMTrack::Rank:

Public Member Functions

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

Detailed Description

define a rank for muon candidates

Definition at line 196 of file L1MuBMTrack.h.

Member Function Documentation

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

Definition at line 198 of file L1MuBMTrack.h.

References L1MuBMTrack::pt(), and L1MuBMTrack::quality().

198  {
199  unsigned short int rank_f = 0; // rank of first
200  unsigned short int rank_s = 0; // rank of second
201  if ( first ) rank_f = first->pt() + 512 * first->quality();
202  if ( second ) rank_s = second->pt() + 512 * second->quality();
203  return rank_f > rank_s;
204  }
unsigned int pt() const
get pt-code (5 bits)
Definition: L1MuBMTrack.h:76
unsigned int quality() const
get quality
Definition: L1MuBMTrack.h:91