Skip to content

Commit

Permalink
Use pfClusteringParamsGPUESSource in particleFlowCluster_cff
Browse files Browse the repository at this point in the history
  • Loading branch information
missirol committed Feb 22, 2023
1 parent f01a47b commit 2e6b019
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,20 @@
inputECAL = 'particleFlowTimeAssignerECAL')

#--- for Run 3 on GPU
from Configuration.ProcessModifiers.gpu_cff import gpu

from RecoParticleFlow.PFClusterProducer.pfhbheRecHitParamsGPUESProducer_cfi import pfhbheRecHitParamsGPUESProducer
from RecoParticleFlow.PFClusterProducer.pfhbheTopologyGPUESProducer_cfi import pfhbheTopologyGPUESProducer
from Configuration.ProcessModifiers.gpu_cff import gpu
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
from RecoParticleFlow.PFClusterProducer.pfClusteringParamsGPUESSource_cfi import pfClusteringParamsGPUESSource

_gpu_pfClusteringHBHEHFTask = pfClusteringHBHEHFTask.copy()
_gpu_pfClusteringHBHEHFOnlyTask = pfClusteringHBHEHFOnlyTask.copy()
_gpu_pfClusteringHBHEHFTask.add(cms.Task(pfhbheRecHitParamsGPUESProducer,pfhbheTopologyGPUESProducer))
_gpu_pfClusteringHBHEHFOnlyTask.add(cms.Task(pfhbheRecHitParamsGPUESProducer,pfhbheTopologyGPUESProducer))

gpu.toReplaceWith(pfClusteringHBHEHFTask,
_gpu_pfClusteringHBHEHFTask)
gpu.toReplaceWith(pfClusteringHBHEHFOnlyTask,
_gpu_pfClusteringHBHEHFOnlyTask)
_gpu_pfClusteringHBHEHFTask.add(pfhbheRecHitParamsGPUESProducer)
_gpu_pfClusteringHBHEHFTask.add(pfhbheTopologyGPUESProducer)
_gpu_pfClusteringHBHEHFTask.add(pfClusteringParamsGPUESSource)
gpu.toReplaceWith(pfClusteringHBHEHFTask, _gpu_pfClusteringHBHEHFTask)

_gpu_pfClusteringHBHEHFOnlyTask = pfClusteringHBHEHFOnlyTask.copy()
_gpu_pfClusteringHBHEHFOnlyTask.add(pfhbheRecHitParamsGPUESProducer)
_gpu_pfClusteringHBHEHFOnlyTask.add(pfhbheTopologyGPUESProducer)
_gpu_pfClusteringHBHEHFOnlyTask.add(pfClusteringParamsGPUESSource)
gpu.toReplaceWith(pfClusteringHBHEHFOnlyTask, _gpu_pfClusteringHBHEHFOnlyTask)

0 comments on commit 2e6b019

Please sign in to comment.