Selects good muons. More...
#include "PhysicsTools/PatUtils/MuonSelector.h"
Public Member Functions | |
const pat::ParticleStatus | filter (const unsigned int &index, const edm::View< reco::Muon > &muons) const |
MuonSelector (const MuonSelection &cfg) | |
~MuonSelector () | |
Private Member Functions | |
const pat::ParticleStatus | customSelection_ (const unsigned int &index, const edm::View< reco::Muon > &muons) const |
Full-fledged selection based on SusyAnalyser. More... | |
const pat::ParticleStatus | muIdSelection_ (const unsigned int &index, const edm::View< reco::Muon > &muons) const |
Private Attributes | |
MuonSelection | config_ |
Selects good muons.
The muon selector returns a flag (see pat::ParticleStatus) based on one of the possible selections: reconstruction-based (global muons) or muId based (various algorithms), or custom (user-defined set of cuts). This is driven by the configuration parameters (see the PATMuonCleaner documentation for configuration details).
The parameters are passed to the selector through an MuonSelection struct. (An adapter exists for use in CMSSW: reco::modules::ParameterAdapter< pat::MuonSelector >.)
Definition at line 50 of file MuonSelector.h.
|
inline |
Definition at line 54 of file MuonSelector.h.
|
inline |
Definition at line 55 of file MuonSelector.h.
|
private |
Full-fledged selection based on SusyAnalyser.
Definition at line 43 of file MuonSelector.cc.
References pat::BAD, pat::GOOD, and cmsHarvester::index.
const pat::ParticleStatus MuonSelector::filter | ( | const unsigned int & | index, |
const edm::View< reco::Muon > & | muons | ||
) | const |
Returns 0 if muon matches criteria, a flag otherwise. Criteria depend on the selector's configuration.
Definition at line 12 of file MuonSelector.cc.
References pat::BAD, edm::errors::Configuration, Exception, and pat::GOOD.
|
private |
Definition at line 74 of file MuonSelector.cc.
References pat::BAD, muon::caloCompatibility(), pat::GOOD, muon::isGoodMuon(), and muon::segmentCompatibility().
|
private |
Definition at line 65 of file MuonSelector.h.