1 import FWCore.ParameterSet.Config
as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA
import SwitchProducerCUDA
5 from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi
import hbhereco
as _phase0_hbhereco
7 cpu = _phase0_hbhereco.clone()
9 hcalGlobalRecoTask = cms.Task(hbhereco)
10 hcalGlobalRecoSequence = cms.Sequence(hcalGlobalRecoTask)
12 hcalOnlyGlobalRecoTask = cms.Task()
13 hcalOnlyGlobalRecoSequence = cms.Sequence(hcalOnlyGlobalRecoTask)
16 from Configuration.Eras.Modifier_run3_HB_cff
import run3_HB
18 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
import hbheprereco
as _phase1_hbheprereco
19 run3_HB.toReplaceWith(hbhereco.cpu, _phase1_hbheprereco)
20 run3_HB.toReplaceWith(hcalOnlyGlobalRecoTask, cms.Task(hbhereco))
25 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi
import hcalCPURecHitsProducer
as _hbherecoFromCUDA
26 (run3_HB & gpu).toModify(hbhereco,
27 cuda = _hbherecoFromCUDA.clone(