CMS 3D CMS Logo

pat::MuonSelector Class Reference

Selects good muons. More...

#include <PhysicsTools/PatUtils/MuonSelector.h>

List of all members.

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_


Detailed Description

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 >.)

Author:
F.J. Ronga (ETH Zurich)
Version:
Id
MuonSelector.h,v 1.7 2008/10/10 13:59:06 lowette Exp

Definition at line 50 of file MuonSelector.h.


Constructor & Destructor Documentation

pat::MuonSelector::MuonSelector ( const MuonSelection cfg  )  [inline]

Definition at line 54 of file MuonSelector.h.

00054 : config_( cfg ) {}

pat::MuonSelector::~MuonSelector (  )  [inline]

Definition at line 55 of file MuonSelector.h.

00055 {}


Member Function Documentation

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]


Member Data Documentation

MuonSelection pat::MuonSelector::config_ [private]

Definition at line 65 of file MuonSelector.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:49:42 2009 for CMSSW by  doxygen 1.5.4