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
Muon.h
reco::Muon::SegmentAndTrackArbitration
Definition:
Muon.h:190
muon
Definition:
MuonCocktails.h:17
amptDefaultParameters_cff.mu
mu
Definition:
amptDefaultParameters_cff.py:16
watchdog.const
const
Definition:
watchdog.py:83
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
muon::isGoodMuon
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
Definition:
MuonSelectors.cc:664
MuonSelectorVIDWrapper::candidateType
CandidateType candidateType() const final
Definition:
MuonSelectorVIDWrapper.h:24
muon::SelectionType
SelectionType
Selector type.
Definition:
MuonSelectors.h:19
MuonSelectors.h
MuonFwd.h
MuonSelectorVIDWrapper::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MuonSelectorVIDWrapper.h:15
CutApplicatorBase::MUON
Definition:
CutApplicatorBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:36
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
MuonSelectorVIDWrapper::operator()
result_type operator()(const edm::Ptr< reco::Muon > &muon) const final
Definition:
MuonSelectorVIDWrapper.h:20
cand
Definition:
decayParser.h:34
MuonSelectorVIDWrapper::MuonSelectorVIDWrapper
MuonSelectorVIDWrapper(const edm::ParameterSet &c)
Definition:
MuonSelectorVIDWrapper.h:13
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
edm::Ptr< Candidate >
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
CutApplicatorBase.h
MuonSelectorVIDWrapper
Definition:
MuonSelectorVIDWrapper.h:11
reco::Muon::ArbitrationType
ArbitrationType
define arbitration schemes
Definition:
Muon.h:187
muonSelectionTypeValueMapProducer_cff.selectionType
selectionType
Definition:
muonSelectionTypeValueMapProducer_cff.py:6
Generated for CMSSW Reference Manual by
1.8.16