CMS 3D CMS Logo

List of all members | Public Member Functions
MuonSelectorVIDWrapper< selectionType, arbitrationType > Class Template Reference

#include <MuonSelectorVIDWrapper.h>

Inheritance diagram for MuonSelectorVIDWrapper< selectionType, arbitrationType >:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const final
 
 MuonSelectorVIDWrapper (const edm::ParameterSet &c)
 
result_type operator() (const edm::Ptr< reco::Muon > &muon) const final
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

template<muon::SelectionType selectionType, reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
class MuonSelectorVIDWrapper< selectionType, arbitrationType >

Definition at line 11 of file MuonSelectorVIDWrapper.h.

Constructor & Destructor Documentation

◆ MuonSelectorVIDWrapper()

template<muon::SelectionType selectionType, reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
MuonSelectorVIDWrapper< selectionType, arbitrationType >::MuonSelectorVIDWrapper ( const edm::ParameterSet c)
inline

Definition at line 13 of file MuonSelectorVIDWrapper.h.

13 : CutApplicatorBase(c) {}

Member Function Documentation

◆ candidateType()

template<muon::SelectionType selectionType, reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
CandidateType MuonSelectorVIDWrapper< selectionType, arbitrationType >::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 24 of file MuonSelectorVIDWrapper.h.

24 { return MUON; }

References CutApplicatorBase::MUON.

◆ operator()()

template<muon::SelectionType selectionType, reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
result_type MuonSelectorVIDWrapper< selectionType, arbitrationType >::operator() ( const edm::Ptr< reco::Muon > &  muon) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 20 of file MuonSelectorVIDWrapper.h.

20  {
21  return muon::isGoodMuon(*muon, selectionType, arbitrationType);
22  }

References muon::isGoodMuon(), and muonSelectionTypeValueMapProducer_cff::selectionType.

◆ value()

template<muon::SelectionType selectionType, reco::Muon::ArbitrationType arbitrationType = reco::Muon::SegmentAndTrackArbitration>
double MuonSelectorVIDWrapper< selectionType, arbitrationType >::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual
muon
Definition: MuonCocktails.h:17
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
muon::isGoodMuon
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
Definition: MuonSelectors.cc:649
CutApplicatorBase::MUON
Definition: CutApplicatorBase.h:47
cand
Definition: decayParser.h:32
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< reco::Muon >
muonSelectionTypeValueMapProducer_cff.selectionType
selectionType
Definition: muonSelectionTypeValueMapProducer_cff.py:6