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.pixelVertexProducerCUDAPhase1_cfi
import pixelVertexProducerCUDAPhase1
as _pixelVerticesCUDA
18 from RecoPixelVertexing.PixelVertexFinding.pixelVertexProducerCUDAPhase2_cfi
import pixelVertexProducerCUDAPhase2
as _pixelVerticesCUDAPhase2
21 cpu = _pixelVerticesCUDA.clone(
22 pixelTrackSrc =
"pixelTracksSoA",
27 phase2_tracker.toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAPhase2.clone(
28 pixelTrackSrc =
"pixelTracksSoA",
34 from RecoPixelVertexing.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
36 (pixelNtupletFit).toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
37 src =
"pixelVerticesSoA" 40 (pixelNtupletFit).toReplaceWith(pixelVerticesTask, cms.Task(
52 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
53 pixelTrackSrc =
"pixelTracksCUDA",
57 phase2_tracker.toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAPhase2.clone(
58 pixelTrackSrc =
"pixelTracksCUDA",
64 from RecoPixelVertexing.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
65 gpu.toModify(pixelVerticesSoA,
66 cuda = _pixelVerticesSoA.clone(
67 src = cms.InputTag(
"pixelVerticesCUDA")
74 (pixelNtupletFit & gpu & gpuValidationPixel).toModify(pixelVerticesSoA.cpu,
75 pixelTrackSrc =
"pixelTracksSoA@cpu" 78 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
82 pixelVerticesTask.copy()
86 recopixelvertexingTask = cms.Task(
90 recopixelvertexing = cms.Sequence(recopixelvertexingTask)