CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PFMuonAlgo::TrackMETComparator Class Reference

Public Member Functions

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

Private Attributes

double metx_
 
double mety_
 

Detailed Description

Definition at line 192 of file PFMuonAlgo.h.

Constructor & Destructor Documentation

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

Definition at line 194 of file PFMuonAlgo.h.

References metx_, and mety_.

PFMuonAlgo::TrackMETComparator::~TrackMETComparator ( )
inline

Definition at line 195 of file PFMuonAlgo.h.

195 {}

Member Function Documentation

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

Definition at line 197 of file PFMuonAlgo.h.

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

197  {
198  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);
199  }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40

Member Data Documentation

double PFMuonAlgo::TrackMETComparator::metx_
private

Definition at line 201 of file PFMuonAlgo.h.

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

double PFMuonAlgo::TrackMETComparator::mety_
private

Definition at line 202 of file PFMuonAlgo.h.

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