Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoJets
JetAnalyzers
src
JPTJetSelector.cc
Go to the documentation of this file.
1
/* \class JPTJetSelector
2
*
3
* Selects track with a configurable string-based cut.
4
* Saves clones of the selected tracks
5
*
6
* \author: Kalanand Mishra, Fermilab
7
*
8
* usage:
9
*
10
* module bestJPTJets = JPTJetSelector {
11
* src = ktJets
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/JPTJet.h
"
27
#include "
DataFormats/JetReco/interface/JPTJetCollection.h
"
28
29
typedef
SingleObjectSelector
<
30
reco::JPTJetCollection
,
31
StringCutObjectSelector<reco::JPTJet>
32
>
JPTJetSelector
;
33
34
DEFINE_FWK_MODULE
(
JPTJetSelector
);
35
36
JPTJet.h
JPTJetSelector
SingleObjectSelector< reco::JPTJetCollection, StringCutObjectSelector< reco::JPTJet > > JPTJetSelector
Definition:
JPTJetSelector.cc:32
reco::JPTJetCollection
std::vector< JPTJet > JPTJetCollection
collection of CaloJet objects
Definition:
JPTJetCollection.h:13
StringCutObjectSelector.h
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
JPTJetCollection.h
Generated for CMSSW Reference Manual by
1.8.11