1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
3 from Configuration.ProcessModifiers.gpu_cff
import gpu
6 from RecoLocalCalo.EcalRecProducers.ecalMultiFitUncalibRecHit_cfi
import ecalMultiFitUncalibRecHit
as _ecalMultiFitUncalibRecHit
8 cpu = _ecalMultiFitUncalibRecHit.clone()
11 ecalMultiFitUncalibRecHitTask = cms.Task(
13 ecalMultiFitUncalibRecHit
17 from RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi
import ecalPedestalsGPUESProducer
18 from RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi
import ecalGainRatiosGPUESProducer
19 from RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi
import ecalPulseShapesGPUESProducer
20 from RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi
import ecalPulseCovariancesGPUESProducer
21 from RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi
import ecalSamplesCorrelationGPUESProducer
22 from RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi
import ecalTimeBiasCorrectionsGPUESProducer
23 from RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi
import ecalTimeCalibConstantsGPUESProducer
24 from RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi
import ecalMultifitParametersGPUESProducer
27 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
28 ecalMultiFitUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
29 digisLabelEB = cms.InputTag(
'ecalDigisGPU',
'ebDigis'),
30 digisLabelEE = cms.InputTag(
'ecalDigisGPU',
'eeDigis'),
34 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
35 ecalMultiFitUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
36 recHitsInLabelEB = cms.InputTag(
'ecalMultiFitUncalibRecHitGPU',
'EcalUncalibRecHitsEB'),
37 recHitsInLabelEE = cms.InputTag(
'ecalMultiFitUncalibRecHitGPU',
'EcalUncalibRecHitsEE'),
41 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
42 gpu.toModify(ecalMultiFitUncalibRecHit,
43 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
44 recHitsLabelGPUEB = cms.InputTag(
'ecalMultiFitUncalibRecHitSoA',
'EcalUncalibRecHitsEB'),
45 recHitsLabelGPUEE = cms.InputTag(
'ecalMultiFitUncalibRecHitSoA',
'EcalUncalibRecHitsEE'),
49 gpu.toReplaceWith(ecalMultiFitUncalibRecHitTask, cms.Task(
51 ecalPedestalsGPUESProducer,
52 ecalGainRatiosGPUESProducer,
53 ecalPulseShapesGPUESProducer,
54 ecalPulseCovariancesGPUESProducer,
55 ecalSamplesCorrelationGPUESProducer,
56 ecalTimeBiasCorrectionsGPUESProducer,
57 ecalTimeCalibConstantsGPUESProducer,
58 ecalMultifitParametersGPUESProducer,
60 ecalMultiFitUncalibRecHitGPU,
62 ecalMultiFitUncalibRecHitSoA,
64 ecalMultiFitUncalibRecHit,