1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
8 myTTRHBuilderWithoutAngle = RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi.ttrhbwr.clone(
10 ComponentName =
'PixelTTRHBuilderWithoutAngle'
15 from RecoPixelVertexing.PixelTrackFitting.pixelNtupletsFitter_cfi
import pixelNtupletsFitter
16 from RecoPixelVertexing.PixelTrackFitting.pixelTrackFilterByKinematics_cfi
import pixelTrackFilterByKinematics
18 from RecoPixelVertexing.PixelTrackFitting.pixelTracks_cfi
import pixelTracks
as _pixelTracks
19 from RecoTracker.TkTrackingRegions.globalTrackingRegion_cfi
import globalTrackingRegion
as _globalTrackingRegion
20 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi
import globalTrackingRegionFromBeamSpot
as _globalTrackingRegionFromBeamSpot
21 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi
import hitPairEDProducer
as _hitPairEDProducer
22 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi
import pixelTripletHLTEDProducer
as _pixelTripletHLTEDProducer
24 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
25 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi
import trackAlgoPriorityOrder
28 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
29 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
35 pixelTracksTrackingRegions = _globalTrackingRegion.clone()
36 trackingLowPU.toReplaceWith(pixelTracksTrackingRegions, _globalTrackingRegionFromBeamSpot.clone())
40 pixelTracksSeedLayers = initialStepSeedLayers.clone(
41 BPix = dict(HitProducer =
"siPixelRecHitsPreSplitting"),
42 FPix = dict(HitProducer =
"siPixelRecHitsPreSplitting")
45 pixelTracksHitDoublets = initialStepHitDoublets.clone(
47 seedingLayers =
"pixelTracksSeedLayers",
48 trackingRegions =
"pixelTracksTrackingRegions"
51 pixelTracksHitQuadruplets = _initialStepCAHitQuadruplets.clone(
52 doublets =
"pixelTracksHitDoublets",
53 SeedComparitorPSet = dict(clusterShapeCacheSrc =
'siPixelClusterShapeCachePreSplitting')
56 pixelTracks = _pixelTracks.clone(
57 SeedingHitSets =
"pixelTracksHitQuadruplets"
60 pixelTracksTask = cms.Task(
61 pixelTracksTrackingRegions,
62 pixelFitterByHelixProjections,
63 pixelTrackFilterByKinematics,
64 pixelTracksSeedLayers,
65 pixelTracksHitDoublets,
66 pixelTracksHitQuadruplets,
70 pixelTracksSequence = cms.Sequence(pixelTracksTask)
74 pixelTracksHitTriplets = _pixelTripletHLTEDProducer.clone(
75 doublets =
"pixelTracksHitDoublets",
76 produceSeedingHitSets =
True,
77 SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(
78 clusterShapeCacheSrc =
"siPixelClusterShapeCachePreSplitting"
82 trackingLowPU.toModify(pixelTracks,
83 SeedingHitSets =
"pixelTracksHitTriplets"
86 _pixelTracksTask_lowPU = pixelTracksTask.copy()
87 _pixelTracksTask_lowPU.replace(pixelTracksHitQuadruplets, pixelTracksHitTriplets)
88 trackingLowPU.toReplaceWith(pixelTracksTask, _pixelTracksTask_lowPU)
92 from Configuration.ProcessModifiers.pixelNtupletFit_cff
import pixelNtupletFit
94 from RecoPixelVertexing.PixelTriplets.pixelTracksCUDA_cfi
import pixelTracksCUDA
as _pixelTracksCUDA
99 cpu = _pixelTracksCUDA.clone(
100 pixelRecHitSrc =
"siPixelRecHitsPreSplittingSoA",
101 idealConditions =
False,
106 run3_common.toModify(pixelTracksSoA.cpu,
107 idealConditions =
True
111 from RecoPixelVertexing.PixelTrackFitting.pixelTrackProducerFromSoA_cfi
import pixelTrackProducerFromSoA
as _pixelTrackProducerFromSoA
112 pixelNtupletFit.toReplaceWith(pixelTracks, _pixelTrackProducerFromSoA.clone(
113 pixelRecHitLegacySrc =
"siPixelRecHitsPreSplitting",
116 pixelNtupletFit.toReplaceWith(pixelTracksTask, cms.Task(
131 from Configuration.ProcessModifiers.gpu_cff
import gpu
134 pixelTracksCUDA = _pixelTracksCUDA.clone(
135 pixelRecHitSrc =
"siPixelRecHitsPreSplittingCUDA",
136 idealConditions =
False,
140 run3_common.toModify(pixelTracksCUDA,
141 idealConditions =
True
145 from RecoPixelVertexing.PixelTrackFitting.pixelTracksSoA_cfi
import pixelTracksSoA
as _pixelTracksSoA
146 gpu.toModify(pixelTracksSoA,
148 cuda = _pixelTracksSoA.clone()
151 (pixelNtupletFit & gpu).toReplaceWith(pixelTracksTask, cms.Task(
155 pixelTracksTask.copy()