CMS 3D CMS Logo

HISelectedTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #from RecoHI.HiTracking.hiMultiTrackSelector_cfi import *
4 
5 # Track selection
7 hiInitialStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
8  src='hiGlobalPrimTracks',
9  useAnyMVA = cms.bool(True),
10  GBRForestLabel = cms.string('HIMVASelectorIter4'),
11  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta']),
12  trackSelectors= cms.VPSet(
13  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
14  name = 'hiInitialStepLoose',
15  useMVA = cms.bool(False)
16  ), #end of pset
17  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
18  name = 'hiInitialStepTight',
19  preFilterName = 'hiInitialStepLoose',
20  useMVA = cms.bool(True),
21  minMVA = cms.double(-0.77)
22  ),
23  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
24  name = 'hiInitialStep',
25  preFilterName = 'hiInitialStepTight',
26  useMVA = cms.bool(True),
27  minMVA = cms.double(-0.77)
28  ),
29  ) #end of vpset
30  ) #end of clone
31 
32 
33 
34 # using the tracklist merger with one collection simply applies the quality flags
35 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
37 hiSelectedTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
38  TrackProducers = cms.VInputTag(cms.InputTag('hiGlobalPrimTracks')),
39  hasSelector=cms.vint32(1),
40  selectedTrackQuals = cms.VInputTag(cms.InputTag("hiInitialStepSelector","hiInitialStep")),
41  copyExtras = True,
42  copyMVA = cms.bool(True),
43  makeReKeyedSeeds = cms.untracked.bool(False)
44  )
45 
46 #complete sequence
47 hiTracksWithQuality = cms.Sequence(hiInitialStepSelector
48  #* hiSelectedTracks
49 )