1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
3 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
6 from Configuration.ProcessModifiers.trackdnn_cff
import trackdnn
7 from RecoTracker.IterativeTracking.dnnQualityCuts
import qualityCutDictionary
10 from Configuration.ProcessModifiers.trackingNoLoopers_cff
import trackingNoLoopers
15 highPtTripletStepClusters = _cfg.clusterRemoverForIter(
'HighPtTripletStep')
16 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
17 _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter(
'HighPtTripletStep', _eraName, _postfix))
22 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
28 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
29 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
30 'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
31 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
32 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
33 'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
34 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
35 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
36 'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg'
38 BPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters')),
39 FPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters'))
42 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
43 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
45 layerList = [
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
46 'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
47 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
48 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
49 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
50 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
52 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
53 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
55 'FPix2_pos+FPix3_pos+FPix4_pos',
'FPix2_neg+FPix3_neg+FPix4_neg',
56 'FPix3_pos+FPix4_pos+FPix5_pos',
'FPix3_neg+FPix4_neg+FPix5_neg',
57 'FPix4_pos+FPix5_pos+FPix6_pos',
'FPix4_neg+FPix5_neg+FPix6_neg',
58 'FPix5_pos+FPix6_pos+FPix7_pos',
'FPix5_neg+FPix6_neg+FPix7_neg',
59 'FPix6_pos+FPix7_pos+FPix8_pos',
'FPix6_neg+FPix7_neg+FPix8_neg',
65 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
66 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet = dict(
71 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet = dict(ptMin = 0.7, originRadius = 0.02))
73 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
74 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
76 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(highPtTripletStepTrackingRegions,
77 _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
84 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
85 highBetaStar_2018.toModify(highPtTripletStepTrackingRegions,RegionPSet = dict(
92 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
93 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
94 seedingLayers =
'highPtTripletStepSeedLayers',
95 trackingRegions =
'highPtTripletStepTrackingRegions',
97 maxElement = 50000000,
98 produceIntermediateHitDoublets =
True,
100 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
101 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
103 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
104 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
105 doublets =
'highPtTripletStepHitDoublets',
106 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
107 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
110 value1 = 100, value2 = 6,
112 useBendingCorrection =
True,
118 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
119 highBetaStar_2018.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.008,CAPhiCut = 0.14,CAHardPtCut = 0)
121 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
122 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
123 seedingHitSets =
'highPtTripletStepHitTriplets',
127 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
128 from FastSimulation.Tracking.SeedingMigration
import _hitSetProducerToFactoryPSet
129 _fastSim_highPtTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
130 trackingRegions =
'highPtTripletStepTrackingRegions',
131 hitMasks = cms.InputTag(
'highPtTripletStepMasks'),
133 layerList = highPtTripletStepSeedLayers.layerList.value(),
135 BPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
136 FPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
137 layerPairs = highPtTripletStepHitDoublets.layerPairs.value()
140 _fastSim_highPtTripletStepSeeds.seedFinderSelector.CAHitTripletGeneratorFactory.SeedComparitorPSet.ComponentName =
'none'
141 fastSim.toReplaceWith(highPtTripletStepSeeds,_fastSim_highPtTripletStepSeeds)
145 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
146 minimumNumberOfHits = 3,
149 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
151 minGoodStripCharge = dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
153 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
155 (pp_on_XeXe_2017 | pp_on_AA).toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
156 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.05)
158 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
159 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
162 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
163 filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
167 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
169 minimumNumberOfHits = 4,
171 strictSeedExtension =
False,
172 pixelSeedExtension =
False,
174 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterInOut, minPt=0.05)
176 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
177 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
178 ComponentName =
'highPtTripletStepChi2Est',
181 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
182 pTChargeCutThreshold = 15.
184 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
185 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutNone'),
192 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
193 trajectoryFilter = dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
194 alwaysUseInvalidHits =
True,
196 estimator =
'highPtTripletStepChi2Est',
197 maxDPhiForLooperReconstruction = cms.double(2.0),
200 maxPtForLooperReconstruction = cms.double(0.7)
202 trackingNoLoopers.toModify(highPtTripletStepTrajectoryBuilder,
203 maxPtForLooperReconstruction = 0.0)
204 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
205 inOutTrajectoryFilter = dict(refToPSet_ =
'highPtTripletStepTrajectoryFilterInOut'),
206 useSameTrajFilter =
False,
212 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
213 src =
'highPtTripletStepSeeds',
214 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
216 numHitsForSeedCleaner = cms.int32(50),
217 onlyPixelHitsForSeedCleaner = cms.bool(
True),
218 TrajectoryBuilderPSet = dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
219 doSeedingRegionRebuilding =
True,
220 useHitsSplitting =
True
224 import RecoTracker.MkFit.mkFitSeedConverter_cfi
as mkFitSeedConverter_cfi
225 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi
as mkFitIterationConfigESProducer_cfi
226 import RecoTracker.MkFit.mkFitProducer_cfi
as mkFitProducer_cfi
227 import RecoTracker.MkFit.mkFitOutputConverter_cfi
as mkFitOutputConverter_cfi
228 highPtTripletStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
229 seeds =
'highPtTripletStepSeeds',
231 highPtTripletStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
232 ComponentName =
'highPtTripletStepTrackCandidatesMkFitConfig',
233 config =
'RecoTracker/MkFit/data/mkfit-phase1-highPtTripletStep.json',
235 highPtTripletStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
236 seeds =
'highPtTripletStepTrackCandidatesMkFitSeeds',
237 config = (
'',
'highPtTripletStepTrackCandidatesMkFitConfig'),
238 clustersToSkip =
'highPtTripletStepClusters',
240 trackingMkFitHighPtTripletStep.toReplaceWith(highPtTripletStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
241 seeds =
'highPtTripletStepSeeds',
242 mkFitSeeds =
'highPtTripletStepTrackCandidatesMkFitSeeds',
243 tracks =
'highPtTripletStepTrackCandidatesMkFit',
248 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
249 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
250 fractionShared = 0.16,
251 allowSharedFirstHit =
True
253 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
254 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
255 clustersToSkip =
None,
256 phase2clustersToSkip = cms.InputTag(
'highPtTripletStepClusters')
260 import FastSimulation.Tracking.TrackCandidateProducer_cfi
261 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
262 src =
'highPtTripletStepSeeds',
263 MinNumberOfCrossedLayers = 3,
264 hitMasks = cms.InputTag(
'highPtTripletStepMasks')
266 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
270 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
271 src =
'highPtTripletStepTrackCandidates',
272 AlgorithmName =
'highPtTripletStep',
273 Fitter =
'FlexibleKFFittingSmoother',
275 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
279 highPtTripletStep = TrackMVAClassifierPrompt.clone(
280 mva = dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
281 src =
'highPtTripletStepTracks',
282 qualityCuts = [0.2,0.3,0.4]
288 trackdnn.toReplaceWith(highPtTripletStep, trackTfClassifier.clone(
289 src =
'highPtTripletStepTracks',
290 qualityCuts = qualityCutDictionary.HighPtTripletStep.value()
292 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
293 pp_on_AA.toModify(highPtTripletStep,
294 mva = dict(GBRForestLabel =
'HIMVASelectorHighPtTripletStep_Phase1'),
295 qualityCuts = [-0.9, -0.3, 0.85],
298 fastSim.toModify(highPtTripletStep,vertices =
'firstStepPrimaryVerticesBeforeMixing')
301 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
302 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
303 src =
'highPtTripletStepTracks',
305 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
306 name =
'highPtTripletStepLoose',
308 res_par = ( 0.003, 0.002 ),
310 maxNumberLostLayers = 3,
311 minNumber3DLayers = 3,
312 d0_par1 = ( 0.7, 4.0 ),
313 dz_par1 = ( 0.8, 4.0 ),
314 d0_par2 = ( 0.6, 4.0 ),
315 dz_par2 = ( 0.6, 4.0 )
317 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
318 name =
'highPtTripletStepTight',
319 preFilterName =
'highPtTripletStepLoose',
321 res_par = ( 0.003, 0.002 ),
323 maxNumberLostLayers = 2,
324 minNumber3DLayers = 3,
325 d0_par1 = ( 0.6, 4.0 ),
326 dz_par1 = ( 0.7, 4.0 ),
327 d0_par2 = ( 0.5, 4.0 ),
328 dz_par2 = ( 0.6, 4.0 )
330 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
331 name =
'highPtTripletStep',
332 preFilterName =
'highPtTripletStepTight',
336 res_par = ( 0.003, 0.001 ),
339 maxNumberLostLayers = 2,
340 minNumber3DLayers = 4,
341 d0_par1 = ( 0.6, 4.0 ),
342 dz_par1 = ( 0.7, 4.0 ),
343 d0_par2 = ( 0.45, 4.0 ),
344 dz_par2 = ( 0.55, 4.0 )
349 from Configuration.ProcessModifiers.vectorHits_cff
import vectorHits
350 vectorHits.toModify(highPtTripletStepSelector.trackSelectors[2], minNumberLayers = 3, minNumber3DLayers = 3, d0_par1 = ( 0.5, 4.0 ), dz_par1 = ( 0.6, 4.0 ))
353 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
354 highPtTripletStepSeedLayers,
355 highPtTripletStepTrackingRegions,
356 highPtTripletStepHitDoublets,
357 highPtTripletStepHitTriplets,
358 highPtTripletStepSeeds,
359 highPtTripletStepTrackCandidates,
360 highPtTripletStepTracks,
362 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
364 _HighPtTripletStepTask_trackingMkFit = HighPtTripletStepTask.copy()
365 _HighPtTripletStepTask_trackingMkFit.add(highPtTripletStepTrackCandidatesMkFitSeeds, highPtTripletStepTrackCandidatesMkFit, highPtTripletStepTrackCandidatesMkFitConfig)
366 trackingMkFitHighPtTripletStep.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_trackingMkFit)
368 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
369 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
370 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
371 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
374 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
376 fastSim.toReplaceWith(HighPtTripletStepTask,
377 cms.Task(highPtTripletStepMasks
378 ,highPtTripletStepTrackingRegions
379 ,highPtTripletStepSeeds
380 ,highPtTripletStepTrackCandidates
381 ,highPtTripletStepTracks
def maskProducerFromClusterRemover
def _hitSetProducerToFactoryPSet