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 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
32 trackingPhase1.toModify(hiInitialStepSelector, useAnyMVA = cms.bool(False))
33 trackingPhase1.toModify(hiInitialStepSelector, trackSelectors= cms.VPSet(
34  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
35  name = 'hiInitialStepLoose',
36  useMVA = cms.bool(False)
37  ), #end of pset
38  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
39  name = 'hiInitialStepTight',
40  preFilterName = 'hiInitialStepLoose',
41  useMVA = cms.bool(False),
42  minMVA = cms.double(-0.77)
43  ),
44  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
45  name = 'hiInitialStep',
46  preFilterName = 'hiInitialStepTight',
47  useMVA = cms.bool(False),
48  minMVA = cms.double(-0.77)
49  ),
50  ) #end of vpset
51 )
52 
53 
54 
55 # using the tracklist merger with one collection simply applies the quality flags
56 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
58 hiSelectedTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
59  TrackProducers = cms.VInputTag(cms.InputTag('hiGlobalPrimTracks')),
60  hasSelector=cms.vint32(1),
61  selectedTrackQuals = cms.VInputTag(cms.InputTag("hiInitialStepSelector","hiInitialStep")),
62  copyExtras = True,
63  copyMVA = cms.bool(True),
64  makeReKeyedSeeds = cms.untracked.bool(False)
65  )
66 
67 #complete sequence
68 hiTracksWithQualityTask = cms.Task(hiInitialStepSelector
69  #* hiSelectedTracks
70 )
hiMultiTrackSelector_cfi
trackListMerger_cfi