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
11 highPtTripletStepClusters = _cfg.clusterRemoverForIter(
"HighPtTripletStep")
12 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
13 _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter(
"HighPtTripletStep", _eraName, _postfix))
18 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
24 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
25 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
26 'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
27 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
28 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
29 'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
30 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
31 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
32 'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg'
34 BPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters')),
35 FPix = dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters'))
38 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
39 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
41 layerList = [
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
42 'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
43 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
44 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
45 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
46 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
48 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
49 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
51 'FPix2_pos+FPix3_pos+FPix4_pos',
'FPix2_neg+FPix3_neg+FPix4_neg',
52 'FPix3_pos+FPix4_pos+FPix5_pos',
'FPix3_neg+FPix4_neg+FPix5_neg',
53 'FPix4_pos+FPix5_pos+FPix6_pos',
'FPix4_neg+FPix5_neg+FPix6_neg',
54 'FPix5_pos+FPix6_pos+FPix7_pos',
'FPix5_neg+FPix6_neg+FPix7_neg',
55 'FPix6_pos+FPix7_pos+FPix8_pos',
'FPix6_neg+FPix7_neg+FPix8_neg',
61 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
62 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet = dict(
67 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet = dict(ptMin = 0.7, originRadius = 0.02))
69 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
70 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
72 (pp_on_XeXe_2017 | pp_on_AA_2018).toReplaceWith(highPtTripletStepTrackingRegions,
73 _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
80 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
81 highBetaStar_2018.toModify(highPtTripletStepTrackingRegions,RegionPSet = dict(
88 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
89 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
90 seedingLayers =
"highPtTripletStepSeedLayers",
91 trackingRegions =
"highPtTripletStepTrackingRegions",
93 maxElement = 50000000,
94 produceIntermediateHitDoublets =
True,
96 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
97 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
99 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
100 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
101 doublets =
"highPtTripletStepHitDoublets",
102 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
103 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
106 value1 = 100, value2 = 6,
108 useBendingCorrection =
True,
114 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
115 highBetaStar_2018.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.008,CAPhiCut = 0.14,CAHardPtCut = 0)
117 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
118 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
119 seedingHitSets =
"highPtTripletStepHitTriplets",
123 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
124 from FastSimulation.Tracking.SeedingMigration
import _hitSetProducerToFactoryPSet
125 _fastSim_highPtTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
126 trackingRegions =
"highPtTripletStepTrackingRegions",
127 hitMasks = cms.InputTag(
"highPtTripletStepMasks"),
129 layerList = highPtTripletStepSeedLayers.layerList.value(),
131 BPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
132 FPix = dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
133 layerPairs = highPtTripletStepHitDoublets.layerPairs.value()
136 _fastSim_highPtTripletStepSeeds.seedFinderSelector.CAHitTripletGeneratorFactory.SeedComparitorPSet.ComponentName =
"none"
137 fastSim.toReplaceWith(highPtTripletStepSeeds,_fastSim_highPtTripletStepSeeds)
141 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
142 minimumNumberOfHits = 3,
145 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
147 minGoodStripCharge = dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
149 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
151 for e
in [pp_on_XeXe_2017, pp_on_AA_2018]:
152 e.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"),
183 MaxChi2 = cms.double(20.0)
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
220 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
221 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
222 fractionShared = 0.16,
223 allowSharedFirstHit =
True
225 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
226 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
227 clustersToSkip =
None,
228 phase2clustersToSkip = cms.InputTag(
"highPtTripletStepClusters")
232 import FastSimulation.Tracking.TrackCandidateProducer_cfi
233 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
234 src = cms.InputTag(
"highPtTripletStepSeeds"),
235 MinNumberOfCrossedLayers = 3,
236 hitMasks = cms.InputTag(
"highPtTripletStepMasks")
238 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
242 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
243 src =
'highPtTripletStepTrackCandidates',
244 AlgorithmName =
'highPtTripletStep',
245 Fitter =
'FlexibleKFFittingSmoother',
247 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
251 highPtTripletStep = TrackMVAClassifierPrompt.clone(
252 mva = dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
253 src =
'highPtTripletStepTracks',
254 qualityCuts = [0.2,0.3,0.4]
259 trackdnn.toReplaceWith(highPtTripletStep, TrackLwtnnClassifier.clone(
260 src =
'highPtTripletStepTracks',
261 qualityCuts = [0.75, 0.775, 0.8],
264 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
265 pp_on_AA_2018.toModify(highPtTripletStep,
266 mva = dict(GBRForestLabel =
'HIMVASelectorHighPtTripletStep_Phase1'),
267 qualityCuts = [-0.9, -0.3, 0.85],
270 fastSim.toModify(highPtTripletStep,vertices =
"firstStepPrimaryVerticesBeforeMixing")
273 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
274 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
275 src =
'highPtTripletStepTracks',
277 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
278 name =
'highPtTripletStepLoose',
280 res_par = ( 0.003, 0.002 ),
282 maxNumberLostLayers = 3,
283 minNumber3DLayers = 3,
284 d0_par1 = ( 0.7, 4.0 ),
285 dz_par1 = ( 0.8, 4.0 ),
286 d0_par2 = ( 0.6, 4.0 ),
287 dz_par2 = ( 0.6, 4.0 )
289 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
290 name =
'highPtTripletStepTight',
291 preFilterName =
'highPtTripletStepLoose',
293 res_par = ( 0.003, 0.002 ),
295 maxNumberLostLayers = 2,
296 minNumber3DLayers = 3,
297 d0_par1 = ( 0.6, 4.0 ),
298 dz_par1 = ( 0.7, 4.0 ),
299 d0_par2 = ( 0.5, 4.0 ),
300 dz_par2 = ( 0.6, 4.0 )
302 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
303 name =
'highPtTripletStep',
304 preFilterName =
'highPtTripletStepTight',
308 res_par = ( 0.003, 0.001 ),
311 maxNumberLostLayers = 2,
312 minNumber3DLayers = 4,
313 d0_par1 = ( 0.6, 4.0 ),
314 dz_par1 = ( 0.7, 4.0 ),
315 d0_par2 = ( 0.45, 4.0 ),
316 dz_par2 = ( 0.55, 4.0 )
322 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
323 highPtTripletStepSeedLayers,
324 highPtTripletStepTrackingRegions,
325 highPtTripletStepHitDoublets,
326 highPtTripletStepHitTriplets,
327 highPtTripletStepSeeds,
328 highPtTripletStepTrackCandidates,
329 highPtTripletStepTracks,
332 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
333 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
334 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
335 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
336 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
339 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
341 fastSim.toReplaceWith(HighPtTripletStepTask,
342 cms.Task(highPtTripletStepMasks
343 ,highPtTripletStepTrackingRegions
344 ,highPtTripletStepSeeds
345 ,highPtTripletStepTrackCandidates
346 ,highPtTripletStepTracks