1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
5 lowPtQuadStepClusters = _cfg.clusterRemoverForIter(
"LowPtQuadStep")
6 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
7 _era.toReplaceWith(lowPtQuadStepClusters, _cfg.clusterRemoverForIter(
"LowPtQuadStep", _eraName, _postfix))
11 import RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi
12 lowPtQuadStepSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerQuadruplets_cfi.PixelLayerQuadruplets.clone(
13 BPix =
dict(skipClusters = cms.InputTag(
'lowPtQuadStepClusters')),
14 FPix =
dict(skipClusters = cms.InputTag(
'lowPtQuadStepClusters'))
18 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
19 lowPtQuadStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet =
dict(
24 from Configuration.Eras.Modifier_trackingPhase1QuadProp_cff
import trackingPhase1QuadProp
25 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
26 trackingPhase1QuadProp.toModify(lowPtQuadStepTrackingRegions, RegionPSet =
dict(ptMin = 0.2))
27 trackingPhase2PU140.toModify(lowPtQuadStepTrackingRegions, RegionPSet =
dict(ptMin = 0.35,originRadius = 0.025))
31 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
32 lowPtQuadStepHitDoublets = _hitPairEDProducer.clone(
33 seedingLayers =
"lowPtQuadStepSeedLayers",
34 trackingRegions =
"lowPtQuadStepTrackingRegions",
37 produceIntermediateHitDoublets =
True,
39 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi
import caHitQuadrupletEDProducer
as _caHitQuadrupletEDProducer
40 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
42 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
43 lowPtQuadStepHitQuadruplets = _caHitQuadrupletEDProducer.clone(
44 doublets =
"lowPtQuadStepHitDoublets",
45 extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
46 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
49 value1 = 1000, value2 = 150,
51 useBendingCorrection =
True,
53 fitFastCircleChi2Cut =
True,
57 trackingPhase2PU140.toModify(lowPtQuadStepHitQuadruplets,CAThetaCut = 0.0015,CAPhiCut = 0.25)
59 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
60 lowPtQuadStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
61 seedingHitSets =
"lowPtQuadStepHitQuadruplets",
64 trackingPhase1QuadProp.toModify(lowPtQuadStepHitDoublets, layerPairs = [0])
65 lowPtQuadStepHitTriplets = _pixelTripletHLTEDProducer.clone(
66 doublets =
"lowPtQuadStepHitDoublets",
67 produceIntermediateHitTriplets =
True,
68 SeedComparitorPSet = lowPtQuadStepHitQuadruplets.SeedComparitorPSet,
70 from RecoPixelVertexing.PixelTriplets.pixelQuadrupletEDProducer_cfi
import pixelQuadrupletEDProducer
as _pixelQuadrupletEDProducer
71 _lowPtQuadStepHitQuadruplets_propagation = _pixelQuadrupletEDProducer.clone(
72 triplets =
"lowPtQuadStepHitTriplets",
73 extraHitRZtolerance = lowPtQuadStepHitTriplets.extraHitRZtolerance,
74 extraHitRPhitolerance = lowPtQuadStepHitTriplets.extraHitRPhitolerance,
77 value1 = 2000, value2 = 100,
82 value1 = 0.4, value2 = 0.05,
85 useBendingCorrection =
True,
87 fitFastCircleChi2Cut =
True,
88 SeedComparitorPSet = lowPtQuadStepHitTriplets.SeedComparitorPSet,
90 trackingPhase1QuadProp.toReplaceWith(lowPtQuadStepHitQuadruplets, _lowPtQuadStepHitQuadruplets_propagation)
96 _lowPtQuadStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
97 minimumNumberOfHits = 3,
100 lowPtQuadStepTrajectoryFilterBase = _lowPtQuadStepTrajectoryFilterBase.clone(
102 minGoodStripCharge =
dict(refToPSet_ =
'SiStripClusterChargeCutLoose')
104 trackingPhase2PU140.toReplaceWith(lowPtQuadStepTrajectoryFilterBase, _lowPtQuadStepTrajectoryFilterBase)
108 lowPtQuadStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
109 filters = [cms.PSet(refToPSet_ = cms.string(
'lowPtQuadStepTrajectoryFilterBase'))]
111 trackingPhase2PU140.toModify(lowPtQuadStepTrajectoryFilter,
112 filters = lowPtQuadStepTrajectoryFilter.filters.value() + [cms.PSet(refToPSet_ = cms.string(
'ClusterShapeTrajectoryFilter'))]
115 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
116 lowPtQuadStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
117 ComponentName =
'lowPtQuadStepChi2Est',
120 clusterChargeCut =
dict(refToPSet_ = (
'SiStripClusterChargeCutTight')),
122 trackingPhase2PU140.toModify(lowPtQuadStepChi2Est,
124 clusterChargeCut =
dict(refToPSet_ =
'SiStripClusterChargeCutNone')
129 lowPtQuadStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
130 MeasurementTrackerName =
'',
131 trajectoryFilter =
dict(refToPSet_ =
'lowPtQuadStepTrajectoryFilter'),
133 estimator = cms.string(
'lowPtQuadStepChi2Est'),
134 maxDPhiForLooperReconstruction = cms.double(2.0),
137 maxPtForLooperReconstruction = cms.double(0.7)
139 trackingPhase2PU140.toModify(lowPtQuadStepTrajectoryBuilder,
140 minNrOfHitsForRebuild = 1,
141 keepOriginalIfRebuildFails =
True,
147 lowPtQuadStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
148 ComponentName =
'lowPtQuadStepTrajectoryCleanerBySharedHits',
149 fractionShared = 0.16,
150 allowSharedFirstHit =
True 152 trackingPhase2PU140.toModify(lowPtQuadStepTrajectoryCleanerBySharedHits, fractionShared = 0.09)
155 lowPtQuadStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
156 src =
'lowPtQuadStepSeeds',
158 numHitsForSeedCleaner = cms.int32(50),
159 onlyPixelHitsForSeedCleaner = cms.bool(
True),
160 TrajectoryBuilderPSet =
dict(refToPSet_ =
'lowPtQuadStepTrajectoryBuilder'),
161 TrajectoryCleaner =
'lowPtQuadStepTrajectoryCleanerBySharedHits',
162 clustersToSkip = cms.InputTag(
'lowPtQuadStepClusters'),
163 doSeedingRegionRebuilding =
True,
164 useHitsSplitting =
True 166 trackingPhase2PU140.toModify(lowPtQuadStepTrackCandidates,
167 clustersToSkip =
None,
168 phase2clustersToSkip = cms.InputTag(
"lowPtQuadStepClusters")
172 lowPtQuadStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
173 src =
'lowPtQuadStepTrackCandidates',
174 AlgorithmName =
'lowPtQuadStep',
175 Fitter =
'FlexibleKFFittingSmoother',
182 lowPtQuadStep = TrackMVAClassifierPrompt.clone(
183 src =
'lowPtQuadStepTracks',
184 GBRForestLabel =
'MVASelectorLowPtQuadStep_Phase1',
185 qualityCuts = [-0.65,-0.35,-0.15],
189 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
190 lowPtQuadStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
191 src =
'lowPtQuadStepTracks',
193 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
194 name =
'lowPtQuadStepLoose',
196 res_par = ( 0.003, 0.002 ),
198 maxNumberLostLayers = 2,
199 minNumber3DLayers = 3,
200 d0_par1 = ( 0.8, 4.0 ),
201 dz_par1 = ( 0.7, 4.0 ),
202 d0_par2 = ( 0.6, 4.0 ),
203 dz_par2 = ( 0.6, 4.0 )
205 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
206 name =
'lowPtQuadStepTight',
207 preFilterName =
'lowPtQuadStepLoose',
209 res_par = ( 0.003, 0.002 ),
211 maxNumberLostLayers = 2,
212 minNumber3DLayers = 3,
213 d0_par1 = ( 0.7, 4.0 ),
214 dz_par1 = ( 0.6, 4.0 ),
215 d0_par2 = ( 0.5, 4.0 ),
216 dz_par2 = ( 0.5, 4.0 )
218 RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
219 name =
'lowPtQuadStep',
220 preFilterName =
'lowPtQuadStepTight',
222 res_par = ( 0.003, 0.001 ),
224 maxNumberLostLayers = 2,
225 minNumber3DLayers = 3,
226 d0_par1 = ( 0.5, 4.0 ),
227 dz_par1 = ( 0.5, 4.0 ),
228 d0_par2 = ( 0.45, 4.0 ),
229 dz_par2 = ( 0.45, 4.0 )
236 LowPtQuadStep = cms.Sequence(lowPtQuadStepClusters*
237 lowPtQuadStepSeedLayers*
238 lowPtQuadStepTrackingRegions*
239 lowPtQuadStepHitDoublets*
240 lowPtQuadStepHitQuadruplets*
242 lowPtQuadStepTrackCandidates*
245 _LowPtQuadStep_Phase1Prop = LowPtQuadStep.copy()
246 _LowPtQuadStep_Phase1Prop.replace(lowPtQuadStepHitDoublets, lowPtQuadStepHitDoublets+lowPtQuadStepHitTriplets)
247 trackingPhase1QuadProp.toReplaceWith(LowPtQuadStep, _LowPtQuadStep_Phase1Prop)
248 _LowPtQuadStep_Phase2PU140 = LowPtQuadStep.copy()
249 _LowPtQuadStep_Phase2PU140.replace(lowPtQuadStep, lowPtQuadStepSelector)
250 trackingPhase2PU140.toReplaceWith(LowPtQuadStep, _LowPtQuadStep_Phase2PU140)