1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
7 highPtTripletStepClusters = _cfg.clusterRemoverForIter(
"HighPtTripletStep")
8 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
9 _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter(
"HighPtTripletStep", _eraName, _postfix))
14 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
20 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
21 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
22 'BPix1+BPix3+FPix1_pos',
'BPix1+BPix3+FPix1_neg',
23 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
24 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
25 'BPix1+BPix2+FPix2_pos',
'BPix1+BPix2+FPix2_neg',
26 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
27 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
28 'BPix1+FPix1_pos+FPix3_pos',
'BPix1+FPix1_neg+FPix3_neg' 30 BPix =
dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters')),
31 FPix =
dict(skipClusters = cms.InputTag(
'highPtTripletStepClusters'))
34 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
35 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
37 layerList = [
'BPix1+BPix2+BPix3',
'BPix2+BPix3+BPix4',
38 'BPix1+BPix3+BPix4',
'BPix1+BPix2+BPix4',
39 'BPix2+BPix3+FPix1_pos',
'BPix2+BPix3+FPix1_neg',
40 'BPix1+BPix2+FPix1_pos',
'BPix1+BPix2+FPix1_neg',
41 'BPix2+FPix1_pos+FPix2_pos',
'BPix2+FPix1_neg+FPix2_neg',
42 'BPix1+FPix1_pos+FPix2_pos',
'BPix1+FPix1_neg+FPix2_neg',
44 'FPix1_pos+FPix2_pos+FPix3_pos',
'FPix1_neg+FPix2_neg+FPix3_neg',
45 'BPix1+FPix2_pos+FPix3_pos',
'BPix1+FPix2_neg+FPix3_neg',
47 'FPix2_pos+FPix3_pos+FPix4_pos',
'FPix2_neg+FPix3_neg+FPix4_neg',
48 'FPix3_pos+FPix4_pos+FPix5_pos',
'FPix3_neg+FPix4_neg+FPix5_neg',
49 'FPix4_pos+FPix5_pos+FPix6_pos',
'FPix4_neg+FPix5_neg+FPix6_neg',
50 'FPix5_pos+FPix6_pos+FPix7_pos',
'FPix5_neg+FPix6_neg+FPix7_neg',
51 'FPix6_pos+FPix7_pos+FPix8_pos',
'FPix6_neg+FPix7_neg+FPix8_neg',
57 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
58 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet =
dict(
63 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
64 trackingPhase1.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.55))
65 from Configuration.Eras.Modifier_trackingPhase1PU70_cff
import trackingPhase1PU70
66 trackingPhase1PU70.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.7))
67 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.9, originRadius = 0.03))
70 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
71 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
72 seedingLayers =
"highPtTripletStepSeedLayers",
73 trackingRegions =
"highPtTripletStepTrackingRegions",
75 produceIntermediateHitDoublets =
True,
77 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
79 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
80 highPtTripletStepHitTriplets = _pixelTripletHLTEDProducer.clone(
81 doublets =
"highPtTripletStepHitDoublets",
82 produceSeedingHitSets =
True,
83 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone()
85 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
86 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
87 seedingHitSets =
"highPtTripletStepHitTriplets",
90 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
91 trackingPhase1.toModify(highPtTripletStepHitDoublets, layerPairs = [0,1])
92 trackingPhase1.toReplaceWith(highPtTripletStepHitTriplets, _caHitTripletEDProducer.clone(
93 doublets =
"highPtTripletStepHitDoublets",
94 extraHitRPhitolerance = highPtTripletStepHitTriplets.extraHitRPhitolerance,
95 SeedComparitorPSet = highPtTripletStepHitTriplets.SeedComparitorPSet,
98 value1 = 100, value2 = 6,
100 useBendingCorrection =
True,
108 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
109 minimumNumberOfHits = 3,
112 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
114 minGoodStripCharge =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
116 trackingPhase1PU70.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
117 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
118 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
119 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
122 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
123 minimumNumberOfHits = 4,
125 strictSeedExtension =
False,
126 pixelSeedExtension =
False,
130 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
131 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
132 ComponentName =
'highPtTripletStepChi2Est',
135 clusterChargeCut =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
136 pTChargeCutThreshold = 15.
138 trackingPhase1PU70.toModify(highPtTripletStepChi2Est,
139 clusterChargeCut =
dict(refToPSet_ =
"SiStripClusterChargeCutNone")
141 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
142 clusterChargeCut =
dict(refToPSet_ =
"SiStripClusterChargeCutNone"),
143 MaxChi2 = cms.double(25.0)
149 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
150 trajectoryFilter =
dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
151 alwaysUseInvalidHits =
True,
153 estimator =
'highPtTripletStepChi2Est',
154 maxDPhiForLooperReconstruction = cms.double(2.0),
157 maxPtForLooperReconstruction = cms.double(0.7)
159 trackingPhase1PU70.toModify(highPtTripletStepTrajectoryBuilder,
160 MeasurementTrackerName =
'',
163 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
164 inOutTrajectoryFilter =
dict(refToPSet_ =
"highPtTripletStepTrajectoryFilterInOut"),
165 useSameTrajFilter =
False,
171 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
172 src =
'highPtTripletStepSeeds',
173 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
175 numHitsForSeedCleaner = cms.int32(50),
176 onlyPixelHitsForSeedCleaner = cms.bool(
True),
177 TrajectoryBuilderPSet =
dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
178 doSeedingRegionRebuilding =
True,
179 useHitsSplitting =
True 184 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
185 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
186 fractionShared = 0.16,
187 allowSharedFirstHit =
True 189 trackingPhase1PU70.toModify(highPtTripletStepTrackCandidates, TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits')
190 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
191 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
192 clustersToSkip =
None,
193 phase2clustersToSkip = cms.InputTag(
"highPtTripletStepClusters")
198 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
199 src =
'highPtTripletStepTrackCandidates',
200 AlgorithmName =
'highPtTripletStep',
201 Fitter =
'FlexibleKFFittingSmoother',
208 highPtTripletStep = TrackCutClassifier.clone(
209 src =
"highPtTripletStepTracks",
210 vertices =
"firstStepPrimaryVertices",
212 minPixelHits = [1,1,1],
213 maxChi2 = [9999.,9999.,9999.],
214 maxChi2n = [2.0,1.0,0.7],
216 min3DLayers = [3,3,3],
217 maxLostLayers = [3,2,2],
219 dz_par1 = [0.8,0.7,0.7],
220 dz_par2 = [0.6,0.5,0.4],
224 dr_par1 = [0.7,0.6,0.5],
225 dr_par2 = [0.4,0.35,0.25],
227 d0err_par = [0.002,0.002,0.001]
232 trackingPhase1.toReplaceWith(highPtTripletStep, TrackMVAClassifierPrompt.clone(
233 src =
'highPtTripletStepTracks',
234 GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1',
235 qualityCuts = [0.2,0.3,0.4],
237 from Configuration.Eras.Modifier_trackingPhase1QuadProp_cff
import trackingPhase1QuadProp
238 trackingPhase1QuadProp.toReplaceWith(highPtTripletStep, TrackMVAClassifierPrompt.clone(
239 src =
'highPtTripletStepTracks',
240 GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1',
241 qualityCuts = [0.2,0.3,0.4],
246 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
247 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
248 src =
'highPtTripletStepTracks',
250 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
251 name =
'highPtTripletStepLoose',
253 res_par = ( 0.003, 0.002 ),
255 maxNumberLostLayers = 3,
256 minNumber3DLayers = 3,
257 d0_par1 = ( 0.7, 4.0 ),
258 dz_par1 = ( 0.8, 4.0 ),
259 d0_par2 = ( 0.4, 4.0 ),
260 dz_par2 = ( 0.6, 4.0 )
262 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
263 name =
'highPtTripletStepTight',
264 preFilterName =
'highPtTripletStepLoose',
266 res_par = ( 0.003, 0.002 ),
268 maxNumberLostLayers = 2,
269 minNumber3DLayers = 3,
270 d0_par1 = ( 0.6, 4.0 ),
271 dz_par1 = ( 0.7, 4.0 ),
272 d0_par2 = ( 0.35, 4.0 ),
273 dz_par2 = ( 0.5, 4.0 )
275 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
276 name =
'highPtTripletStep',
277 preFilterName =
'highPtTripletStepTight',
279 res_par = ( 0.003, 0.001 ),
281 maxNumberLostLayers = 2,
282 minNumber3DLayers = 3,
283 d0_par1 = ( 0.5, 4.0 ),
284 dz_par1 = ( 0.7, 4.0 ),
285 d0_par2 = ( 0.25, 4.0 ),
286 dz_par2 = ( 0.4, 4.0 )
291 trackingPhase2PU140.toModify(highPtTripletStepSelector,
292 trackSelectors= cms.VPSet(
293 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
294 name =
'highPtTripletStepLoose',
296 res_par = ( 0.003, 0.002 ),
298 maxNumberLostLayers = 3,
299 minNumber3DLayers = 3,
300 d0_par1 = ( 0.7, 4.0 ),
301 dz_par1 = ( 0.8, 4.0 ),
302 d0_par2 = ( 0.6, 4.0 ),
303 dz_par2 = ( 0.6, 4.0 )
305 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
306 name =
'highPtTripletStepTight',
307 preFilterName =
'highPtTripletStepLoose',
309 res_par = ( 0.003, 0.002 ),
311 maxNumberLostLayers = 2,
312 minNumber3DLayers = 3,
313 d0_par1 = ( 0.6, 4.0 ),
314 dz_par1 = ( 0.7, 4.0 ),
315 d0_par2 = ( 0.5, 4.0 ),
316 dz_par2 = ( 0.5, 4.0 )
320 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
321 name =
'highPtTripletStep',
322 preFilterName =
'highPtTripletStepTight',
324 res_par = ( 0.003, 0.001 ),
327 maxNumberLostLayers = 2,
328 minNumber3DLayers = 5,
329 d0_par1 = ( 0.5, 4.0 ),
330 dz_par1 = ( 0.6, 4.0 ),
331 d0_par2 = ( 0.45, 4.0 ),
332 dz_par2 = ( 0.45, 4.0 )
335 vertices =
"pixelVertices" 339 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
340 highPtTripletStepSeedLayers*
341 highPtTripletStepTrackingRegions*
342 highPtTripletStepHitDoublets*
343 highPtTripletStepHitTriplets*
344 highPtTripletStepSeeds*
345 highPtTripletStepTrackCandidates*
346 highPtTripletStepTracks*
349 _HighPtTripletStep_Phase1PU70 = HighPtTripletStep.copy()
350 _HighPtTripletStep_Phase1PU70.replace(highPtTripletStep, highPtTripletStepSelector)
351 trackingPhase1PU70.toReplaceWith(HighPtTripletStep, _HighPtTripletStep_Phase1PU70)
352 trackingPhase2PU140.toReplaceWith(HighPtTripletStep, _HighPtTripletStep_Phase1PU70)