Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
RecoAlgos
plugins
TrackFullCloneSelector.cc
Go to the documentation of this file.
1
/* \class TrackSelector
2
*
3
* Selects track with a configurable string-based cut.
4
* Saves clones of the selected tracks, and also
5
* clones track extras and rec-hits
6
*
7
* \author: Luca Lista, INFN
8
*
9
* usage:
10
*
11
* module bestTracks = TrackFullCloneSelector {
12
* src = ctfWithMaterialTracks
13
* string cut = "pt > 20 & abs( eta ) < 2"
14
* }
15
*
16
* for more details about the cut syntax, see the documentation
17
* page below:
18
*
19
* https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
20
*
21
*
22
*/
23
24
#include "
FWCore/Framework/interface/MakerMacros.h
"
25
#include "
CommonTools/RecoAlgos/interface/TrackSelector.h
"
26
#include "
CommonTools/UtilAlgos/interface/SingleObjectSelector.h
"
27
#include "
CommonTools/UtilAlgos/interface/StringCutObjectSelector.h
"
28
#include "
DataFormats/TrackReco/interface/Track.h
"
29
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
30
31
typedef
SingleObjectSelector
<
32
reco::TrackCollection
,
33
StringCutObjectSelector<reco::Track>
34
>
TrackFullCloneSelector
;
35
36
DEFINE_FWK_MODULE
(
TrackFullCloneSelector
);
37
StringCutObjectSelector.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
StringCutObjectSelector< reco::Track >
MakerMacros.h
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:13
TrackFwd.h
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
TrackSelector.h
Track.h
TrackFullCloneSelector
SingleObjectSelector< reco::TrackCollection, StringCutObjectSelector< reco::Track > > TrackFullCloneSelector
Definition:
TrackFullCloneSelector.cc:34
Generated for CMSSW Reference Manual by
1.8.5