Main Page
Namespaces
Classes
Package Documentation
CommonTools
RecoAlgos
plugins
GsfElectronSelector.cc
Go to the documentation of this file.
1
/* \class GsfElectronSelector
2
*
3
* Selects GsfElectron with a configurable string-based cut.
4
* Saves clones of the selected GsfElectrons
5
*
6
* \author: Luca Lista, INFN
7
*
8
* usage:
9
*
10
* module bestGsfElectrons = GsfElectronSelector {
11
* src = pixelMatchGsfElectron
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/EgammaCandidates/interface/GsfElectron.h
"
27
#include "
DataFormats/EgammaCandidates/interface/GsfElectronFwd.h
"
28
29
typedef
SingleObjectSelector
<
30
reco::GsfElectronCollection
,
31
StringCutObjectSelector<reco::GsfElectron>
32
>
GsfElectronSelector
;
33
34
DEFINE_FWK_MODULE
(
GsfElectronSelector
);
StringCutObjectSelector.h
GsfElectronSelector
SingleObjectSelector< reco::GsfElectronCollection, StringCutObjectSelector< reco::GsfElectron > > GsfElectronSelector
Definition:
GsfElectronSelector.cc:32
StringCutObjectSelector< reco::GsfElectron >
MakerMacros.h
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition:
GsfElectronFwd.h:14
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
GsfElectron.h
GsfElectronFwd.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
GsfElectronSelector
Generated for CMSSW Reference Manual by
1.8.11