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)
12 from Configuration.Eras.Modifier_phase2_brickedPixels_cff
import phase2_brickedPixels
13 phase2_brickedPixels.toModify(siPixelRecHits,
14 CPE =
'PixelCPEGenericForBricked'
19 cpu = siPixelRecHits.clone(
20 src =
'siPixelClustersPreSplitting'
25 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitSoAFromLegacy_cfi
import siPixelRecHitSoAFromLegacy
as siPixelRecHitsPreSplittingSoA
27 siPixelRecHitsPreSplittingTask = cms.Task(
29 siPixelRecHitsPreSplitting,
31 siPixelRecHitsPreSplittingSoA
35 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitCUDA_cfi
import siPixelRecHitCUDA
as _siPixelRecHitCUDA
36 siPixelRecHitsPreSplittingCUDA = _siPixelRecHitCUDA.clone(
37 beamSpot =
"offlineBeamSpotToCUDA"
41 from RecoLocalTracker.SiPixelRecHits.siPixelRecHitFromCUDA_cfi
import siPixelRecHitFromCUDA
as _siPixelRecHitFromCUDA
42 gpu.toModify(siPixelRecHitsPreSplitting,
43 cuda = _siPixelRecHitFromCUDA.clone()
46 gpu.toReplaceWith(siPixelRecHitsPreSplittingTask, cms.Task(
48 siPixelRecHitsPreSplittingCUDA,
50 siPixelRecHitsPreSplittingTask.copy()