CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 = True,
10  GBRForestLabel = 'HIMVASelectorIter4',
11  GBRForestVars = ['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta'],
12  trackSelectors= cms.VPSet(
13  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
14  name = 'hiInitialStepLoose',
15  useMVA = False
16  ), #end of pset
17  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
18  name = 'hiInitialStepTight',
19  preFilterName = 'hiInitialStepLoose',
20  useMVA = True,
21  minMVA = -0.77
22  ),
23  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
24  name = 'hiInitialStep',
25  preFilterName = 'hiInitialStepTight',
26  useMVA = True,
27  minMVA = -0.77
28  ),
29  ) #end of vpset
30 ) #end of clone
31 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
32 trackingPhase1.toModify(hiInitialStepSelector,
33  useAnyMVA = False,
34  trackSelectors= cms.VPSet(
35  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
36  name = 'hiInitialStepLoose',
37  useMVA = False
38  ), #end of pset
39  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
40  name = 'hiInitialStepTight',
41  preFilterName = 'hiInitialStepLoose',
42  useMVA = False,
43  minMVA = -0.77
44  ),
45  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
46  name = 'hiInitialStep',
47  preFilterName = 'hiInitialStepTight',
48  useMVA = False,
49  minMVA = -0.77
50 
51  ),
52  ) #end of vpset
53 )
54 
55 
56 
57 # using the tracklist merger with one collection simply applies the quality flags
58 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
60 hiSelectedTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
61  TrackProducers = ['hiGlobalPrimTracks'],
62  hasSelector = [1],
63  selectedTrackQuals = ["hiInitialStepSelector:hiInitialStep"],
64  copyExtras = True,
65  copyMVA = True,
66  makeReKeyedSeeds = cms.untracked.bool(False)
67 )
68 
69 #complete sequence
70 hiTracksWithQualityTask = cms.Task(hiInitialStepSelector
71  #* hiSelectedTracks
72 )