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
16 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesCUDA_cfi
import pixelVerticesCUDA
as _pixelVerticesCUDA
18 cpu = _pixelVerticesCUDA.clone(
19 pixelTrackSrc =
"pixelTracksSoA",
25 from RecoPixelVertexing.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
26 pixelNtupletFit.toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
27 src =
"pixelVerticesSoA"
30 pixelNtupletFit.toReplaceWith(pixelVerticesTask, cms.Task(
39 from Configuration.ProcessModifiers.gpu_cff
import gpu
42 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
43 pixelTrackSrc =
"pixelTracksCUDA",
48 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
49 gpu.toModify(pixelVerticesSoA,
50 cuda = _pixelVerticesSoA.clone(
51 src = cms.InputTag(
"pixelVerticesCUDA")
55 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
59 pixelVerticesTask.copy()
63 recopixelvertexingTask = cms.Task(
67 recopixelvertexing = cms.Sequence(recopixelvertexingTask)