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
12 highPtTripletStepClusters = _cfg.clusterRemoverForIter(
'HighPtTripletStep')
13 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
14 _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter(
'HighPtTripletStep', _eraName, _postfix))
19 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
25 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
26 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
27 'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
28 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
29 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
30 'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
31 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
32 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
33 'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg'
35 BPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters')),
36 FPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters'))
39 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
40 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
42 layerList = [
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
43 'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
44 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
45 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
46 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
47 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
49 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
50 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
52 'FPix2_pos+FPix3_pos+FPix4_pos',
'FPix2_neg+FPix3_neg+FPix4_neg',
53 'FPix3_pos+FPix4_pos+FPix5_pos',
'FPix3_neg+FPix4_neg+FPix5_neg',
54 'FPix4_pos+FPix5_pos+FPix6_pos',
'FPix4_neg+FPix5_neg+FPix6_neg',
55 'FPix5_pos+FPix6_pos+FPix7_pos',
'FPix5_neg+FPix6_neg+FPix7_neg',
56 'FPix6_pos+FPix7_pos+FPix8_pos',
'FPix6_neg+FPix7_neg+FPix8_neg',
62 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
63 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet = dict(
68 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet = dict(ptMin = 0.7, originRadius = 0.02))
70 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
71 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
73 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(highPtTripletStepTrackingRegions,
74 _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
81 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
82 highBetaStar_2018.toModify(highPtTripletStepTrackingRegions,RegionPSet = dict(
89 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
90 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
91 seedingLayers =
'highPtTripletStepSeedLayers',
92 trackingRegions =
'highPtTripletStepTrackingRegions',
94 maxElement = 50000000,
95 produceIntermediateHitDoublets =
True,
97 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
98 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
100 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
101 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
102 doublets =
'highPtTripletStepHitDoublets',
103 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
104 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
107 value1 = 100, value2 = 6,
109 useBendingCorrection =
True,
115 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
116 highBetaStar_2018.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.008,CAPhiCut = 0.14,CAHardPtCut = 0)
118 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
119 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
120 seedingHitSets =
'highPtTripletStepHitTriplets',
124 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
125 from FastSimulation.Tracking.SeedingMigration
import _hitSetProducerToFactoryPSet
126 _fastSim_highPtTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
127 trackingRegions =
'highPtTripletStepTrackingRegions',
128 hitMasks = cms.InputTag(
'highPtTripletStepMasks'),
130 layerList = highPtTripletStepSeedLayers.layerList.value(),
132 BPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
133 FPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
134 layerPairs = highPtTripletStepHitDoublets.layerPairs.value()
137 _fastSim_highPtTripletStepSeeds.seedFinderSelector.CAHitTripletGeneratorFactory.SeedComparitorPSet.ComponentName =
'none'
138 fastSim.toReplaceWith(highPtTripletStepSeeds,_fastSim_highPtTripletStepSeeds)
142 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
143 minimumNumberOfHits = 3,
146 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
148 minGoodStripCharge = dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
150 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
152 (pp_on_XeXe_2017 | pp_on_AA).toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
153 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.05)
155 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
156 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
159 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
160 filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
164 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
166 minimumNumberOfHits = 4,
168 strictSeedExtension =
False,
169 pixelSeedExtension =
False,
171 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterInOut, minPt=0.05)
173 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
174 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
175 ComponentName =
'highPtTripletStepChi2Est',
178 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
179 pTChargeCutThreshold = 15.
181 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
182 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutNone'),
189 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
190 trajectoryFilter = dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
191 alwaysUseInvalidHits =
True,
193 estimator =
'highPtTripletStepChi2Est',
194 maxDPhiForLooperReconstruction = cms.double(2.0),
197 maxPtForLooperReconstruction = cms.double(0.7)
199 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
200 inOutTrajectoryFilter = dict(refToPSet_ =
'highPtTripletStepTrajectoryFilterInOut'),
201 useSameTrajFilter =
False,
207 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
208 src =
'highPtTripletStepSeeds',
209 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
211 numHitsForSeedCleaner = cms.int32(50),
212 onlyPixelHitsForSeedCleaner = cms.bool(
True),
213 TrajectoryBuilderPSet = dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
214 doSeedingRegionRebuilding =
True,
215 useHitsSplitting =
True
219 import RecoTracker.MkFit.mkFitSeedConverter_cfi
as mkFitSeedConverter_cfi
220 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi
as mkFitIterationConfigESProducer_cfi
221 import RecoTracker.MkFit.mkFitProducer_cfi
as mkFitProducer_cfi
222 import RecoTracker.MkFit.mkFitOutputConverter_cfi
as mkFitOutputConverter_cfi
223 highPtTripletStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
224 seeds =
'highPtTripletStepSeeds',
226 highPtTripletStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
227 ComponentName =
'highPtTripletStepTrackCandidatesMkFitConfig',
228 config =
'RecoTracker/MkFit/data/mkfit-phase1-highPtTripletStep.json',
230 highPtTripletStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
231 seeds =
'highPtTripletStepTrackCandidatesMkFitSeeds',
232 config = (
'',
'highPtTripletStepTrackCandidatesMkFitConfig'),
233 clustersToSkip =
'highPtTripletStepClusters',
235 trackingMkFitHighPtTripletStep.toReplaceWith(highPtTripletStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
236 seeds =
'highPtTripletStepSeeds',
237 mkFitSeeds =
'highPtTripletStepTrackCandidatesMkFitSeeds',
238 tracks =
'highPtTripletStepTrackCandidatesMkFit',
243 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
244 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
245 fractionShared = 0.16,
246 allowSharedFirstHit =
True
248 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
249 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
250 clustersToSkip =
None,
251 phase2clustersToSkip = cms.InputTag(
'highPtTripletStepClusters')
255 import FastSimulation.Tracking.TrackCandidateProducer_cfi
256 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
257 src =
'highPtTripletStepSeeds',
258 MinNumberOfCrossedLayers = 3,
259 hitMasks = cms.InputTag(
'highPtTripletStepMasks')
261 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
265 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
266 src =
'highPtTripletStepTrackCandidates',
267 AlgorithmName =
'highPtTripletStep',
268 Fitter =
'FlexibleKFFittingSmoother',
270 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
274 highPtTripletStep = TrackMVAClassifierPrompt.clone(
275 mva = dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
276 src =
'highPtTripletStepTracks',
277 qualityCuts = [0.2,0.3,0.4]
282 trackdnn.toReplaceWith(highPtTripletStep, TrackTfClassifier.clone(
283 src =
'highPtTripletStepTracks',
284 qualityCuts = qualityCutDictionary[
'HighPtTripletStep'],
287 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
288 pp_on_AA.toModify(highPtTripletStep,
289 mva = dict(GBRForestLabel =
'HIMVASelectorHighPtTripletStep_Phase1'),
290 qualityCuts = [-0.9, -0.3, 0.85],
293 fastSim.toModify(highPtTripletStep,vertices =
'firstStepPrimaryVerticesBeforeMixing')
296 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
297 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
298 src =
'highPtTripletStepTracks',
300 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
301 name =
'highPtTripletStepLoose',
303 res_par = ( 0.003, 0.002 ),
305 maxNumberLostLayers = 3,
306 minNumber3DLayers = 3,
307 d0_par1 = ( 0.7, 4.0 ),
308 dz_par1 = ( 0.8, 4.0 ),
309 d0_par2 = ( 0.6, 4.0 ),
310 dz_par2 = ( 0.6, 4.0 )
312 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
313 name =
'highPtTripletStepTight',
314 preFilterName =
'highPtTripletStepLoose',
316 res_par = ( 0.003, 0.002 ),
318 maxNumberLostLayers = 2,
319 minNumber3DLayers = 3,
320 d0_par1 = ( 0.6, 4.0 ),
321 dz_par1 = ( 0.7, 4.0 ),
322 d0_par2 = ( 0.5, 4.0 ),
323 dz_par2 = ( 0.6, 4.0 )
325 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
326 name =
'highPtTripletStep',
327 preFilterName =
'highPtTripletStepTight',
331 res_par = ( 0.003, 0.001 ),
334 maxNumberLostLayers = 2,
335 minNumber3DLayers = 4,
336 d0_par1 = ( 0.6, 4.0 ),
337 dz_par1 = ( 0.7, 4.0 ),
338 d0_par2 = ( 0.45, 4.0 ),
339 dz_par2 = ( 0.55, 4.0 )
344 from Configuration.ProcessModifiers.vectorHits_cff
import vectorHits
345 vectorHits.toModify(highPtTripletStepSelector.trackSelectors[2], minNumberLayers = 3, minNumber3DLayers = 3, d0_par1 = ( 0.5, 4.0 ), dz_par1 = ( 0.6, 4.0 ))
348 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
349 highPtTripletStepSeedLayers,
350 highPtTripletStepTrackingRegions,
351 highPtTripletStepHitDoublets,
352 highPtTripletStepHitTriplets,
353 highPtTripletStepSeeds,
354 highPtTripletStepTrackCandidates,
355 highPtTripletStepTracks,
357 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
359 _HighPtTripletStepTask_trackingMkFit = HighPtTripletStepTask.copy()
360 _HighPtTripletStepTask_trackingMkFit.add(highPtTripletStepTrackCandidatesMkFitSeeds, highPtTripletStepTrackCandidatesMkFit, highPtTripletStepTrackCandidatesMkFitConfig)
361 trackingMkFitHighPtTripletStep.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_trackingMkFit)
363 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
364 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
365 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
366 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
369 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
371 fastSim.toReplaceWith(HighPtTripletStepTask,
372 cms.Task(highPtTripletStepMasks
373 ,highPtTripletStepTrackingRegions
374 ,highPtTripletStepSeeds
375 ,highPtTripletStepTrackCandidates
376 ,highPtTripletStepTracks