CMS 3D CMS Logo

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