CMS 3D CMS Logo

Public Member Functions

L1MuDTTrack::Rank Class Reference

define a rank for muon candidates More...

#include <L1MuDTTrack.h>

Inheritance diagram for L1MuDTTrack::Rank:
binary_function

List of all members.

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().

                                                                                     {
         unsigned short int rank_f = 0;  // rank of first
         unsigned short int rank_s = 0;  // rank of second
         if ( first )  rank_f = 10 * first->pt()  + first->quality(); 
         if ( second ) rank_s = 10 * second->pt() + second->quality(); 
         return rank_f > rank_s;
       }