1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
6 from RecoLocalCalo.EcalRecProducers.ecalMultiFitUncalibRecHit_cfi
import ecalMultiFitUncalibRecHit
as _ecalMultiFitUncalibRecHit
7 ecalMultiFitUncalibRecHitCPU = _ecalMultiFitUncalibRecHit.clone()
9 cpu = ecalMultiFitUncalibRecHitCPU
12 ecalMultiFitUncalibRecHitTask = cms.Task(
14 ecalMultiFitUncalibRecHit
20 from RecoLocalCalo.EcalRecProducers.ecalPedestalsGPUESProducer_cfi
import ecalPedestalsGPUESProducer
21 from RecoLocalCalo.EcalRecProducers.ecalGainRatiosGPUESProducer_cfi
import ecalGainRatiosGPUESProducer
22 from RecoLocalCalo.EcalRecProducers.ecalPulseShapesGPUESProducer_cfi
import ecalPulseShapesGPUESProducer
23 from RecoLocalCalo.EcalRecProducers.ecalPulseCovariancesGPUESProducer_cfi
import ecalPulseCovariancesGPUESProducer
24 from RecoLocalCalo.EcalRecProducers.ecalSamplesCorrelationGPUESProducer_cfi
import ecalSamplesCorrelationGPUESProducer
25 from RecoLocalCalo.EcalRecProducers.ecalTimeBiasCorrectionsGPUESProducer_cfi
import ecalTimeBiasCorrectionsGPUESProducer
26 from RecoLocalCalo.EcalRecProducers.ecalTimeCalibConstantsGPUESProducer_cfi
import ecalTimeCalibConstantsGPUESProducer
27 from RecoLocalCalo.EcalRecProducers.ecalMultifitParametersGPUESProducer_cfi
import ecalMultifitParametersGPUESProducer
30 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerGPU_cfi
import ecalUncalibRecHitProducerGPU
as _ecalUncalibRecHitProducerGPU
31 ecalMultiFitUncalibRecHitGPU = _ecalUncalibRecHitProducerGPU.clone(
32 digisLabelEB =
'ecalDigisGPU:ebDigis',
33 digisLabelEE =
'ecalDigisGPU:eeDigis',
37 from RecoLocalCalo.EcalRecProducers.ecalCPUUncalibRecHitProducer_cfi
import ecalCPUUncalibRecHitProducer
as _ecalCPUUncalibRecHitProducer
38 ecalMultiFitUncalibRecHitSoA = _ecalCPUUncalibRecHitProducer.clone(
39 recHitsInLabelEB =
'ecalMultiFitUncalibRecHitGPU:EcalUncalibRecHitsEB',
40 recHitsInLabelEE =
'ecalMultiFitUncalibRecHitGPU:EcalUncalibRecHitsEE',
41 containsTimingInformation =
True 45 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitConvertGPU2CPUFormat_cfi
import ecalUncalibRecHitConvertGPU2CPUFormat
as _ecalUncalibRecHitConvertGPU2CPUFormat
46 gpu.toModify(ecalMultiFitUncalibRecHit,
47 cuda = _ecalUncalibRecHitConvertGPU2CPUFormat.clone(
48 recHitsLabelGPUEB =
'ecalMultiFitUncalibRecHitSoA:EcalUncalibRecHitsEB',
49 recHitsLabelGPUEE =
'ecalMultiFitUncalibRecHitSoA:EcalUncalibRecHitsEE',
53 gpu.toReplaceWith(ecalMultiFitUncalibRecHitTask, cms.Task(
55 ecalPedestalsGPUESProducer,
56 ecalGainRatiosGPUESProducer,
57 ecalPulseShapesGPUESProducer,
58 ecalPulseCovariancesGPUESProducer,
59 ecalSamplesCorrelationGPUESProducer,
60 ecalTimeBiasCorrectionsGPUESProducer,
61 ecalTimeCalibConstantsGPUESProducer,
62 ecalMultifitParametersGPUESProducer,
64 ecalMultiFitUncalibRecHitGPU,
66 ecalMultiFitUncalibRecHitSoA,
68 ecalMultiFitUncalibRecHit,
75 from RecoLocalCalo.EcalRecProducers.ecalMultifitConditionsHostESProducer_cfi
import ecalMultifitConditionsHostESProducer
76 from RecoLocalCalo.EcalRecProducers.ecalMultifitParametersHostESProducer_cfi
import ecalMultifitParametersHostESProducer
78 ecalMultifitParametersSource = cms.ESSource(
"EmptyESSource",
79 recordName = cms.string(
'EcalMultifitParametersRcd'),
80 iovIsRunNotTime = cms.bool(
True),
81 firstValid = cms.vuint32(1)
85 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitProducerPortable_cfi
import ecalUncalibRecHitProducerPortable
as _ecalUncalibRecHitProducerPortable
86 ecalMultiFitUncalibRecHitPortable = _ecalUncalibRecHitProducerPortable.clone(
87 digisLabelEB =
'ecalDigisPortable:ebDigis',
88 digisLabelEE =
'ecalDigisPortable:eeDigis' 92 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitSoAToLegacy_cfi
import ecalUncalibRecHitSoAToLegacy
as _ecalUncalibRecHitSoAToLegacy
93 alpaka.toModify(ecalMultiFitUncalibRecHit,
94 cpu = _ecalUncalibRecHitSoAToLegacy.clone()
97 alpaka.toReplaceWith(ecalMultiFitUncalibRecHitTask, cms.Task(
99 ecalMultifitConditionsHostESProducer,
100 ecalMultifitParametersHostESProducer,
102 ecalMultiFitUncalibRecHitPortable,
104 ecalMultiFitUncalibRecHit,