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 Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
20 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAPhase1_cfi
import pixelVertexProducerCUDAPhase1
as _pixelVerticesCUDA
21 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAPhase2_cfi
import pixelVertexProducerCUDAPhase2
as _pixelVerticesCUDAPhase2
22 from RecoTracker.PixelVertexFinding.pixelVertexProducerCUDAHIonPhase1_cfi
import pixelVertexProducerCUDAHIonPhase1
as _pixelVerticesCUDAHIonPhase1
25 cpu = _pixelVerticesCUDA.clone(
26 pixelTrackSrc =
"pixelTracksSoA",
31 phase2_tracker.toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAPhase2.clone(
32 pixelTrackSrc =
"pixelTracksSoA",
37 (pp_on_AA & ~phase2_tracker).toModify(pixelVerticesSoA,cpu = _pixelVerticesCUDAHIonPhase1.clone(
38 pixelTrackSrc =
"pixelTracksSoA",
44 from RecoTracker.PixelVertexFinding.pixelVertexFromSoA_cfi
import pixelVertexFromSoA
as _pixelVertexFromSoA
46 (pixelNtupletFit).toReplaceWith(pixelVertices, _pixelVertexFromSoA.clone(
47 src =
"pixelVerticesSoA" 50 (pixelNtupletFit).toReplaceWith(pixelVerticesTask, cms.Task(
62 pixelVerticesCUDA = _pixelVerticesCUDA.clone(
63 pixelTrackSrc =
"pixelTracksCUDA",
67 phase2_tracker.toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAPhase2.clone(
68 pixelTrackSrc =
"pixelTracksCUDA",
73 (pp_on_AA & ~phase2_tracker).toReplaceWith(pixelVerticesCUDA,_pixelVerticesCUDAHIonPhase1.clone(
74 pixelTrackSrc =
"pixelTracksCUDA",
80 from RecoTracker.PixelVertexFinding.pixelVerticesSoA_cfi
import pixelVerticesSoA
as _pixelVerticesSoA
81 gpu.toModify(pixelVerticesSoA,
82 cuda = _pixelVerticesSoA.clone(
83 src = cms.InputTag(
"pixelVerticesCUDA")
90 (pixelNtupletFit & gpu & gpuValidationPixel).toModify(pixelVerticesSoA.cpu,
91 pixelTrackSrc =
"pixelTracksSoA@cpu" 94 (pixelNtupletFit & gpu).toReplaceWith(pixelVerticesTask, cms.Task(
98 pixelVerticesTask.copy()
102 recopixelvertexingTask = cms.Task(
106 recopixelvertexing = cms.Sequence(recopixelvertexingTask)