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<reco::TrackCollection, StringCutObjectSelector<reco::Track>
>
TrackFullCloneSelector
;
32
33
DEFINE_FWK_MODULE
(
TrackFullCloneSelector
);
StringCutObjectSelector.h
TrackFwd.h
TrackFullCloneSelector
SingleObjectSelector< reco::TrackCollection, StringCutObjectSelector< reco::Track > > TrackFullCloneSelector
Definition:
TrackFullCloneSelector.cc:31
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
SingleObjectSelector.h
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
TrackSelector.h
Track.h
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14