CMS 3D CMS Logo

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 195 of file L1MuBMTrack.h.

Member Function Documentation

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

Definition at line 197 of file L1MuBMTrack.h.

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

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