CMS 3D CMS Logo

MuonMatchCut.cc
Go to the documentation of this file.
4 
6 {
7 public:
9 
10  result_type operator()(const reco::MuonPtr&) const final;
11  CandidateType candidateType() const final { return MUON; }
12  double value(const reco::CandidatePtr&) const final;
13 
14 private:
16 
17 };
19 
20 // Define constructors and initialization routines
23  minNumberOfMatchedStations_(c.getParameter<int>("minNumberOfMatchedStations"))
24 {
25 }
26 
27 // Functors for evaluation
29 {
31 }
32 
34 {
35  const reco::MuonPtr muon(cand);
36  return muon->numberOfMatchedStations();
37 }
double value(const reco::CandidatePtr &) const final
Definition: MuonMatchCut.cc:33
result_type operator()(const reco::MuonPtr &) const final
Definition: MuonMatchCut.cc:28
int numberOfMatchedStations(ArbitrationType type=SegmentAndTrackArbitration) const
MuonMatchCut(const edm::ParameterSet &c)
Definition: MuonMatchCut.cc:21
CandidateType candidateType() const final
Definition: MuonMatchCut.cc:11
const int minNumberOfMatchedStations_
Definition: MuonMatchCut.cc:15
#define DEFINE_EDM_PLUGIN(factory, type, name)