Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
RecoAlgos
plugins
MuonViewRefSelector.cc
Go to the documentation of this file.
1
/* \class MuonRefToBaseSelector
2
*
3
* Selects muon with a configurable string-based cut.
4
* Saves references to the selected muons
5
*
6
* \author: Luca Lista, INFN
7
*
8
* usage:
9
*
10
* module bestMuons = MuonRefToBaseSelector {
11
* src = muons
12
* string cut = "pt > 20 & abs( eta ) < 2"
13
* }
14
*
15
* for more details about the cut syntax, see the documentation
16
* page below:
17
*
18
* https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
19
*
20
*
21
*/
22
23
#include "
FWCore/Framework/interface/MakerMacros.h
"
24
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
25
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
26
#include "
DataFormats/MuonReco/interface/Muon.h
"
27
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
28
#include "
DataFormats/Common/interface/View.h
"
29
#include "
DataFormats/Common/interface/RefToBaseVector.h
"
30
31
typedef
SingleObjectSelector<edm::View<reco::Muon>
,
StringCutObjectSelector<reco::Muon>
,
edm::RefToBaseVector<reco::Muon>
>
32
MuonViewRefSelector
;
33
34
DEFINE_FWK_MODULE
(
MuonViewRefSelector
);
StringCutObjectSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
StringCutObjectSelector< reco::Muon >
MakerMacros.h
MuonFwd.h
RefToBaseVector.h
View.h
edm::RefToBaseVector
Definition:
EDProductfwd.h:29
Muon.h
SingleObjectSelector.h
MuonViewRefSelector
SingleObjectSelector< edm::View< reco::Muon >, StringCutObjectSelector< reco::Muon >, edm::RefToBaseVector< reco::Muon > > MuonViewRefSelector
Definition:
MuonViewRefSelector.cc:32
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
Generated for CMSSW Reference Manual by
1.8.5