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 48 of file MuonSelector.h.
|
inline |
Definition at line 50 of file MuonSelector.h.
|
inline |
Definition at line 51 of file MuonSelector.h.
References ALCARECOTkAlBeamHalo_cff::filter, and PDWG_BPHSkim_cff::muons.
|
private |
Full-fledged selection based on SusyAnalyser.
Definition at line 30 of file MuonSelector.cc.
References hcaldqm::constants::BAD, and hcaldqm::constants::GOOD.
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 10 of file MuonSelector.cc.
References hcaldqm::constants::BAD, edm::errors::Configuration, Exception, and hcaldqm::constants::GOOD.
|
private |
Definition at line 59 of file MuonSelector.cc.
References hcaldqm::constants::BAD, muon::caloCompatibility(), hcaldqm::constants::GOOD, muon::isGoodMuon(), and muon::segmentCompatibility().
|
private |
Definition at line 58 of file MuonSelector.h.