CMS 3D CMS Logo

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 final
 
 MuonMatchCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::MuonPtr &) const final
 
double value (const reco::CandidatePtr &) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 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
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 5 of file MuonMatchCut.cc.

Constructor & Destructor Documentation

◆ MuonMatchCut()

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

Definition at line 19 of file MuonMatchCut.cc.

20  : CutApplicatorBase(c), minNumberOfMatchedStations_(c.getParameter<int>("minNumberOfMatchedStations")) {}

Member Function Documentation

◆ candidateType()

CandidateType MuonMatchCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 10 of file MuonMatchCut.cc.

10 { return MUON; }

References CutApplicatorBase::MUON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 23 of file MuonMatchCut.cc.

23  {
24  return muon->numberOfMatchedStations() >= minNumberOfMatchedStations_;
25 }

References minNumberOfMatchedStations_.

◆ value()

double MuonMatchCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 27 of file MuonMatchCut.cc.

27  {
28  const reco::MuonPtr muon(cand);
29  return muon->numberOfMatchedStations();
30 }

References HLT_2018_cff::muon.

Member Data Documentation

◆ minNumberOfMatchedStations_

const int MuonMatchCut::minNumberOfMatchedStations_
private

Definition at line 14 of file MuonMatchCut.cc.

Referenced by operator()().

muon
Definition: MuonCocktails.h:17
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
HLT_2018_cff.muon
muon
Definition: HLT_2018_cff.py:10349
MuonMatchCut::minNumberOfMatchedStations_
const int minNumberOfMatchedStations_
Definition: MuonMatchCut.cc:14
CutApplicatorBase::MUON
Definition: CutApplicatorBase.h:47
cand
Definition: decayParser.h:34
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< reco::Muon >