CMS 3D CMS Logo

HiRegitMuonSeededStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 ###### Muon reconstruction module #####
5 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
7 hiEarlyGeneralTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
8  TrackProducers = (cms.InputTag('hiGlobalPrimTracks'),
9  cms.InputTag('hiDetachedTripletStepTracks'),
10  cms.InputTag('hiLowPtTripletStepTracks'),
11  cms.InputTag('hiPixelPairGlobalPrimTracks'),
12  cms.InputTag('hiJetCoreRegionalStepTracks'),
13  cms.InputTag('hiRegitMuInitialStepTracks'),
14  cms.InputTag('hiRegitMuPixelPairStepTracks'),
15  cms.InputTag('hiRegitMuMixedTripletStepTracks'),
16  cms.InputTag('hiRegitMuPixelLessStepTracks'),
17  cms.InputTag('hiRegitMuDetachedTripletStepTracks')
18  ),
19  hasSelector=cms.vint32(1,1,1,1,1,1,1,1,1,1),
20  selectedTrackQuals = cms.VInputTag(
21  cms.InputTag("hiInitialStepSelector","hiInitialStep"),
22  cms.InputTag("hiDetachedTripletStepSelector","hiDetachedTripletStep"),
23  cms.InputTag("hiLowPtTripletStepSelector","hiLowPtTripletStep"),
24  cms.InputTag("hiPixelPairStepSelector","hiPixelPairStep"),
25  cms.InputTag("hiJetCoreRegionalStepSelector","hiJetCoreRegionalStep"),
26  cms.InputTag("hiRegitMuInitialStepSelector","hiRegitMuInitialStepLoose"),
27  cms.InputTag("hiRegitMuPixelPairStepSelector","hiRegitMuPixelPairStep"),
28  cms.InputTag("hiRegitMuMixedTripletStepSelector","hiRegitMuMixedTripletStep"),
29  cms.InputTag("hiRegitMuPixelLessStepSelector","hiRegitMuPixelLessStep"),
30  cms.InputTag("hiRegitMuDetachedTripletStepSelector","hiRegitMuDetachedTripletStep")
31  ),
32  setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5,6,7,8,9), pQual=cms.bool(True)), # should this be False?
33  ),
34  copyExtras = True,
35  makeReKeyedSeeds = cms.untracked.bool(False)
36  )
37 
38 hiEarlyMuons = earlyMuons.clone(
39  inputCollectionLabels = cms.VInputTag(cms.InputTag("hiEarlyGeneralTracks"),cms.InputTag("standAloneMuons","UpdatedAtVtx"))
40  )
41 
42 ###### SEEDER MODELS ######
43 import RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi
44 import RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi
45 hiRegitMuonSeededSeedsOutIn = RecoTracker.SpecialSeedGenerators.outInSeedsFromStandaloneMuons_cfi.outInSeedsFromStandaloneMuons.clone(
46  src = "hiEarlyMuons",
47  )
48 hiRegitMuonSeededSeedsInOut = RecoTracker.SpecialSeedGenerators.inOutSeedsFromTrackerMuons_cfi.inOutSeedsFromTrackerMuons.clone(
49  src = "hiEarlyMuons",
50  )
51 
52 hiRegitMuonSeededTrackCandidatesInOut = muonSeededTrackCandidatesInOut.clone(
53  src = cms.InputTag("hiRegitMuonSeededSeedsInOut")
54  )
55 hiRegitMuonSeededTrackCandidatesOutIn = muonSeededTrackCandidatesOutIn.clone(
56  src = cms.InputTag("hiRegitMuonSeededSeedsOutIn")
57  )
58 
59 hiRegitMuonSeededTracksOutIn = muonSeededTracksOutIn.clone(
60  src = cms.InputTag("hiRegitMuonSeededTrackCandidatesOutIn"),
61  AlgorithmName = cms.string('hiRegitMuMuonSeededStepOutIn')
62  )
63 hiRegitMuonSeededTracksInOut = muonSeededTracksInOut.clone(
64  src = cms.InputTag("hiRegitMuonSeededTrackCandidatesInOut"),
65  AlgorithmName = cms.string('hiRegitMuMuonSeededStepInOut')
66  )
67 
68 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
70 hiRegitMuonSeededTracksInOutSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
71  src='hiRegitMuonSeededTracksInOut',
72  vertices = cms.InputTag("hiSelectedPixelVertex"),
73  useAnyMVA = cms.bool(True),
74  GBRForestLabel = cms.string('HIMVASelectorIter7'),
75  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
76  trackSelectors= cms.VPSet(
77  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
78  name = 'hiRegitMuonSeededTracksInOutLoose',
79  min_nhits = cms.uint32(8)
80  ),
81  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
82  name = 'hiRegitMuonSeededTracksInOutTight',
83  preFilterName = 'hiRegitMuonSeededTracksInOutLoose',
84  min_nhits = cms.uint32(8),
85  useMVA = cms.bool(True),
86  minMVA = cms.double(-0.2)
87  ),
88  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
89  name = 'hiRegitMuonSeededTracksInOutHighPurity',
90  preFilterName = 'hiRegitMuonSeededTracksInOutTight',
91  min_nhits = cms.uint32(8),
92  useMVA = cms.bool(True),
93  minMVA = cms.double(-0.09)
94  ),
95  ) #end of vpset
96  ) #end of clone
97 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
98 trackingPhase1.toModify(hiRegitMuonSeededTracksInOutSelector, useAnyMVA = cms.bool(False))
99 trackingPhase1.toModify(hiRegitMuonSeededTracksInOutSelector, trackSelectors= cms.VPSet(
100  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
101  name = 'hiRegitMuonSeededTracksInOutLoose',
102  min_nhits = cms.uint32(8)
103  ),
104  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
105  name = 'hiRegitMuonSeededTracksInOutTight',
106  preFilterName = 'hiRegitMuonSeededTracksInOutLoose',
107  min_nhits = cms.uint32(8),
108  useMVA = cms.bool(False),
109  minMVA = cms.double(-0.2)
110  ),
111  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
112  name = 'hiRegitMuonSeededTracksInOutHighPurity',
113  preFilterName = 'hiRegitMuonSeededTracksInOutTight',
114  min_nhits = cms.uint32(8),
115  useMVA = cms.bool(False),
116  minMVA = cms.double(-0.09)
117  ),
118  ) #end of vpset
119 )
120 
121 hiRegitMuonSeededTracksOutInSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
122  src='hiRegitMuonSeededTracksOutIn',
123  vertices = cms.InputTag("hiSelectedPixelVertex"),
124  useAnyMVA = cms.bool(True),
125  GBRForestLabel = cms.string('HIMVASelectorIter7'),
126  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
127  trackSelectors= cms.VPSet(
128  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
129  name = 'hiRegitMuonSeededTracksOutInLoose',
130  min_nhits = cms.uint32(8)
131  ),
132  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
133  name = 'hiRegitMuonSeededTracksOutInTight',
134  preFilterName = 'hiRegitMuonSeededTracksOutInLoose',
135  min_nhits = cms.uint32(8),
136  useMVA = cms.bool(True),
137  minMVA = cms.double(-0.2)
138  ),
139  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
140  name = 'hiRegitMuonSeededTracksOutInHighPurity',
141  preFilterName = 'hiRegitMuonSeededTracksOutInTight',
142  min_nhits = cms.uint32(8),
143  useMVA = cms.bool(True),
144  minMVA = cms.double(-0.09)
145  ),
146  ) #end of vpset
147  ) #end of clone
148 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
149 trackingPhase1.toModify(hiRegitMuonSeededTracksOutInSelector, useAnyMVA = cms.bool(False))
150 trackingPhase1.toModify(hiRegitMuonSeededTracksOutInSelector, trackSelectors= cms.VPSet(
151  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
152  name = 'hiRegitMuonSeededTracksOutInLoose',
153  min_nhits = cms.uint32(8)
154  ),
155  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
156  name = 'hiRegitMuonSeededTracksOutInTight',
157  preFilterName = 'hiRegitMuonSeededTracksOutInLoose',
158  min_nhits = cms.uint32(8),
159  useMVA = cms.bool(False),
160  minMVA = cms.double(-0.2)
161  ),
162  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
163  name = 'hiRegitMuonSeededTracksOutInHighPurity',
164  preFilterName = 'hiRegitMuonSeededTracksOutInTight',
165  min_nhits = cms.uint32(8),
166  useMVA = cms.bool(False),
167  minMVA = cms.double(-0.09)
168  ),
169  ) #end of vpset
170 )
171 
172 hiRegitMuonSeededStepCore = cms.Sequence(
173  hiRegitMuonSeededSeedsInOut + hiRegitMuonSeededTrackCandidatesInOut + hiRegitMuonSeededTracksInOut +
174  hiRegitMuonSeededSeedsOutIn + hiRegitMuonSeededTrackCandidatesOutIn + hiRegitMuonSeededTracksOutIn
175  )
176 hiRegitMuonSeededStepExtra = cms.Sequence(
177  hiRegitMuonSeededTracksInOutSelector +
178  hiRegitMuonSeededTracksOutInSelector
179  )
180 
181 hiRegitMuonSeededStep = cms.Sequence(
182  hiEarlyGeneralTracks +
183  hiEarlyMuons +
184  hiRegitMuonSeededStepCore +
185  hiRegitMuonSeededStepExtra
186  )