1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
8 pixelVerticesTask = cms.Task(
13 from Configuration.ProcessModifiers.pixelNtupletFit_cff
import pixelNtupletFit
14 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
17 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesCUDA_cfi
import pixelVerticesCUDA
as _pixelVerticesCUDA
19 cpu = _pixelVerticesCUDA.clone(
20 pixelTrackSrc =
"pixelTracksSoA",
26 from RecoPixelVertexing.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
27 (pixelNtupletFit & ~phase2_tracker).toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
28 src =
"pixelVerticesSoA" 31 (pixelNtupletFit & ~phase2_tracker).toReplaceWith(pixelVerticesTask, cms.Task(
43 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
44 pixelTrackSrc =
"pixelTracksCUDA",
49 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
50 gpu.toModify(pixelVerticesSoA,
51 cuda = _pixelVerticesSoA.clone(
52 src = cms.InputTag(
"pixelVerticesCUDA")
59 (pixelNtupletFit & gpu & gpuValidationPixel).toModify(pixelVerticesSoA.cpu,
60 pixelTrackSrc =
"pixelTracksSoA@cpu" 63 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
67 pixelVerticesTask.copy()
71 recopixelvertexingTask = cms.Task(
75 recopixelvertexing = cms.Sequence(recopixelvertexingTask)