1 import FWCore.ParameterSet.Config
as cms
2 import RecoTracker.IterativeTracking.iterativeTkConfig
as _cfg
5 from Configuration.ProcessModifiers.trackdnn_cff
import trackdnn
6 from RecoTracker.IterativeTracking.dnnQualityCuts
import qualityCutDictionary
9 from Configuration.ProcessModifiers.trackingNoLoopers_cff
import trackingNoLoopers
15 displacedRegionalStepClusters = _cfg.clusterRemoverForIter(
"DisplacedRegionalStep")
16 for _eraName, _postfix, _era
in _cfg.nonDefaultEras():
17 _era.toReplaceWith(displacedRegionalStepClusters, _cfg.clusterRemoverForIter(
"DisplacedRegionalStep", _eraName, _postfix))
23 displacedRegionalStepSeedLayersTripl = _mod.seedingLayersEDProducer.clone(
28 'TOB1+TOB2+MTEC1_pos',
'TOB1+TOB2+MTEC1_neg',
31 TTRHBuilder = cms.string(
'WithTrackAngle'),
32 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
33 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
34 skipClusters = cms.InputTag(
'displacedRegionalStepClusters')
37 TTRHBuilder = cms.string(
'WithTrackAngle'),
38 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
39 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
40 rphiRecHits = cms.InputTag(
'siStripMatchedRecHits',
'rphiRecHit')
43 rphiRecHits = cms.InputTag(
'siStripMatchedRecHits',
'rphiRecHit'),
44 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
45 useRingSlector = cms.bool(
True),
46 TTRHBuilder = cms.string(
'WithTrackAngle'),
47 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
48 minRing = cms.int32(6),
49 maxRing = cms.int32(7)
54 from RecoTracker.FinalTrackSelectors.displacedRegionalStepInputTracks_cfi
import displacedRegionalStepInputTracks
56 from RecoTracker.DisplacedRegionalTracking.displacedRegionProducer_cfi
import displacedRegionProducer
as _displacedRegionProducer
57 displacedRegionalStepSeedingV0Candidates = _generalV0Candidates.clone(
58 trackRecoAlgorithm =
"displacedRegionalStepInputTracks",
66 allowWideAngleVtx =
True,
69 kShortMassCut = 13000.,
71 displacedRegionalStepSeedingVertices = _displacedRegionProducer.clone(
75 discriminatorCut = 0.5,
76 trackClusters = [
"displacedRegionalStepSeedingV0Candidates",
"Kshort"],
80 displacedRegionalStepFarTrackingRegions = _globalTrackingRegionWithVertices.clone(RegionPSet = dict(
83 VertexCollection = [
"displacedRegionalStepSeedingVertices",
"farRegionsOfInterest"],
84 useFakeVertices =
True,
91 displacedRegionalStepClusterShapeHitFilter = _ClusterShapeHitFilterESProducer.clone(
92 ComponentName =
'displacedRegionalStepClusterShapeHitFilter',
93 doStripShapeCut =
False,
94 clusterChargeCut = dict(refToPSet_ =
'SiStripClusterChargeCutTight')
97 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
98 displacedRegionalStepHitDoubletsTripl = _hitPairEDProducer.clone(
99 seedingLayers =
"displacedRegionalStepSeedLayersTripl",
100 trackingRegions =
"displacedRegionalStepFarTrackingRegions",
101 maxElement = 50000000,
102 produceIntermediateHitDoublets =
True,
104 from RecoTracker.TkSeedGenerator.multiHitFromChi2EDProducer_cfi
import multiHitFromChi2EDProducer
as _multiHitFromChi2EDProducer
105 displacedRegionalStepHitTripletsTripl = _multiHitFromChi2EDProducer.clone(
106 doublets =
"displacedRegionalStepHitDoubletsTripl",
107 extraPhiKDBox = 0.01,
109 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer
110 _displacedRegionalStepSeedComparitorPSet = dict(
111 ComponentName =
'CombinedSeedComparitor',
112 mode = cms.string(
"and"),
113 comparitors = cms.VPSet(
115 ComponentName = cms.string(
'PixelClusterShapeSeedComparitor'),
116 FilterAtHelixStage = cms.bool(
True),
117 FilterPixelHits = cms.bool(
False),
118 FilterStripHits = cms.bool(
True),
119 ClusterShapeHitFilterName = cms.string(
'displacedRegionalStepClusterShapeHitFilter'),
120 ClusterShapeCacheSrc = cms.InputTag(
"siPixelClusterShapeCache")
125 displacedRegionalStepSeedsTripl = _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer.clone(
126 seedingHitSets =
"displacedRegionalStepHitTripletsTripl",
127 SeedComparitorPSet = _displacedRegionalStepSeedComparitorPSet,
130 from RecoTracker.PixelLowPtUtilities.StripSubClusterShapeSeedFilter_cfi
import StripSubClusterShapeSeedFilter
as _StripSubClusterShapeSeedFilter
131 from Configuration.ProcessModifiers.approxSiStripClusters_cff
import approxSiStripClusters
132 (~approxSiStripClusters).toModify(displacedRegionalStepSeedsTripl.SeedComparitorPSet.comparitors, func =
lambda list: list.append(_StripSubClusterShapeSeedFilter.clone()) )
135 displacedRegionalStepSeedLayersPair = _mod.seedingLayersEDProducer.clone(
136 layerList = [
'TOB1+TEC1_pos',
'TOB1+TEC1_neg',
137 'TEC1_pos+TEC2_pos',
'TEC1_neg+TEC2_neg',
138 'TEC2_pos+TEC3_pos',
'TEC2_neg+TEC3_neg',
139 'TEC3_pos+TEC4_pos',
'TEC3_neg+TEC4_neg',
140 'TEC4_pos+TEC5_pos',
'TEC4_neg+TEC5_neg',
141 'TEC5_pos+TEC6_pos',
'TEC5_neg+TEC6_neg',
142 'TEC6_pos+TEC7_pos',
'TEC6_neg+TEC7_neg'],
144 TTRHBuilder = cms.string(
'WithTrackAngle'),
145 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
146 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
147 skipClusters = cms.InputTag(
'displacedRegionalStepClusters')
150 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
151 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
152 useRingSlector = cms.bool(
True),
153 TTRHBuilder = cms.string(
'WithTrackAngle'),
154 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
155 minRing = cms.int32(5),
156 maxRing = cms.int32(5)
162 displacedRegionalStepHitDoubletsPair = _hitPairEDProducer.clone(
163 seedingLayers =
"displacedRegionalStepSeedLayersPair",
164 trackingRegions =
"displacedRegionalStepFarTrackingRegions",
165 produceSeedingHitSets =
True,
166 maxElementTotal = 12000000,
168 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff
import seedCreatorFromRegionConsecutiveHitsEDProducer
as _seedCreatorFromRegionConsecutiveHitsEDProducer
169 displacedRegionalStepSeedsPair = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
170 seedingHitSets =
"displacedRegionalStepHitDoubletsPair",
171 SeedComparitorPSet = _displacedRegionalStepSeedComparitorPSet,
175 displacedRegionalStepPLSeedLayersTripl = _mod.seedingLayersEDProducer.clone(
180 'TIB1+TIB2+MTID1_pos',
'TIB1+TIB2+MTID1_neg',
182 'TID1_pos+TID2_pos+TID3_pos',
'TID1_neg+TID2_neg+TID3_neg',
183 'TID1_pos+TID2_pos+MTID3_pos',
'TID1_neg+TID2_neg+MTID3_neg',
184 'TID1_pos+TID2_pos+MTEC1_pos',
'TID1_neg+TID2_neg+MTEC1_neg',
186 'TID2_pos+TID3_pos+TEC1_pos',
'TID2_neg+TID3_neg+TEC1_neg',
187 'TID2_pos+TID3_pos+MTEC1_pos',
'TID2_neg+TID3_neg+MTEC1_neg',
203 TTRHBuilder = cms.string(
'WithTrackAngle'),
204 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
205 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
206 skipClusters = cms.InputTag(
'displacedRegionalStepClusters')
209 TTRHBuilder = cms.string(
'WithTrackAngle'),
210 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
211 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
212 rphiRecHits = cms.InputTag(
'siStripMatchedRecHits',
'rphiRecHit')
215 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
216 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
217 useRingSlector = cms.bool(
True),
218 TTRHBuilder = cms.string(
'WithTrackAngle'),
219 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
220 minRing = cms.int32(1),
221 maxRing = cms.int32(2)
224 rphiRecHits = cms.InputTag(
'siStripMatchedRecHits',
'rphiRecHit'),
225 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
226 useRingSlector = cms.bool(
True),
227 TTRHBuilder = cms.string(
'WithTrackAngle'),
228 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
229 minRing = cms.int32(3),
230 maxRing = cms.int32(3)
233 matchedRecHits = cms.InputTag(
'siStripMatchedRecHits',
'matchedRecHit'),
234 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
235 useRingSlector = cms.bool(
True),
236 TTRHBuilder = cms.string(
'WithTrackAngle'),
237 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
238 minRing = cms.int32(1),
239 maxRing = cms.int32(2)
242 rphiRecHits = cms.InputTag(
'siStripMatchedRecHits',
'rphiRecHit'),
243 skipClusters = cms.InputTag(
'displacedRegionalStepClusters'),
244 useRingSlector = cms.bool(
True),
245 TTRHBuilder = cms.string(
'WithTrackAngle'),
246 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight')),
247 minRing = cms.int32(3),
248 maxRing = cms.int32(3)
253 displacedRegionalStepNearTrackingRegions = _globalTrackingRegionWithVertices.clone(RegionPSet = dict(
256 VertexCollection = [
"displacedRegionalStepSeedingVertices",
"nearRegionsOfInterest"],
257 useFakeVertices =
True,
262 displacedRegionalStepPLHitDoubletsTripl = _hitPairEDProducer.clone(
263 seedingLayers =
'displacedRegionalStepPLSeedLayersTripl',
264 trackingRegions =
'displacedRegionalStepNearTrackingRegions',
265 maxElement = 50000000,
266 produceIntermediateHitDoublets =
True,
269 displacedRegionalStepPLHitTripletsTripl = _multiHitFromChi2EDProducer.clone(
270 doublets =
'displacedRegionalStepPLHitDoubletsTripl',
273 displacedRegionalStepPLSeedsTripl = _seedCreatorFromRegionConsecutiveHitsTripletOnlyEDProducer.clone(
274 seedingHitSets =
'displacedRegionalStepPLHitTripletsTripl',
275 SeedComparitorPSet = _displacedRegionalStepSeedComparitorPSet,
280 displacedRegionalStepSeeds = RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cfi.globalCombinedSeeds.clone(
281 seedCollections = [
'displacedRegionalStepSeedsTripl',
'displacedRegionalStepSeedsPair',
'displacedRegionalStepPLSeedsTripl']
286 _displacedRegionalStepTrajectoryFilterBase = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
288 minimumNumberOfHits = 5,
292 displacedRegionalStepTrajectoryFilter = _displacedRegionalStepTrajectoryFilterBase.clone(
296 displacedRegionalStepInOutTrajectoryFilter = displacedRegionalStepTrajectoryFilter.clone(
297 minimumNumberOfHits = 4,
300 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
301 displacedRegionalStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
302 ComponentName =
'displacedRegionalStepChi2Est',
305 clusterChargeCut = cms.PSet(refToPSet_ = cms.string(
'SiStripClusterChargeCutTight'))
310 displacedRegionalStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilderIterativeDefault.clone(
311 trajectoryFilter = dict(refToPSet_ =
'displacedRegionalStepTrajectoryFilter'),
312 inOutTrajectoryFilter = dict(refToPSet_ =
'displacedRegionalStepInOutTrajectoryFilter'),
313 useSameTrajFilter =
False,
314 minNrOfHitsForRebuild = 4,
315 alwaysUseInvalidHits =
False,
317 estimator =
'displacedRegionalStepChi2Est',
319 maxDPhiForLooperReconstruction = 2.0,
320 maxPtForLooperReconstruction = 0.7,
322 trackingNoLoopers.toModify(displacedRegionalStepTrajectoryBuilder,
323 maxPtForLooperReconstruction = 0.0)
328 _displacedRegionalStepTrackCandidatesCkf = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidatesIterativeDefault.clone(
329 src =
'displacedRegionalStepSeeds',
330 clustersToSkip =
'displacedRegionalStepClusters',
332 numHitsForSeedCleaner = 50,
333 onlyPixelHitsForSeedCleaner =
False,
334 TrajectoryBuilderPSet = dict(refToPSet_ =
'displacedRegionalStepTrajectoryBuilder'),
335 doSeedingRegionRebuilding =
True,
336 useHitsSplitting =
True,
337 cleanTrajectoryAfterInOut =
True,
338 TrajectoryCleaner =
'displacedRegionalStepTrajectoryCleanerBySharedHits',
340 displacedRegionalStepTrackCandidates = _displacedRegionalStepTrackCandidatesCkf.clone()
343 import RecoTracker.MkFit.mkFitSeedConverter_cfi
as mkFitSeedConverter_cfi
344 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi
as mkFitIterationConfigESProducer_cfi
345 import RecoTracker.MkFit.mkFitProducer_cfi
as mkFitProducer_cfi
346 import RecoTracker.MkFit.mkFitOutputConverter_cfi
as mkFitOutputConverter_cfi
347 displacedRegionalStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
348 seeds =
'displacedRegionalStepSeeds',
350 displacedRegionalStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
351 ComponentName =
'displacedRegionalStepTrackCandidatesMkFitConfig',
352 config =
'RecoTracker/MkFit/data/mkfit-phase1-tobTecStep.json',
354 displacedRegionalStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
355 seeds =
'displacedRegionalStepTrackCandidatesMkFitSeeds',
356 config = (
'',
'displacedRegionalStepTrackCandidatesMkFitConfig'),
357 clustersToSkip =
'displacedRegionalStepClusters',
359 trackingMkFitDisplacedRegionalStep.toReplaceWith(displacedRegionalStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
360 seeds =
'displacedRegionalStepSeeds',
361 mkFitSeeds =
'displacedRegionalStepTrackCandidatesMkFitSeeds',
362 tracks =
'displacedRegionalStepTrackCandidatesMkFit',
366 displacedRegionalStepTrajectoryCleanerBySharedHits = trajectoryCleanerBySharedHits.clone(
367 ComponentName =
'displacedRegionalStepTrajectoryCleanerBySharedHits',
368 fractionShared = 0.09,
369 allowSharedFirstHit =
True 374 displacedRegionalStepFitterSmoother = TrackingTools.TrackFitters.RungeKuttaFitters_cff.KFFittingSmootherWithOutliersRejectionAndRK.clone(
375 ComponentName =
'displacedRegionalStepFitterSmoother',
378 Fitter =
'displacedRegionalStepRKFitter',
379 Smoother =
'displacedRegionalStepRKSmoother' 382 displacedRegionalStepFitterSmootherForLoopers = displacedRegionalStepFitterSmoother.clone(
383 ComponentName =
'displacedRegionalStepFitterSmootherForLoopers',
384 Fitter =
'displacedRegionalStepRKFitterForLoopers',
385 Smoother =
'displacedRegionalStepRKSmootherForLoopers' 389 displacedRegionalStepRKTrajectoryFitter = TrackingTools.TrackFitters.RungeKuttaFitters_cff.RKTrajectoryFitter.clone(
390 ComponentName =
'displacedRegionalStepRKFitter',
394 displacedRegionalStepRKTrajectoryFitterForLoopers = displacedRegionalStepRKTrajectoryFitter.clone(
395 ComponentName =
'displacedRegionalStepRKFitterForLoopers',
396 Propagator =
'PropagatorWithMaterialForLoopers',
399 displacedRegionalStepRKTrajectorySmoother = TrackingTools.TrackFitters.RungeKuttaFitters_cff.RKTrajectorySmoother.clone(
400 ComponentName =
'displacedRegionalStepRKSmoother',
401 errorRescaling = 10.0,
405 displacedRegionalStepRKTrajectorySmootherForLoopers = displacedRegionalStepRKTrajectorySmoother.clone(
406 ComponentName =
'displacedRegionalStepRKSmootherForLoopers',
407 Propagator =
'PropagatorWithMaterialForLoopers',
411 displacedRegionalFlexibleKFFittingSmoother = TrackingTools.TrackFitters.FlexibleKFFittingSmoother_cfi.FlexibleKFFittingSmoother.clone(
412 ComponentName =
'displacedRegionalFlexibleKFFittingSmoother',
413 standardFitter =
'displacedRegionalStepFitterSmoother',
414 looperFitter =
'displacedRegionalStepFitterSmootherForLoopers',
418 import RecoTracker.TrackProducer.TrackProducerIterativeDefault_cfi
419 displacedRegionalStepTracks = RecoTracker.TrackProducer.TrackProducerIterativeDefault_cfi.TrackProducerIterativeDefault.clone(
420 src =
'displacedRegionalStepTrackCandidates',
421 AlgorithmName =
'displacedRegionalStep',
423 Fitter =
'displacedRegionalFlexibleKFFittingSmoother',
429 displacedRegionalStepClassifier1 = TrackMVAClassifierDetached.clone(
430 src =
'displacedRegionalStepTracks',
431 mva = dict(GBRForestLabel =
'MVASelectorIter6_13TeV'),
432 qualityCuts = [-0.6,-0.45,-0.3]
435 displacedRegionalStepClassifier2 = TrackMVAClassifierPrompt.clone(
436 src =
'displacedRegionalStepTracks',
437 mva = dict(GBRForestLabel =
'MVASelectorIter0_13TeV'),
438 qualityCuts = [0.0,0.0,0.0]
442 displacedRegionalStep = ClassifierMerger.clone(
443 inputClassifiers=[
'displacedRegionalStepClassifier1',
'displacedRegionalStepClassifier2']
446 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
447 trackingPhase1.toReplaceWith(displacedRegionalStep, displacedRegionalStepClassifier1.clone(
448 mva = dict(GBRForestLabel =
'MVASelectorTobTecStep_Phase1'),
449 qualityCuts = [-0.6,-0.45,-0.3]
455 trackdnn.toReplaceWith(displacedRegionalStep, trackTfClassifier.clone(
456 mva = dict(tfDnnLabel =
'trackSelectionTfDisplacedRegional'),
457 src =
'displacedRegionalStepTracks',
458 qualityCuts = qualityCutDictionary.DisplacedRegionalStep.value()
461 DisplacedRegionalStepTask = cms.Task(displacedRegionalStepClusters,
462 displacedRegionalStepSeedLayersTripl,
463 displacedRegionalStepInputTracks,
464 displacedRegionalStepSeedingV0Candidates,
465 displacedRegionalStepSeedingVertices,
466 displacedRegionalStepFarTrackingRegions,
467 displacedRegionalStepHitDoubletsTripl,
468 displacedRegionalStepHitTripletsTripl,
469 displacedRegionalStepSeedsTripl,
470 displacedRegionalStepSeedLayersPair,
471 displacedRegionalStepHitDoubletsPair,
472 displacedRegionalStepSeedsPair,
473 displacedRegionalStepPLSeedLayersTripl,
474 displacedRegionalStepNearTrackingRegions,
475 displacedRegionalStepPLHitDoubletsTripl,
476 displacedRegionalStepPLHitTripletsTripl,
477 displacedRegionalStepPLSeedsTripl,
478 displacedRegionalStepSeeds,
479 displacedRegionalStepTrackCandidates,
480 displacedRegionalStepTracks,
481 displacedRegionalStepClassifier1,displacedRegionalStepClassifier2,
482 displacedRegionalStep)
483 DisplacedRegionalStep = cms.Sequence(DisplacedRegionalStepTask)
485 _DisplacedRegionalStepTask_trackingMkFit = DisplacedRegionalStepTask.copy()
486 _DisplacedRegionalStepTask_trackingMkFit.add(displacedRegionalStepTrackCandidatesMkFitSeeds, displacedRegionalStepTrackCandidatesMkFit, displacedRegionalStepTrackCandidatesMkFitConfig)
487 trackingMkFitDisplacedRegionalStep.toReplaceWith(DisplacedRegionalStepTask, _DisplacedRegionalStepTask_trackingMkFit)