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 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet =
dict(ptMin = 0.7, originRadius = 0.02))
65 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
66 from RecoTracker.TkTrackingRegions.globalTrackingRegionWithVertices_cff
import globalTrackingRegionWithVertices
as _globalTrackingRegionWithVertices
67 pp_on_XeXe_2017.toReplaceWith(highPtTripletStepTrackingRegions,
68 _globalTrackingRegionWithVertices.clone(RegionPSet=
dict(
78 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
79 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
80 seedingLayers =
"highPtTripletStepSeedLayers",
81 trackingRegions =
"highPtTripletStepTrackingRegions",
84 produceIntermediateHitDoublets =
True,
86 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
87 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
89 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
90 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
91 doublets =
"highPtTripletStepHitDoublets",
92 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
93 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
96 value1 = 100, value2 = 6,
98 useBendingCorrection =
True,
103 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
105 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
106 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
107 seedingHitSets =
"highPtTripletStepHitTriplets",
112 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
113 minimumNumberOfHits = 3,
116 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
118 minGoodStripCharge =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
120 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
122 pp_on_XeXe_2017.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
124 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
125 filters = [cms.PSet(refToPSet_ = cms.string(
'highPtTripletStepTrajectoryFilterBase'))]
128 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
129 filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
133 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
135 minimumNumberOfHits = 4,
137 strictSeedExtension =
False,
138 pixelSeedExtension =
False,
142 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
143 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
144 ComponentName =
'highPtTripletStepChi2Est',
147 clusterChargeCut =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose'),
148 pTChargeCutThreshold = 15.
150 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
151 clusterChargeCut =
dict(refToPSet_ =
"SiStripClusterChargeCutNone"),
152 MaxChi2 = cms.double(20.0)
158 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
159 trajectoryFilter =
dict(refToPSet_ =
'highPtTripletStepTrajectoryFilter'),
160 alwaysUseInvalidHits =
True,
162 estimator =
'highPtTripletStepChi2Est',
163 maxDPhiForLooperReconstruction = cms.double(2.0),
166 maxPtForLooperReconstruction = cms.double(0.7)
168 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
169 inOutTrajectoryFilter =
dict(refToPSet_ =
"highPtTripletStepTrajectoryFilterInOut"),
170 useSameTrajFilter =
False,
176 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
177 src =
'highPtTripletStepSeeds',
178 clustersToSkip = cms.InputTag(
'highPtTripletStepClusters'),
180 numHitsForSeedCleaner = cms.int32(50),
181 onlyPixelHitsForSeedCleaner = cms.bool(
True),
182 TrajectoryBuilderPSet =
dict(refToPSet_ =
'highPtTripletStepTrajectoryBuilder'),
183 doSeedingRegionRebuilding =
True,
184 useHitsSplitting =
True 189 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
190 ComponentName =
'highPtTripletStepTrajectoryCleanerBySharedHits',
191 fractionShared = 0.16,
192 allowSharedFirstHit =
True 194 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates,
195 TrajectoryCleaner =
'highPtTripletStepTrajectoryCleanerBySharedHits',
196 clustersToSkip =
None,
197 phase2clustersToSkip = cms.InputTag(
"highPtTripletStepClusters")
202 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
203 src =
'highPtTripletStepTrackCandidates',
204 AlgorithmName =
'highPtTripletStep',
205 Fitter =
'FlexibleKFFittingSmoother',
211 highPtTripletStep = TrackMVAClassifierPrompt.clone(
212 src =
'highPtTripletStepTracks',
213 mva =
dict(GBRForestLabel =
'MVASelectorHighPtTripletStep_Phase1'),
214 qualityCuts = [0.2,0.3,0.4],
219 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
220 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
221 src =
'highPtTripletStepTracks',
223 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
224 name =
'highPtTripletStepLoose',
226 res_par = ( 0.003, 0.002 ),
228 maxNumberLostLayers = 3,
229 minNumber3DLayers = 3,
230 d0_par1 = ( 0.7, 4.0 ),
231 dz_par1 = ( 0.8, 4.0 ),
232 d0_par2 = ( 0.6, 4.0 ),
233 dz_par2 = ( 0.6, 4.0 )
235 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
236 name =
'highPtTripletStepTight',
237 preFilterName =
'highPtTripletStepLoose',
239 res_par = ( 0.003, 0.002 ),
241 maxNumberLostLayers = 2,
242 minNumber3DLayers = 3,
243 d0_par1 = ( 0.6, 4.0 ),
244 dz_par1 = ( 0.7, 4.0 ),
245 d0_par2 = ( 0.5, 4.0 ),
246 dz_par2 = ( 0.6, 4.0 )
248 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
249 name =
'highPtTripletStep',
250 preFilterName =
'highPtTripletStepTight',
252 res_par = ( 0.003, 0.001 ),
255 maxNumberLostLayers = 2,
256 minNumber3DLayers = 4,
257 d0_par1 = ( 0.6, 4.0 ),
258 dz_par1 = ( 0.7, 4.0 ),
259 d0_par2 = ( 0.45, 4.0 ),
260 dz_par2 = ( 0.55, 4.0 )
266 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
267 highPtTripletStepSeedLayers,
268 highPtTripletStepTrackingRegions,
269 highPtTripletStepHitDoublets,
270 highPtTripletStepHitTriplets,
271 highPtTripletStepSeeds,
272 highPtTripletStepTrackCandidates,
273 highPtTripletStepTracks,
276 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
277 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
278 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
279 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
280 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)