1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
3 from Configuration.ProcessModifiers.gpu_cff
import gpu
6 siPixelRecHits = cms.EDProducer(
"SiPixelRecHitConverter",
7 src = cms.InputTag(
"siPixelClusters"),
8 CPE = cms.string(
'PixelCPEGeneric'),
9 VerboseLevel = cms.untracked.int32(0)
14 cpu = siPixelRecHits.clone(
15 src =
'siPixelClustersPreSplitting'
20 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitSoAFromLegacy_cfi
import siPixelRecHitSoAFromLegacy
as siPixelRecHitsPreSplittingSoA
22 siPixelRecHitsPreSplittingTask = cms.Task(
24 siPixelRecHitsPreSplitting,
26 siPixelRecHitsPreSplittingSoA
30 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitCUDA_cfi
import siPixelRecHitCUDA
as _siPixelRecHitCUDA
31 siPixelRecHitsPreSplittingCUDA = _siPixelRecHitCUDA.clone(
32 beamSpot =
"offlineBeamSpotToCUDA"
36 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitFromCUDA_cfi
import siPixelRecHitFromCUDA
as _siPixelRecHitFromCUDA
37 gpu.toModify(siPixelRecHitsPreSplitting,
38 cuda = _siPixelRecHitFromCUDA.clone()
41 gpu.toReplaceWith(siPixelRecHitsPreSplittingTask, cms.Task(
43 siPixelRecHitsPreSplittingCUDA,
45 siPixelRecHitsPreSplittingTask.copy()