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
MuonMatchCut Class Reference
Inheritance diagram for MuonMatchCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const overridefinal
 
 MuonMatchCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::MuonPtr &) const overridefinal
 
double value (const reco::CandidatePtr &) const overridefinal
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
virtual const std::string & name () const
 
virtual result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

const int minNumberOfMatchedStations_
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 5 of file MuonMatchCut.cc.

Constructor & Destructor Documentation

MuonMatchCut::MuonMatchCut ( const edm::ParameterSet c)

Definition at line 21 of file MuonMatchCut.cc.

21  :
23  minNumberOfMatchedStations_(c.getParameter<int>("minNumberOfMatchedStations"))
24 {
25 }
T getParameter(std::string const &) const
const int minNumberOfMatchedStations_
Definition: MuonMatchCut.cc:15

Member Function Documentation

CandidateType MuonMatchCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 11 of file MuonMatchCut.cc.

References CutApplicatorBase::MUON.

CutApplicatorBase::result_type MuonMatchCut::operator() ( const reco::MuonPtr muon) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 28 of file MuonMatchCut.cc.

References minNumberOfMatchedStations_.

29 {
30  return muon->numberOfMatchedStations() >= minNumberOfMatchedStations_;
31 }
const int minNumberOfMatchedStations_
Definition: MuonMatchCut.cc:15
double MuonMatchCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 33 of file MuonMatchCut.cc.

References metsig::muon.

34 {
35  const reco::MuonPtr muon(cand);
36  return muon->numberOfMatchedStations();
37 }

Member Data Documentation

const int MuonMatchCut::minNumberOfMatchedStations_
private

Definition at line 15 of file MuonMatchCut.cc.

Referenced by operator()().