CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonSelector.cc
Go to the documentation of this file.
1 /* \class MuonSelector
2  *
3  * Selects muon with a configurable string-based cut.
4  * Saves clones of the selected muons
5  * Warning: this module can read anything that inherits from reco::Muon, but it will
6  * only clone the reco::Muon part of the object, the rest is lost.
7  *
8  * \author: Luca Lista, INFN
9  *
10  * usage:
11  *
12  * module bestMuons = MuonSelector {
13  * src = muons
14  * string cut = "pt > 20 & abs( eta ) < 2"
15  * }
16  *
17  * for more details about the cut syntax, see the documentation
18  * page below:
19  *
20  * https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
21  *
22  *
23  */
24 
31 
32  typedef SingleObjectSelector<
37 
SingleObjectSelector< edm::View< reco::Muon >, StringCutObjectSelector< reco::Muon >, reco::MuonCollection > MuonSelector
Definition: MuonSelector.cc:36
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9