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 = 2.0,
200 maxPtForLooperReconstruction = 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 =
'highPtTripletStepClusters',
216 numHitsForSeedCleaner = 50,
217 onlyPixelHitsForSeedCleaner =
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',
247 (pp_on_XeXe_2017 | pp_on_AA).toModify(highPtTripletStepTrackCandidatesMkFitConfig, minPt=0.7)
251 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
252 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
253 fractionShared = 0.16,
254 allowSharedFirstHit =
True 256 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
257 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
259 phase2clustersToSkip =
'highPtTripletStepClusters' 263 import FastSimulation.Tracking.TrackCandidateProducer_cfi
264 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
265 src =
'highPtTripletStepSeeds',
266 MinNumberOfCrossedLayers = 3,
267 hitMasks = cms.InputTag(
'highPtTripletStepMasks')
269 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
273 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
274 src =
'highPtTripletStepTrackCandidates',
275 AlgorithmName =
'highPtTripletStep',
276 Fitter =
'FlexibleKFFittingSmoother',
278 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
280 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
281 phase2_timing_layer.toModify(highPtTripletStepTracks, TrajectoryInEvent =
True)
285 highPtTripletStep = TrackMVAClassifierPrompt.clone(
286 mva = dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
287 src =
'highPtTripletStepTracks',
288 qualityCuts = [0.2,0.3,0.4]
294 trackdnn.toReplaceWith(highPtTripletStep, trackTfClassifier.clone(
295 src =
'highPtTripletStepTracks',
296 qualityCuts = qualityCutDictionary.HighPtTripletStep.value()
298 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
299 pp_on_AA.toModify(highPtTripletStep,
300 mva = dict(GBRForestLabel =
'HIMVASelectorHighPtTripletStep_Phase1'),
301 qualityCuts = [-0.9, -0.3, 0.85],
304 fastSim.toModify(highPtTripletStep,vertices =
'firstStepPrimaryVerticesBeforeMixing')
307 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
308 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
309 src =
'highPtTripletStepTracks',
311 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
312 name =
'highPtTripletStepLoose',
314 res_par = ( 0.003, 0.002 ),
316 maxNumberLostLayers = 3,
317 minNumber3DLayers = 3,
318 d0_par1 = ( 0.7, 4.0 ),
319 dz_par1 = ( 0.8, 4.0 ),
320 d0_par2 = ( 0.6, 4.0 ),
321 dz_par2 = ( 0.6, 4.0 )
323 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
324 name =
'highPtTripletStepTight',
325 preFilterName =
'highPtTripletStepLoose',
327 res_par = ( 0.003, 0.002 ),
329 maxNumberLostLayers = 2,
330 minNumber3DLayers = 3,
331 d0_par1 = ( 0.6, 4.0 ),
332 dz_par1 = ( 0.7, 4.0 ),
333 d0_par2 = ( 0.5, 4.0 ),
334 dz_par2 = ( 0.6, 4.0 )
336 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
337 name =
'highPtTripletStep',
338 preFilterName =
'highPtTripletStepTight',
342 res_par = ( 0.003, 0.001 ),
345 maxNumberLostLayers = 2,
346 minNumber3DLayers = 4,
347 d0_par1 = ( 0.6, 4.0 ),
348 dz_par1 = ( 0.7, 4.0 ),
349 d0_par2 = ( 0.45, 4.0 ),
350 dz_par2 = ( 0.55, 4.0 )
355 from Configuration.ProcessModifiers.vectorHits_cff
import vectorHits
356 vectorHits.toModify(highPtTripletStepSelector.trackSelectors[2], minNumberLayers = 3, minNumber3DLayers = 3, d0_par1 = ( 0.5, 4.0 ), dz_par1 = ( 0.6, 4.0 ))
359 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
360 highPtTripletStepSeedLayers,
361 highPtTripletStepTrackingRegions,
362 highPtTripletStepHitDoublets,
363 highPtTripletStepHitTriplets,
364 highPtTripletStepSeeds,
365 highPtTripletStepTrackCandidates,
366 highPtTripletStepTracks,
368 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
370 _HighPtTripletStepTask_trackingMkFit = HighPtTripletStepTask.copy()
371 _HighPtTripletStepTask_trackingMkFit.add(highPtTripletStepTrackCandidatesMkFitSeeds, highPtTripletStepTrackCandidatesMkFit, highPtTripletStepTrackCandidatesMkFitConfig)
372 trackingMkFitHighPtTripletStep.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_trackingMkFit)
374 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
375 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
376 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
377 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
380 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
382 fastSim.toReplaceWith(HighPtTripletStepTask,
383 cms.Task(highPtTripletStepMasks
384 ,highPtTripletStepTrackingRegions
385 ,highPtTripletStepSeeds
386 ,highPtTripletStepTrackCandidates
387 ,highPtTripletStepTracks
def _hitSetProducerToFactoryPSet(producer)
def maskProducerFromClusterRemover(clusterRemover)