1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
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 =
'ecalDigisGPU:ebDigis',
30 digisLabelEE =
'ecalDigisGPU:eeDigis',
34 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
35 ecalMultiFitUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
36 recHitsInLabelEB =
'ecalMultiFitUncalibRecHitGPU:EcalUncalibRecHitsEB',
37 recHitsInLabelEE =
'ecalMultiFitUncalibRecHitGPU:EcalUncalibRecHitsEE',
38 containsTimingInformation =
True 42 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
43 gpu.toModify(ecalMultiFitUncalibRecHit,
44 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
45 recHitsLabelGPUEB =
'ecalMultiFitUncalibRecHitSoA:EcalUncalibRecHitsEB',
46 recHitsLabelGPUEE =
'ecalMultiFitUncalibRecHitSoA:EcalUncalibRecHitsEE',
50 gpu.toReplaceWith(ecalMultiFitUncalibRecHitTask, cms.Task(
52 ecalPedestalsGPUESProducer,
53 ecalGainRatiosGPUESProducer,
54 ecalPulseShapesGPUESProducer,
55 ecalPulseCovariancesGPUESProducer,
56 ecalSamplesCorrelationGPUESProducer,
57 ecalTimeBiasCorrectionsGPUESProducer,
58 ecalTimeCalibConstantsGPUESProducer,
59 ecalMultifitParametersGPUESProducer,
61 ecalMultiFitUncalibRecHitGPU,
63 ecalMultiFitUncalibRecHitSoA,
65 ecalMultiFitUncalibRecHit,