Main Page
Namespaces
Classes
Package Documentation
src
RecoMuon
MuonIdentification
plugins
cuts
MuonSelectorVIDWrapper.h
Go to the documentation of this file.
1
#ifndef __RecoMuon_MuonIdentification_MuonSelectorVIDWrapper_h__
2
#define __RecoMuon_MuonIdentification_MuonSelectorVIDWrapper_h__
3
4
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
5
#include "
DataFormats/MuonReco/interface/Muon.h
"
6
#include "
DataFormats/MuonReco/interface/MuonSelectors.h
"
7
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
8
9
template
<muon::SelectionType selectionType,reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
10
class
MuonSelectorVIDWrapper
:
public
CutApplicatorBase
{
11
public
:
12
MuonSelectorVIDWrapper
(
const
edm::ParameterSet
&
c
) :
13
CutApplicatorBase
(c) { }
14
15
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
16
edm::Ptr<reco::Muon>
mu
(
cand
);
17
return
muon::isGoodMuon
(*mu,
selectionType
,arbitrationType);
18
}
19
20
result_type
operator()
(
const
edm::Ptr<reco::Muon>
&
muon
)
const
final
{
21
return
muon::isGoodMuon
(*
muon
,
selectionType
,arbitrationType);
22
}
23
24
CandidateType
candidateType
() const final {
25
return
MUON
;
26
}
27
};
28
29
#endif
MuonSelectorVIDWrapper::candidateType
CandidateType candidateType() const final
Definition:
MuonSelectorVIDWrapper.h:24
MuonSelectorVIDWrapper::operator()
result_type operator()(const edm::Ptr< reco::Muon > &muon) const final
Definition:
MuonSelectorVIDWrapper.h:20
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
muon
Definition:
MuonCocktails.h:17
muonSelectionTypeValueMapProducer_cff.selectionType
selectionType
Definition:
muonSelectionTypeValueMapProducer_cff.py:6
MuonFwd.h
MuonSelectorVIDWrapper
Definition:
MuonSelectorVIDWrapper.h:10
edm::Ptr< Candidate >
RPCpg::mu
const int mu
Definition:
Constants.h:22
Muon.h
muon::isGoodMuon
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
Definition:
MuonSelectors.cc:647
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MuonSelectors.h
MuonSelectorVIDWrapper::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MuonSelectorVIDWrapper.h:15
MuonSelectorVIDWrapper::MuonSelectorVIDWrapper
MuonSelectorVIDWrapper(const edm::ParameterSet &c)
Definition:
MuonSelectorVIDWrapper.h:12
CutApplicatorBase::MUON
Definition:
CutApplicatorBase.h:48
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:36
cand
Definition:
decayParser.h:34
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11