CMS 3D CMS Logo

Public Member Functions | Private Attributes

PFMuonAlgo::TrackMETComparator Class Reference

List of all members.

Public Member Functions

bool operator() (MuonTrackTypePair mu1, MuonTrackTypePair mu2)
 TrackMETComparator (double METX, double METY)
 ~TrackMETComparator ()

Private Attributes

double metx_
double mety_

Detailed Description

Definition at line 187 of file PFMuonAlgo.h.


Constructor & Destructor Documentation

PFMuonAlgo::TrackMETComparator::TrackMETComparator ( double  METX,
double  METY 
) [inline]

Definition at line 189 of file PFMuonAlgo.h.

References metx_, and mety_.

{metx_ = METX; mety_=METY;}
PFMuonAlgo::TrackMETComparator::~TrackMETComparator ( ) [inline]

Definition at line 190 of file PFMuonAlgo.h.

{}

Member Function Documentation

bool PFMuonAlgo::TrackMETComparator::operator() ( MuonTrackTypePair  mu1,
MuonTrackTypePair  mu2 
) [inline]

Definition at line 192 of file PFMuonAlgo.h.

References metx_, mety_, and funct::pow().

                                                                 {
      return pow(metx_+mu1.first->px(),2)+pow(mety_+mu1.first->py(),2) < pow(metx_+mu2.first->px(),2)+pow(mety_+mu2.first->py(),2);
    }

Member Data Documentation

Definition at line 196 of file PFMuonAlgo.h.

Referenced by operator()(), and TrackMETComparator().

Definition at line 197 of file PFMuonAlgo.h.

Referenced by operator()(), and TrackMETComparator().