CMS 3D CMS Logo

MuonMatchCut.cc
Go to the documentation of this file.
4 
6 public:
8 
9  result_type operator()(const reco::MuonPtr&) const final;
10  CandidateType candidateType() const final { return MUON; }
11  double value(const reco::CandidatePtr&) const final;
12 
13 private:
15 };
17 
18 // Define constructors and initialization routines
20  : CutApplicatorBase(c), minNumberOfMatchedStations_(c.getParameter<int>("minNumberOfMatchedStations")) {}
21 
22 // Functors for evaluation
24  return muon->numberOfMatchedStations() >= minNumberOfMatchedStations_;
25 }
26 
28  const reco::MuonPtr muon(cand);
29  return muon->numberOfMatchedStations();
30 }
MuonMatchCut::operator()
result_type operator()(const reco::MuonPtr &) const final
Definition: MuonMatchCut.cc:23
Muon.h
muon
Definition: MuonCocktails.h:17
MuonMatchCut::candidateType
CandidateType candidateType() const final
Definition: MuonMatchCut.cc:10
watchdog.const
const
Definition: watchdog.py:83
MuonMatchCut::minNumberOfMatchedStations_
const int minNumberOfMatchedStations_
Definition: MuonMatchCut.cc:14
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
HLT_FULL_cff.muon
muon
Definition: HLT_FULL_cff.py:11710
MuonSelectors.h
MuonMatchCut::MuonMatchCut
MuonMatchCut(const edm::ParameterSet &c)
Definition: MuonMatchCut.cc:19
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
CutApplicatorBase::MUON
Definition: CutApplicatorBase.h:47
MuonMatchCut
Definition: MuonMatchCut.cc:5
edm::ParameterSet
Definition: ParameterSet.h:47
MuonMatchCut::value
double value(const reco::CandidatePtr &) const final
Definition: MuonMatchCut.cc:27
CutApplicatorBase::CandidateType
CandidateType
Definition: CutApplicatorBase.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
cand
Definition: decayParser.h:32
createfilelist.int
int
Definition: createfilelist.py:10
edm::Ptr< reco::Muon >
CutApplicatorBase
Definition: CutApplicatorBase.h:45
CutApplicatorBase.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46