#include <PhysicsTools/PatUtils/MuonSelector.h>
Public Member Functions | |
const pat::ParticleStatus | filter (const unsigned int &index, const edm::View< reco::Muon > &muons) const |
Returns 0 if muon matches criteria, a flag otherwise. | |
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. | |
const pat::ParticleStatus | muIdSelection_ (const unsigned int &index, const edm::View< reco::Muon > &muons) const |
Private Attributes | |
MuonSelection | config_ |
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.
pat::MuonSelector::MuonSelector | ( | const MuonSelection & | cfg | ) | [inline] |
pat::MuonSelector::~MuonSelector | ( | ) | [inline] |
const pat::ParticleStatus pat::MuonSelector::customSelection_ | ( | const unsigned int & | index, | |
const edm::View< reco::Muon > & | muons | |||
) | const [private] |
Full-fledged selection based on SusyAnalyser.
const pat::ParticleStatus pat::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.
const pat::ParticleStatus pat::MuonSelector::muIdSelection_ | ( | const unsigned int & | index, | |
const edm::View< reco::Muon > & | muons | |||
) | const [private] |
MuonSelection pat::MuonSelector::config_ [private] |
Definition at line 65 of file MuonSelector.h.