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 from Configuration.Eras.Modifier_trackingPhase1QuadProp_cff
import trackingPhase1QuadProp
65 trackingPhase1QuadProp.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.6))
66 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.7, originRadius = 0.02))
68 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
69 from RecoTracker.TkTrackingRegions.globalTrackingRegionWithVertices_cff
import globalTrackingRegionWithVertices
as _globalTrackingRegionWithVertices
70 pp_on_XeXe_2017.toReplaceWith(highPtTripletStepTrackingRegions,
71 _globalTrackingRegionWithVertices.clone(RegionPSet=
dict(
81 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
82 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
83 seedingLayers =
"highPtTripletStepSeedLayers",
84 trackingRegions =
"highPtTripletStepTrackingRegions",
87 produceIntermediateHitDoublets =
True,
89 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
90 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
92 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
93 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
94 doublets =
"highPtTripletStepHitDoublets",
95 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
96 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
99 value1 = 100, value2 = 6,
101 useBendingCorrection =
True,
107 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
109 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
110 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
111 seedingHitSets =
"highPtTripletStepHitTriplets",
114 trackingPhase1QuadProp.toModify(highPtTripletStepHitDoublets, layerPairs = [0])
115 _highPtTripletStepHitTriplets_propagation = _pixelTripletHLTEDProducer.clone(
116 doublets =
"highPtTripletStepHitDoublets",
117 produceSeedingHitSets =
True,
118 SeedComparitorPSet = highPtTripletStepHitTriplets.SeedComparitorPSet,
120 trackingPhase1QuadProp.toReplaceWith(highPtTripletStepHitTriplets, _highPtTripletStepHitTriplets_propagation)
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 pp_on_XeXe_2017.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
153 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
154 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
157 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
158 filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
162 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
164 minimumNumberOfHits = 4,
166 strictSeedExtension =
False,
167 pixelSeedExtension =
False,
171 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
172 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
173 ComponentName =
'highPtTripletStepChi2Est',
176 clusterChargeCut =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
177 pTChargeCutThreshold = 15.
179 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
180 clusterChargeCut =
dict(refToPSet_ =
"SiStripClusterChargeCutNone"),
181 MaxChi2 = cms.double(20.0)
187 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
188 trajectoryFilter =
dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
189 alwaysUseInvalidHits =
True,
191 estimator =
'highPtTripletStepChi2Est',
192 maxDPhiForLooperReconstruction = cms.double(2.0),
195 maxPtForLooperReconstruction = cms.double(0.7)
197 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
198 inOutTrajectoryFilter =
dict(refToPSet_ =
"highPtTripletStepTrajectoryFilterInOut"),
199 useSameTrajFilter =
False,
205 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
206 src =
'highPtTripletStepSeeds',
207 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
209 numHitsForSeedCleaner = cms.int32(50),
210 onlyPixelHitsForSeedCleaner = cms.bool(
True),
211 TrajectoryBuilderPSet =
dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
212 doSeedingRegionRebuilding =
True,
213 useHitsSplitting =
True 218 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
219 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
220 fractionShared = 0.16,
221 allowSharedFirstHit =
True 223 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
224 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
225 clustersToSkip =
None,
226 phase2clustersToSkip = cms.InputTag(
"highPtTripletStepClusters")
230 import FastSimulation.Tracking.TrackCandidateProducer_cfi
231 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
232 src = cms.InputTag(
"highPtTripletStepSeeds"),
233 MinNumberOfCrossedLayers = 3,
234 hitMasks = cms.InputTag(
"highPtTripletStepMasks")
236 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
240 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
241 src =
'highPtTripletStepTrackCandidates',
242 AlgorithmName =
'highPtTripletStep',
243 Fitter =
'FlexibleKFFittingSmoother',
245 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder =
'WithoutRefit')
249 highPtTripletStep = TrackMVAClassifierPrompt.clone(
250 src =
'highPtTripletStepTracks',
251 mva =
dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
252 qualityCuts = [0.2,0.3,0.4],
254 fastSim.toModify(highPtTripletStep,vertices =
"firstStepPrimaryVerticesBeforeMixing")
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 HighPtTripletStep = cms.Sequence(highPtTripletStepClusters*
305 highPtTripletStepSeedLayers*
306 highPtTripletStepTrackingRegions*
307 highPtTripletStepHitDoublets*
308 highPtTripletStepHitTriplets*
309 highPtTripletStepSeeds*
310 highPtTripletStepTrackCandidates*
311 highPtTripletStepTracks*
314 _HighPtTripletStep_Phase2PU140 = HighPtTripletStep.copy()
315 _HighPtTripletStep_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
316 trackingPhase2PU140.toReplaceWith(HighPtTripletStep, _HighPtTripletStep_Phase2PU140)
319 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi
import maskProducerFromClusterRemover
321 fastSim.toReplaceWith(HighPtTripletStep,
322 cms.Sequence(highPtTripletStepMasks
323 *highPtTripletStepTrackingRegions
324 *highPtTripletStepSeeds
325 *highPtTripletStepTrackCandidates
326 *highPtTripletStepTracks
def _hitSetProducerToFactoryPSet(producer)
def maskProducerFromClusterRemover(clusterRemover)