CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HISelectedTracks_cfi.py
Go to the documentation of this file.
2 
3 #from RecoHI.HiTracking.hiMultiTrackSelector_cfi import *
4 
5 # Track selection
6 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
7 hiInitialStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
8  src='hiGlobalPrimTracks',
9  trackSelectors= cms.VPSet(
10  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
11  name = 'hiInitialStepLoose',
12  keepAllTracks = True # Make an exception for the 1st iteration
13  ), #end of pset
14  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
15  name = 'hiInitialStepTight',
16  preFilterName = 'hiInitialStepLoose',
17  ),
18  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
19  name = 'hiInitialStep',
20  preFilterName = 'hiInitialStepTight',
21  ),
22  ) #end of vpset
23  ) #end of clone
24 
25 
26 
27 # using the tracklist merger with one collection simply applies the quality flags
28 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
29 hiSelectedTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
30  TrackProducers = cms.VInputTag(cms.InputTag('hiGlobalPrimTracks')),
31  hasSelector=cms.vint32(1),
32  selectedTrackQuals = cms.VInputTag(cms.InputTag("hiInitialStepSelector","hiInitialStep")),
33  copyExtras = True,
34  makeReKeyedSeeds = cms.untracked.bool(False)
35  )
36 
37 #complete sequence
38 hiTracksWithQuality = cms.Sequence(hiInitialStepSelector
39  * hiSelectedTracks)