From d942c990f6d51bfc16e607f469e965d5fcac0491 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Thu, 14 Apr 2022 00:38:13 +0200 Subject: [PATCH] Move pixelTracksCPU module definition inside SwitchProducerCUDA --- .../PixelTrackFitting/python/PixelTracks_cff.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py b/RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py index 45a6672eb5d01..449d9cdfd084d 100644 --- a/RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py +++ b/RecoPixelVertexing/PixelTrackFitting/python/PixelTracks_cff.py @@ -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, @@ -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", )