1 import FWCore.ParameterSet.Config
as cms
3 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
9 pixelVerticesTask = cms.Task(
14 from Configuration.ProcessModifiers.pixelNtupletFit_cff
import pixelNtupletFit
15 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
18 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
21 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAPhase1_cfi
import pixelVertexProducerCUDAPhase1
as _pixelVerticesCUDA
22 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAPhase2_cfi
import pixelVertexProducerCUDAPhase2
as _pixelVerticesCUDAPhase2
23 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAHIonPhase1_cfi
import pixelVertexProducerCUDAHIonPhase1
as _pixelVerticesCUDAHIonPhase1
26 cpu = _pixelVerticesCUDA.clone(
27 pixelTrackSrc =
"pixelTracksSoA",
32 phase2_tracker.toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAPhase2.clone(
33 pixelTrackSrc =
"pixelTracksSoA",
38 (pp_on_AA & ~phase2_tracker).toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAHIonPhase1.clone(
39 pixelTrackSrc =
"pixelTracksSoA",
45 from RecoTracker.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
47 (pixelNtupletFit).toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
48 src =
"pixelVerticesSoA" 51 (pixelNtupletFit).toReplaceWith(pixelVerticesTask, cms.Task(
63 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
64 pixelTrackSrc =
"pixelTracksCUDA",
68 phase2_tracker.toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAPhase2.clone(
69 pixelTrackSrc =
"pixelTracksCUDA",
74 (pp_on_AA & ~phase2_tracker).toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAHIonPhase1.clone(
75 pixelTrackSrc =
"pixelTracksCUDA",
81 from RecoTracker.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
82 gpu.toModify(pixelVerticesSoA,
83 cuda = _pixelVerticesSoA.clone(
84 src = cms.InputTag(
"pixelVerticesCUDA")
91 (pixelNtupletFit & gpu & gpuValidationPixel).toModify(pixelVerticesSoA.cpu,
92 pixelTrackSrc =
"pixelTracksSoA@cpu" 95 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
99 pixelVerticesTask.copy()
105 from RecoTracker.PixelVertexFinding.pixelVertexProducerAlpakaPhase1_cfi
import pixelVertexProducerAlpakaPhase1
as _pixelVerticesAlpakaPhase1
106 from RecoTracker.PixelVertexFinding.pixelVertexProducerAlpakaPhase2_cfi
import pixelVertexProducerAlpakaPhase2
as _pixelVerticesAlpakaPhase2
107 pixelVerticesAlpaka = _pixelVerticesAlpakaPhase1.clone()
108 phase2_tracker.toReplaceWith(pixelVerticesAlpaka,_pixelVerticesAlpakaPhase2.clone())
110 from RecoTracker.PixelVertexFinding.pixelVertexFromSoAAlpaka_cfi
import pixelVertexFromSoAAlpaka
as _pixelVertexFromSoAAlpaka
111 alpaka.toReplaceWith(pixelVertices, _pixelVertexFromSoAAlpaka.clone())
115 pixelTrackSrc =
'pixelTracksAlpakaSerial' 118 alpaka.toReplaceWith(pixelVerticesTask, cms.Task(
122 pixelVerticesAlpakaSerial,
128 recopixelvertexingTask = cms.Task(
132 recopixelvertexing = cms.Sequence(recopixelvertexingTask)
def makeSerialClone(module, kwargs)