Main Page
Namespaces
Classes
Package Documentation
CommonTools
RecoAlgos
plugins
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
25
#include "
FWCore/Framework/interface/MakerMacros.h
"
26
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
27
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
28
#include "
DataFormats/Common/interface/View.h
"
29
#include "
DataFormats/MuonReco/interface/Muon.h
"
30
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
31
32
typedef
SingleObjectSelector
<
33
edm::View<reco::Muon>
,
34
StringCutObjectSelector<reco::Muon>
,
35
reco::MuonCollection
36
>
MuonSelector
;
37
38
DEFINE_FWK_MODULE
(
MuonSelector
);
MuonSelector
SingleObjectSelector< edm::View< reco::Muon >, StringCutObjectSelector< reco::Muon >, reco::MuonCollection > MuonSelector
Definition:
MuonSelector.cc:36
StringCutObjectSelector.h
StringCutObjectSelector< reco::Muon >
MakerMacros.h
MuonSelector
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition:
MuonFwd.h:9
MuonFwd.h
edm::View
Definition:
CaloClusterFwd.h:14
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
View.h
Muon.h
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
Generated for CMSSW Reference Manual by
1.8.11