1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
6 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitPhase2_cfi
import ecalUncalibRecHitPhase2
as _ecalUncalibRecHitPhase2
8 cpu = _ecalUncalibRecHitPhase2.clone()
12 ecalUncalibRecHitPhase2Task = cms.Task(ecalUncalibRecHitPhase2)
17 from RecoLocalCalo.EcalRecProducers.ecalPhase2DigiToGPUProducer_cfi
import ecalPhase2DigiToGPUProducer
as _ecalPhase2DigiToGPUProducer
18 ecalPhase2DigiToGPUProducer = _ecalPhase2DigiToGPUProducer.clone()
21 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitPhase2GPU_cfi
import ecalUncalibRecHitPhase2GPU
as _ecalUncalibRecHitPhase2GPU
22 ecalUncalibRecHitPhase2GPU = _ecalUncalibRecHitPhase2GPU.clone(
23 digisLabelEB = (
'ecalPhase2DigiToGPUProducer',
'ebDigis')
27 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
28 ecalUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
29 recHitsInLabelEB = (
'ecalUncalibRecHitPhase2GPU',
'EcalUncalibRecHitsEB'),
31 recHitsInLabelEE =
None,
32 recHitsOutLabelEE =
None 36 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
37 gpu.toModify(ecalUncalibRecHitPhase2,
38 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
40 recHitsLabelGPUEB = (
'ecalUncalibRecHitSoA',
'EcalUncalibRecHitsEB'),
41 recHitsLabelGPUEE =
None,
42 recHitsLabelCPUEE =
None 46 gpu.toReplaceWith(ecalUncalibRecHitPhase2Task, cms.Task(
48 ecalPhase2DigiToGPUProducer,
50 ecalUncalibRecHitPhase2GPU,
54 ecalUncalibRecHitPhase2,