CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
WMuNuProducer::ComparePt Struct Reference

Public Member Functions

bool operator() (reco::WMuNuCandidate w1, reco::WMuNuCandidate w2) const
 

Detailed Description

Definition at line 47 of file WMuNuProducer.cc.

Member Function Documentation

bool WMuNuProducer::ComparePt::operator() ( reco::WMuNuCandidate  w1,
reco::WMuNuCandidate  w2 
) const
inline

Definition at line 48 of file WMuNuProducer.cc.

References reco::WMuNuCandidate::getMuon(), and reco::LeafCandidate::pt().

48  {
49  double pt1 = w1.getMuon().pt();
50  double pt2 = w2.getMuon().pt();
51  return (pt1> pt2);
52  }
virtual double pt() const
transverse momentum
const reco::Muon & getMuon() const