Skip to content

Commit

Permalink
Move pixelTracksCPU module definition inside SwitchProducerCUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Apr 13, 2022
1 parent 532a37c commit d942c99
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,14 @@

from RecoPixelVertexing.PixelTriplets.pixelTracksCUDA_cfi import pixelTracksCUDA as _pixelTracksCUDA

#Pixel tracks in SoA format on the CPU
pixelTracksCPU = _pixelTracksCUDA.clone(
pixelRecHitSrc = "siPixelRecHitsPreSplitting",
idealConditions = False,
onGPU = False
)

# SwitchProducer providing the pixel tracks in SoA format on the CPU
pixelTracksSoA = SwitchProducerCUDA(
# build pixel ntuplets and pixel tracks in SoA format on the CPU
cpu = pixelTracksCPU
cpu = _pixelTracksCUDA.clone(
pixelRecHitSrc = "siPixelRecHitsPreSplitting",
idealConditions = False,
onGPU = False
)
)
# use quality cuts tuned for Run 2 ideal conditions for all Run 3 workflows
run3_common.toModify(pixelTracksSoA.cpu,
Expand Down Expand Up @@ -132,7 +129,7 @@

# "Patatrack" sequence running on GPU (or CPU if not available)
from Configuration.ProcessModifiers.gpu_cff import gpu
(pixelNtupletFit & gpu).toModify(pixelTracksCPU,
(pixelNtupletFit & gpu).toModify(pixelTracksSoA.cpu,
pixelRecHitSrc = "siPixelRecHitsPreSplittingSoA",
)

Expand Down

0 comments on commit d942c99

Please sign in to comment.