1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
3 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
8 highPtTripletStepClusters = _cfg.clusterRemoverForIter(
"HighPtTripletStep")
9 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
10 _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter(
"HighPtTripletStep", _eraName, _postfix))
15 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
21 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
22 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
23 'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
24 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
25 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
26 'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
27 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
28 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
29 'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg' 31 BPix =
dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters')),
32 FPix =
dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters'))
35 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
36 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
38 layerList = [
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
39 'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
40 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
41 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
42 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
43 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
45 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
46 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
48 'FPix2_pos+FPix3_pos+FPix4_pos',
'FPix2_neg+FPix3_neg+FPix4_neg',
49 'FPix3_pos+FPix4_pos+FPix5_pos',
'FPix3_neg+FPix4_neg+FPix5_neg',
50 'FPix4_pos+FPix5_pos+FPix6_pos',
'FPix4_neg+FPix5_neg+FPix6_neg',
51 'FPix5_pos+FPix6_pos+FPix7_pos',
'FPix5_neg+FPix6_neg+FPix7_neg',
52 'FPix6_pos+FPix7_pos+FPix8_pos',
'FPix6_neg+FPix7_neg+FPix8_neg',
58 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
59 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet =
dict(
64 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.7, originRadius = 0.02))
66 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
67 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
69 (pp_on_XeXe_2017 | pp_on_AA_2018).toReplaceWith(highPtTripletStepTrackingRegions,
70 _globalTrackingRegionWithVertices.clone(RegionPSet=
dict(
77 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
78 highBetaStar_2018.toModify(highPtTripletStepTrackingRegions,RegionPSet =
dict(
85 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
86 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
87 seedingLayers =
"highPtTripletStepSeedLayers",
88 trackingRegions =
"highPtTripletStepTrackingRegions",
91 produceIntermediateHitDoublets =
True,
93 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
94 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
96 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
97 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
98 doublets =
"highPtTripletStepHitDoublets",
99 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
100 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
103 value1 = 100, value2 = 6,
105 useBendingCorrection =
True,
111 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
112 highBetaStar_2018.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.008,CAPhiCut = 0.14,CAHardPtCut = 0)
114 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
115 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
116 seedingHitSets =
"highPtTripletStepHitTriplets",
120 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
121 from FastSimulation.Tracking.SeedingMigration
import _hitSetProducerToFactoryPSet
122 _fastSim_highPtTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
123 trackingRegions =
"highPtTripletStepTrackingRegions",
124 hitMasks = cms.InputTag(
"highPtTripletStepMasks"),
126 layerList = highPtTripletStepSeedLayers.layerList.value(),
128 BPix =
dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
129 FPix =
dict(TTRHBuilder =
'WithoutRefit', HitProducer =
'TrackingRecHitProducer',),
130 layerPairs = highPtTripletStepHitDoublets.layerPairs.value()
133 _fastSim_highPtTripletStepSeeds.seedFinderSelector.CAHitTripletGeneratorFactory.SeedComparitorPSet.ComponentName =
"none" 134 fastSim.toReplaceWith(highPtTripletStepSeeds,_fastSim_highPtTripletStepSeeds)
138 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
139 minimumNumberOfHits = 3,
142 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
144 minGoodStripCharge =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
146 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
148 for e
in [pp_on_XeXe_2017, pp_on_AA_2018]:
149 e.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
150 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.05)
152 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
153 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
156 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
157 filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
161 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
163 minimumNumberOfHits = 4,
165 strictSeedExtension =
False,
166 pixelSeedExtension =
False,
168 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterInOut, minPt=0.05)
170 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
171 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
172 ComponentName =
'highPtTripletStepChi2Est',
175 clusterChargeCut =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
176 pTChargeCutThreshold = 15.
178 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
179 clusterChargeCut =
dict(refToPSet_ =
"SiStripClusterChargeCutNone"),
180 MaxChi2 = cms.double(20.0)
186 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
187 trajectoryFilter =
dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
188 alwaysUseInvalidHits =
True,
190 estimator =
'highPtTripletStepChi2Est',
191 maxDPhiForLooperReconstruction = cms.double(2.0),
194 maxPtForLooperReconstruction = cms.double(0.7)
196 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
197 inOutTrajectoryFilter =
dict(refToPSet_ =
"highPtTripletStepTrajectoryFilterInOut"),
198 useSameTrajFilter =
False,
204 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
205 src =
'highPtTripletStepSeeds',
206 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
208 numHitsForSeedCleaner = cms.int32(50),
209 onlyPixelHitsForSeedCleaner = cms.bool(
True),
210 TrajectoryBuilderPSet =
dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
211 doSeedingRegionRebuilding =
True,
212 useHitsSplitting =
True 217 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
218 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
219 fractionShared = 0.16,
220 allowSharedFirstHit =
True 222 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
223 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
224 clustersToSkip =
None,
225 phase2clustersToSkip = cms.InputTag(
"highPtTripletStepClusters")
229 import FastSimulation.Tracking.TrackCandidateProducer_cfi
230 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
231 src = cms.InputTag(
"highPtTripletStepSeeds"),
232 MinNumberOfCrossedLayers = 3,
233 hitMasks = cms.InputTag(
"highPtTripletStepMasks")
235 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
239 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
240 src =
'highPtTripletStepTrackCandidates',
241 AlgorithmName =
'highPtTripletStep',
242 Fitter =
'FlexibleKFFittingSmoother',
244 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
248 highPtTripletStep = TrackMVAClassifierPrompt.clone(
249 src =
'highPtTripletStepTracks',
250 mva =
dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
251 qualityCuts = [0.2,0.3,0.4],
253 fastSim.toModify(highPtTripletStep,vertices =
"firstStepPrimaryVerticesBeforeMixing")
254 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
257 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
258 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
259 src =
'highPtTripletStepTracks',
261 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
262 name =
'highPtTripletStepLoose',
264 res_par = ( 0.003, 0.002 ),
266 maxNumberLostLayers = 3,
267 minNumber3DLayers = 3,
268 d0_par1 = ( 0.7, 4.0 ),
269 dz_par1 = ( 0.8, 4.0 ),
270 d0_par2 = ( 0.6, 4.0 ),
271 dz_par2 = ( 0.6, 4.0 )
273 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
274 name =
'highPtTripletStepTight',
275 preFilterName =
'highPtTripletStepLoose',
277 res_par = ( 0.003, 0.002 ),
279 maxNumberLostLayers = 2,
280 minNumber3DLayers = 3,
281 d0_par1 = ( 0.6, 4.0 ),
282 dz_par1 = ( 0.7, 4.0 ),
283 d0_par2 = ( 0.5, 4.0 ),
284 dz_par2 = ( 0.6, 4.0 )
286 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
287 name =
'highPtTripletStep',
288 preFilterName =
'highPtTripletStepTight',
290 res_par = ( 0.003, 0.001 ),
293 maxNumberLostLayers = 2,
294 minNumber3DLayers = 4,
295 d0_par1 = ( 0.6, 4.0 ),
296 dz_par1 = ( 0.7, 4.0 ),
297 d0_par2 = ( 0.45, 4.0 ),
298 dz_par2 = ( 0.55, 4.0 )
304 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
305 highPtTripletStepSeedLayers,
306 highPtTripletStepTrackingRegions,
307 highPtTripletStepHitDoublets,
308 highPtTripletStepHitTriplets,
309 highPtTripletStepSeeds,
310 highPtTripletStepTrackCandidates,
311 highPtTripletStepTracks,
314 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
315 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
316 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
317 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
318 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
321 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
323 fastSim.toReplaceWith(HighPtTripletStepTask,
324 cms.Task(highPtTripletStepMasks
325 ,highPtTripletStepTrackingRegions
326 ,highPtTripletStepSeeds
327 ,highPtTripletStepTrackCandidates
328 ,highPtTripletStepTracks
def _hitSetProducerToFactoryPSet(producer)
def maskProducerFromClusterRemover(clusterRemover)