1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff
import tracker_apv_vfp30_2016
as _tracker_apv_vfp30_2016
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
20 import RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi
21 initialStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.PixelLayerTriplets.clone()
22 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
23 trackingPhase1.toModify(initialStepSeedLayers,
24 layerList = RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi.PixelLayerQuadruplets.layerList.value()
26 trackingPhase2PU140.toModify(initialStepSeedLayers,
27 layerList = RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi.PixelLayerQuadruplets.layerList.value()
31 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
32 initialStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet = dict(
37 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
38 trackingPhase1.toModify(initialStepTrackingRegions, RegionPSet = dict(ptMin = 0.5))
39 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
40 highBetaStar_2018.toModify(initialStepTrackingRegions,RegionPSet = dict(
44 trackingPhase2PU140.toModify(initialStepTrackingRegions, RegionPSet = dict(ptMin = 0.6,originRadius = 0.03))
47 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
48 initialStepHitDoublets = _hitPairEDProducer.clone(
49 seedingLayers =
'initialStepSeedLayers',
50 trackingRegions =
'initialStepTrackingRegions',
51 maxElement = 50000000,
52 produceIntermediateHitDoublets =
True,
54 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
56 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
57 initialStepHitTriplets = _pixelTripletHLTEDProducer.clone(
58 doublets =
'initialStepHitDoublets',
59 produceSeedingHitSets =
True,
60 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
62 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
63 initialStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
64 seedingHitSets =
'initialStepHitTriplets',
66 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi
import caHitQuadrupletEDProducer
as _caHitQuadrupletEDProducer
67 _initialStepCAHitQuadruplets = _caHitQuadrupletEDProducer.clone(
68 doublets =
'initialStepHitDoublets',
69 extraHitRPhitolerance = initialStepHitTriplets.extraHitRPhitolerance,
70 SeedComparitorPSet = initialStepHitTriplets.SeedComparitorPSet,
73 value1 = 200, value2 = 50,
75 useBendingCorrection =
True,
77 fitFastCircleChi2Cut =
True,
81 highBetaStar_2018.toModify(_initialStepCAHitQuadruplets,
85 initialStepHitQuadruplets = _initialStepCAHitQuadruplets.clone()
87 trackingPhase1.toModify(initialStepHitDoublets, layerPairs = [0,1,2])
89 trackingPhase2PU140.toModify(initialStepHitDoublets, layerPairs = [0,1,2])
90 trackingPhase2PU140.toModify(initialStepHitQuadruplets,
95 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer
as _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer
96 _initialStepSeedsConsecutiveHitsTripletOnly = _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer.clone(
97 seedingHitSets =
'initialStepHitTriplets',
98 SeedComparitorPSet = dict(
99 ComponentName =
'PixelClusterShapeSeedComparitor',
100 FilterAtHelixStage = cms.bool(
False),
101 FilterPixelHits = cms.bool(
True),
102 FilterStripHits = cms.bool(
False),
103 ClusterShapeHitFilterName = cms.string(
'ClusterShapeHitFilter'),
104 ClusterShapeCacheSrc = cms.InputTag(
'siPixelClusterShapeCache')
107 trackingPhase1.toReplaceWith(initialStepSeeds, _initialStepSeedsConsecutiveHitsTripletOnly.clone(
108 seedingHitSets =
'initialStepHitQuadruplets' 110 trackingPhase2PU140.toReplaceWith(initialStepSeeds, _initialStepSeedsConsecutiveHitsTripletOnly.clone(
111 seedingHitSets =
'initialStepHitQuadruplets' 113 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
114 from FastSimulation.Tracking.SeedingMigration
import _hitSetProducerToFactoryPSet
115 _fastSim_initialStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
116 trackingRegions =
'initialStepTrackingRegions',
118 layerList = initialStepSeedLayers.layerList.value()
122 trackingPhase1.toModify(_fastSim_initialStepSeeds, seedFinderSelector = dict(
123 pixelTripletGeneratorFactory =
None,
127 TTRHBuilder =
'WithoutRefit',
128 HitProducer =
'TrackingRecHitProducer',
131 TTRHBuilder =
'WithoutRefit',
132 HitProducer =
'TrackingRecHitProducer',
134 layerPairs = initialStepHitDoublets.layerPairs.value()
138 fastSim.toReplaceWith(initialStepSeeds,_fastSim_initialStepSeeds)
143 _initialStepTrajectoryFilterBase = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
144 minimumNumberOfHits = 3,
147 initialStepTrajectoryFilterBase = _initialStepTrajectoryFilterBase.clone(
149 minGoodStripCharge = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutLoose'))
151 from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff
import tracker_apv_vfp30_2016
152 _tracker_apv_vfp30_2016.toModify(initialStepTrajectoryFilterBase, maxCCCLostHits = 2)
154 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
155 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
156 (pp_on_XeXe_2017 | pp_on_AA).toModify(initialStepTrajectoryFilterBase, minPt=0.6)
157 highBetaStar_2018.toModify(initialStepTrajectoryFilterBase, minPt = 0.05)
159 initialStepTrajectoryFilterInOut = initialStepTrajectoryFilterBase.clone(
160 minimumNumberOfHits = 4,
162 strictSeedExtension =
True,
163 pixelSeedExtension =
True,
165 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
166 trackingLowPU.toReplaceWith(initialStepTrajectoryFilterBase, _initialStepTrajectoryFilterBase)
167 trackingPhase2PU140.toReplaceWith(initialStepTrajectoryFilterBase, _initialStepTrajectoryFilterBase)
169 import RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi
170 initialStepTrajectoryFilterShape = RecoPixelVertexing.PixelLowPtUtilities.StripSubClusterShapeTrajectoryFilter_cfi.StripSubClusterShapeTrajectoryFilterTIX12.clone()
171 initialStepTrajectoryFilter = cms.PSet(
172 ComponentType = cms.string(
'CompositeTrajectoryFilter'),
174 cms.PSet( refToPSet_ = cms.string(
'initialStepTrajectoryFilterBase')),
179 trackingPhase2PU140.toReplaceWith(initialStepTrajectoryFilter, TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
180 minimumNumberOfHits = 3,
183 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
184 initialStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
185 ComponentName =
'initialStepChi2Est',
188 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutLoose')),
189 pTChargeCutThreshold = 15.
191 _tracker_apv_vfp30_2016.toModify(initialStepChi2Est,
192 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutTiny')
194 trackingPhase2PU140.toModify(initialStepChi2Est,
195 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutNone'),
200 initialStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
201 trajectoryFilter = dict(refToPSet_ =
'initialStepTrajectoryFilter'),
202 alwaysUseInvalidHits =
True,
204 estimator =
'initialStepChi2Est',
205 maxDPhiForLooperReconstruction = 2.0,
206 maxPtForLooperReconstruction = 0.7,
208 trackingNoLoopers.toModify(initialStepTrajectoryBuilder,
209 maxPtForLooperReconstruction = 0.0)
210 trackingLowPU.toModify(initialStepTrajectoryBuilder, maxCand = 5)
211 trackingPhase1.toModify(initialStepTrajectoryBuilder,
212 minNrOfHitsForRebuild = 1,
213 keepOriginalIfRebuildFails =
True,
215 trackingPhase2PU140.toModify(initialStepTrajectoryBuilder,
216 minNrOfHitsForRebuild = 1,
217 keepOriginalIfRebuildFails =
True,
222 _initialStepTrackCandidatesCkf = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
223 src =
'initialStepSeeds',
225 numHitsForSeedCleaner = 50,
226 onlyPixelHitsForSeedCleaner =
True,
227 TrajectoryBuilderPSet = dict(refToPSet_ =
'initialStepTrajectoryBuilder'),
228 doSeedingRegionRebuilding =
True,
229 useHitsSplitting =
True,
231 initialStepTrackCandidates = _initialStepTrackCandidatesCkf.clone()
234 from RecoTracker.MkFit.mkFitGeometryESProducer_cfi
import mkFitGeometryESProducer
235 import RecoTracker.MkFit.mkFitSiPixelHitConverter_cfi
as mkFitSiPixelHitConverter_cfi
236 import RecoTracker.MkFit.mkFitSiStripHitConverter_cfi
as mkFitSiStripHitConverter_cfi
237 import RecoTracker.MkFit.mkFitEventOfHitsProducer_cfi
as mkFitEventOfHitsProducer_cfi
238 import RecoTracker.MkFit.mkFitSeedConverter_cfi
as mkFitSeedConverter_cfi
239 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi
as mkFitIterationConfigESProducer_cfi
240 import RecoTracker.MkFit.mkFitProducer_cfi
as mkFitProducer_cfi
241 import RecoTracker.MkFit.mkFitOutputConverter_cfi
as mkFitOutputConverter_cfi
242 mkFitSiPixelHits = mkFitSiPixelHitConverter_cfi.mkFitSiPixelHitConverter.clone()
243 mkFitEventOfHits = mkFitEventOfHitsProducer_cfi.mkFitEventOfHitsProducer.clone()
244 initialStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
245 seeds =
'initialStepSeeds',
247 initialStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
248 ComponentName =
'initialStepTrackCandidatesMkFitConfig',
249 config =
'RecoTracker/MkFit/data/mkfit-phase1-initialStep.json',
251 initialStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
252 seeds =
'initialStepTrackCandidatesMkFitSeeds',
253 config = (
'',
'initialStepTrackCandidatesMkFitConfig'),
255 trackingMkFitInitialStep.toReplaceWith(initialStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
256 seeds =
'initialStepSeeds',
257 mkFitSeeds =
'initialStepTrackCandidatesMkFitSeeds',
258 tracks =
'initialStepTrackCandidatesMkFit',
260 (pp_on_XeXe_2017 | pp_on_AA).toModify(initialStepTrackCandidatesMkFitConfig, minPt=0.6)
262 import FastSimulation.Tracking.TrackCandidateProducer_cfi
263 fastSim.toReplaceWith(initialStepTrackCandidates,
264 FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
265 src =
'initialStepSeeds',
266 MinNumberOfCrossedLayers = 3
272 initialStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
273 src =
'initialStepTrackCandidates',
274 AlgorithmName =
'initialStep',
275 Fitter =
'FlexibleKFFittingSmoother' 277 fastSim.toModify(initialStepTracks, TTRHBuilder =
'WithoutRefit')
279 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
280 phase2_timing_layer.toModify(initialStepTracks, TrajectoryInEvent =
True)
284 firstStepPrimaryVerticesUnsorted = _offlinePrimaryVertices.clone(
285 TrackLabel =
'initialStepTracks',
286 vertexCollections = [_offlinePrimaryVertices.vertexCollections[0].
clone()]
288 (pp_on_XeXe_2017 | pp_on_AA).toModify(firstStepPrimaryVerticesUnsorted, TkFilterParameters = dict(trackQuality =
'any'))
294 firstStepPrimaryVerticesBeforeMixing = firstStepPrimaryVerticesUnsorted.clone()
295 fastSim.toModify(firstStepPrimaryVerticesUnsorted, TrackLabel =
'generalTracks')
299 initialStepTrackRefsForJets = trackRefsForJets.clone(
300 src =
'initialStepTracks' 302 fastSim.toModify(initialStepTrackRefsForJets, src =
'generalTracks')
305 firstStepPrimaryVertices = _sortedPrimaryVertices.clone(
306 vertices =
'firstStepPrimaryVerticesUnsorted',
307 particles =
'initialStepTrackRefsForJets',
315 initialStepClassifier1 = TrackMVAClassifierPrompt.clone(
316 src =
'initialStepTracks',
317 mva = dict(GBRForestLabel =
'MVASelectorIter0_13TeV'),
318 qualityCuts = [-0.9,-0.8,-0.7]
320 fastSim.toModify(initialStepClassifier1,vertices =
'firstStepPrimaryVerticesBeforeMixing')
324 initialStepClassifier2 = detachedTripletStepClassifier1.clone(
325 src =
'initialStepTracks' 327 fastSim.toModify(initialStepClassifier2,vertices =
'firstStepPrimaryVerticesBeforeMixing')
328 initialStepClassifier3 = lowPtTripletStep.clone(
329 src =
'initialStepTracks' 331 fastSim.toModify(initialStepClassifier3,vertices =
'firstStepPrimaryVerticesBeforeMixing')
334 initialStep = ClassifierMerger.clone(
335 inputClassifiers=[
'initialStepClassifier1',
'initialStepClassifier2',
'initialStepClassifier3']
337 trackingPhase1.toReplaceWith(initialStep, initialStepClassifier1.clone(
338 mva = dict(GBRForestLabel =
'MVASelectorInitialStep_Phase1'),
339 qualityCuts = [-0.95,-0.85,-0.75]
345 trackdnn.toReplaceWith(initialStep, trackTfClassifier.clone(
346 src =
'initialStepTracks',
347 qualityCuts = qualityCutDictionary.InitialStep.value()
350 (trackdnn & fastSim).toModify(initialStep,vertices =
'firstStepPrimaryVerticesBeforeMixing')
353 pp_on_AA.toModify(initialStep,
354 mva = dict(GBRForestLabel =
'HIMVASelectorInitialStep_Phase1'),
355 qualityCuts = [-0.9, -0.5, 0.2],
359 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
360 initialStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
361 src =
'initialStepTracks',
362 useAnyMVA = cms.bool(
False),
363 GBRForestLabel = cms.string(
'MVASelectorIter0'),
365 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
366 name =
'initialStepLoose',
368 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
369 name =
'initialStepTight',
370 preFilterName =
'initialStepLoose',
372 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
373 name =
'QualityMasks',
374 preFilterName =
'initialStepTight',
378 trackingPhase2PU140.toModify(initialStepSelector,
380 GBRForestLabel =
None,
381 trackSelectors= cms.VPSet(
382 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
383 name =
'initialStepLoose',
385 res_par = ( 0.003, 0.002 ),
387 maxNumberLostLayers = 3,
388 minNumber3DLayers = 3,
389 d0_par1 = ( 0.8, 4.0 ),
390 dz_par1 = ( 0.9, 4.0 ),
391 d0_par2 = ( 0.6, 4.0 ),
392 dz_par2 = ( 0.8, 4.0 )
394 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
395 name =
'initialStepTight',
396 preFilterName =
'initialStepLoose',
398 res_par = ( 0.003, 0.002 ),
400 maxNumberLostLayers = 2,
401 minNumber3DLayers = 3,
402 d0_par1 = ( 0.7, 4.0 ),
403 dz_par1 = ( 0.8, 4.0 ),
404 d0_par2 = ( 0.5, 4.0 ),
405 dz_par2 = ( 0.7, 4.0 )
407 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
408 name =
'initialStep',
409 preFilterName =
'initialStepTight',
413 res_par = ( 0.003, 0.001 ),
415 maxNumberLostLayers = 2,
416 minNumber3DLayers = 3,
417 d0_par1 = ( 0.6, 4.0 ),
418 dz_par1 = ( 0.7, 4.0 ),
419 d0_par2 = ( 0.45, 4.0 ),
420 dz_par2 = ( 0.55, 4.0 )
428 InitialStepTask = cms.Task(initialStepSeedLayers,
429 initialStepTrackingRegions,
430 initialStepHitDoublets,
431 initialStepHitTriplets,
433 initialStepTrackCandidates,
435 firstStepPrimaryVerticesUnsorted,
436 initialStepTrackRefsForJets,
437 firstStepPrimaryVertices,
438 initialStepClassifier1,initialStepClassifier2,initialStepClassifier3,
439 initialStep,caloJetsForTrkTask)
440 InitialStep = cms.Sequence(InitialStepTask)
443 _InitialStepTask_trackingMkFitCommon = InitialStepTask.copy()
444 _InitialStepTask_trackingMkFitCommon.add(mkFitSiPixelHits, mkFitEventOfHits, mkFitGeometryESProducer)
445 trackingMkFitCommon.toReplaceWith(InitialStepTask, _InitialStepTask_trackingMkFitCommon)
447 _InitialStepTask_trackingMkFit = InitialStepTask.copy()
448 _InitialStepTask_trackingMkFit.add(initialStepTrackCandidatesMkFitSeeds, initialStepTrackCandidatesMkFit, initialStepTrackCandidatesMkFitConfig)
449 trackingMkFitInitialStep.toReplaceWith(InitialStepTask, _InitialStepTask_trackingMkFit)
451 _InitialStepTask_LowPU = InitialStepTask.copyAndExclude([firstStepPrimaryVerticesUnsorted, initialStepTrackRefsForJets, caloJetsForTrkTask, firstStepPrimaryVertices, initialStepClassifier1, initialStepClassifier2, initialStepClassifier3])
452 _InitialStepTask_LowPU.replace(initialStep, initialStepSelector)
453 trackingLowPU.toReplaceWith(InitialStepTask, _InitialStepTask_LowPU)
455 _InitialStepTask_Phase1 = InitialStepTask.copyAndExclude([initialStepClassifier2, initialStepClassifier3])
456 _InitialStepTask_Phase1.replace(initialStepHitTriplets, initialStepHitQuadruplets)
457 trackingPhase1.toReplaceWith(InitialStepTask, _InitialStepTask_Phase1)
459 _InitialStepTask_trackingPhase2 = InitialStepTask.copyAndExclude([initialStepClassifier1, initialStepClassifier2, initialStepClassifier3])
460 _InitialStepTask_trackingPhase2.replace(initialStepHitTriplets, initialStepHitQuadruplets)
461 _InitialStepTask_trackingPhase2.replace(initialStep, initialStepSelector)
462 trackingPhase2PU140.toReplaceWith(InitialStepTask, _InitialStepTask_trackingPhase2)
464 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
465 _InitialStepTask_fastSim = cms.Task(initialStepTrackingRegions
467 ,initialStepTrackCandidates
469 ,firstStepPrimaryVerticesBeforeMixing
470 ,initialStepClassifier1,initialStepClassifier2,initialStepClassifier3
473 fastSim.toReplaceWith(InitialStepTask, _InitialStepTask_fastSim)
def _hitSetProducerToFactoryPSet(producer)
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)