CMS 3D CMS Logo

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 157 of file PFMuonAlgo.h.

Constructor & Destructor Documentation

◆ TrackMETComparator()

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

Definition at line 159 of file PFMuonAlgo.h.

159  {
160  metx_ = METX;
161  mety_ = METY;
162  }

References metx_, and mety_.

◆ ~TrackMETComparator()

PFMuonAlgo::TrackMETComparator::~TrackMETComparator ( )
inline

Definition at line 163 of file PFMuonAlgo.h.

163 {}

Member Function Documentation

◆ operator()()

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

Definition at line 165 of file PFMuonAlgo.h.

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

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

Member Data Documentation

◆ metx_

double PFMuonAlgo::TrackMETComparator::metx_
private

Definition at line 171 of file PFMuonAlgo.h.

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

◆ mety_

double PFMuonAlgo::TrackMETComparator::mety_
private

Definition at line 172 of file PFMuonAlgo.h.

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

PFMuonAlgo::TrackMETComparator::mety_
double mety_
Definition: PFMuonAlgo.h:172
PFMuonAlgo::TrackMETComparator::metx_
double metx_
Definition: PFMuonAlgo.h:171
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29