CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFMuonAlgo::IndexPtComparator Class Reference

Public Member Functions

 IndexPtComparator (const reco::PFCandidateCollection *coll)
 
bool operator() (int mu1, int mu2)
 
 ~IndexPtComparator ()
 

Private Attributes

const reco::PFCandidateCollectioncoll_
 

Detailed Description

Definition at line 170 of file PFMuonAlgo.h.

Constructor & Destructor Documentation

◆ IndexPtComparator()

PFMuonAlgo::IndexPtComparator::IndexPtComparator ( const reco::PFCandidateCollection coll)
inline

Definition at line 172 of file PFMuonAlgo.h.

172 : coll_(coll) {}

◆ ~IndexPtComparator()

PFMuonAlgo::IndexPtComparator::~IndexPtComparator ( )
inline

Definition at line 173 of file PFMuonAlgo.h.

173 {}

Member Function Documentation

◆ operator()()

bool PFMuonAlgo::IndexPtComparator::operator() ( int  mu1,
int  mu2 
)
inline

Definition at line 175 of file PFMuonAlgo.h.

175 { return coll_->at(mu1).pt() > coll_->at(mu2).pt(); }

References coll_.

Member Data Documentation

◆ coll_

const reco::PFCandidateCollection* PFMuonAlgo::IndexPtComparator::coll_
private

Definition at line 178 of file PFMuonAlgo.h.

Referenced by operator()().

PFMuonAlgo::IndexPtComparator::coll_
const reco::PFCandidateCollection * coll_
Definition: PFMuonAlgo.h:178