Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 02:41:28

0001 import FWCore.ParameterSet.Config as cms
0002 from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
0003 
0004 #--- for Run 1 and Run 2
0005 from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import hbhereco as _phase0_hbhereco
0006 hbhereco = SwitchProducerCUDA(
0007     cpu = _phase0_hbhereco.clone()
0008 )
0009 hcalGlobalRecoTask = cms.Task(hbhereco)
0010 hcalGlobalRecoSequence = cms.Sequence(hcalGlobalRecoTask)
0011 
0012 hcalOnlyGlobalRecoTask = cms.Task()
0013 hcalOnlyGlobalRecoSequence = cms.Sequence(hcalOnlyGlobalRecoTask)
0014 
0015 #--- for Run 3 and later
0016 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0017 
0018 from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco
0019 run3_HB.toReplaceWith(hbhereco.cpu, _phase1_hbheprereco)
0020 run3_HB.toReplaceWith(hcalOnlyGlobalRecoTask, cms.Task(hbhereco))
0021 
0022 #--- for Run 3 on GPU
0023 from Configuration.ProcessModifiers.gpu_cff import gpu
0024 
0025 from RecoLocalCalo.HcalRecProducers.hcalCPURecHitsProducer_cfi import hcalCPURecHitsProducer as _hbherecoFromCUDA
0026 (run3_HB & gpu).toModify(hbhereco,
0027     cuda = _hbherecoFromCUDA.clone(
0028         produceSoA = False
0029     )
0030 )