CMS 3D CMS Logo

hcalGlobalReco_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
3 
4 #--- for Run 1 and Run 2
5 from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import hbhereco as _phase0_hbhereco
6 hbhereco = SwitchProducerCUDA(
7  cpu = _phase0_hbhereco.clone()
8 )
9 hcalGlobalRecoTask = cms.Task(hbhereco)
10 hcalGlobalRecoSequence = cms.Sequence(hcalGlobalRecoTask)
11 
12 hcalOnlyGlobalRecoTask = cms.Task()
13 hcalOnlyGlobalRecoSequence = cms.Sequence(hcalOnlyGlobalRecoTask)
14 
15 #--- for Run 3 and later
16 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
17 
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))
21 
22 #--- for Run 3 on GPU
24 
25 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi import hcalCPURecHitsProducer as _hbherecoFromCUDA
26 (run3_HB & gpu).toModify(hbhereco,
27  cuda = _hbherecoFromCUDA.clone(
28  produceSoA = False
29  )
30 )