test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
RecoAlgos
plugins
GenJetRefSelector.cc
Go to the documentation of this file.
1
/* \class GenJetRefSelector
2
*
3
* Selects GenJet with a configurable string-based cut.
4
* Saves references to the selected tracks
5
*
6
* \author: Attilio Santocchia, INFN
7
*
8
* usage:
9
*
10
* module bestGenJets = GenJetRefSelector {
11
* src = myGenJets
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/JetReco/interface/GenJet.h
"
27
#include "
DataFormats/JetReco/interface/GenJetCollection.h
"
28
29
typedef
SingleObjectSelector
<
30
reco::GenJetCollection
,
31
StringCutObjectSelector<reco::GenJet>
,
32
reco::GenJetRefVector
33
>
GenJetRefSelector
;
34
35
DEFINE_FWK_MODULE
(
GenJetRefSelector
);
GenJetRefSelector
SingleObjectSelector< reco::GenJetCollection, StringCutObjectSelector< reco::GenJet >, reco::GenJetRefVector > GenJetRefSelector
Definition:
GenJetRefSelector.cc:33
StringCutObjectSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
StringCutObjectSelector< reco::GenJet >
reco::GenJetCollection
std::vector< GenJet > GenJetCollection
collection of GenJet objects
Definition:
GenJetCollection.h:14
MakerMacros.h
GenJetCollection.h
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
edm::RefVector< GenJetCollection >
GenJet.h
Generated for CMSSW Reference Manual by
1.8.5