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
,
10
reco::Muon::ArbitrationType
arbitrationType
=
reco::Muon::SegmentAndTrackArbitration
>
11
class
MuonSelectorVIDWrapper
:
public
CutApplicatorBase
{
12
public
:
13
MuonSelectorVIDWrapper
(
const
edm::ParameterSet
&
c
) :
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 {
return
MUON
; }
25
};
26
27
#endif
runTheMatrix.const
const
Definition:
runTheMatrix.py:345
reco::Muon::SegmentAndTrackArbitration
Definition:
Muon.h:190
amptDefaultParameters_cff.mu
mu
Definition:
amptDefaultParameters_cff.py:16
MuonSelectorVIDWrapper::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MuonSelectorVIDWrapper.h:15
muon
Definition:
MuonCocktails.h:17
muonSelectionTypeValueMapProducer_cff.selectionType
selectionType
Definition:
muonSelectionTypeValueMapProducer_cff.py:6
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:35
MuonFwd.h
muon::SelectionType
SelectionType
Selector type.
Definition:
MuonSelectors.h:18
MuonSelectorVIDWrapper::operator()
result_type operator()(const edm::Ptr< reco::Muon > &muon) const final
Definition:
MuonSelectorVIDWrapper.h:20
reco::Muon::ArbitrationType
ArbitrationType
define arbitration schemes
Definition:
Muon.h:187
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
MuonSelectorVIDWrapper
Definition:
MuonSelectorVIDWrapper.h:11
edm::Ptr< Candidate >
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:646
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
arbitrationType
const reco::Muon::ArbitrationType arbitrationType
Definition:
MuonMvaIDEstimator.cc:31
MuonSelectors.h
MuonSelectorVIDWrapper::MuonSelectorVIDWrapper
MuonSelectorVIDWrapper(const edm::ParameterSet &c)
Definition:
MuonSelectorVIDWrapper.h:13
CutApplicatorBase::MUON
Definition:
CutApplicatorBase.h:47
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:47
cand
Definition:
decayParser.h:32
MuonSelectorVIDWrapper::candidateType
CandidateType candidateType() const final
Definition:
MuonSelectorVIDWrapper.h:24
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.14