From af7913f572141fbd8fab1cdea5b895f291d64a27 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Thu, 2 Jun 2022 17:27:47 +0200 Subject: [PATCH] Remove the obsolete ECAL and HCAL rechit parameters from the HLT menu --- .../python/customizeHLTforCMSSW.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 53b007a50b775..4037114381ccd 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -211,6 +211,28 @@ def customiseForOffline(process): return process +# Reduce the ECAL and HCAL GPU memory usage (#39579) +# Remove the obsolete configuration parameters +def customizeHLTfor39579(process): + for producer in producers_by_type(process, "EcalUncalibRecHitProducerGPU"): + if hasattr(producer, "maxNumberHitsEB"): + delattr(producer, "maxNumberHitsEB") + if hasattr(producer, "maxNumberHitsEE"): + delattr(producer, "maxNumberHitsEE") + + for producer in producers_by_type(process, "EcalRecHitProducerGPU"): + if hasattr(producer, "maxNumberHitsEB"): + delattr(producer, "maxNumberHitsEB") + if hasattr(producer, "maxNumberHitsEE"): + delattr(producer, "maxNumberHitsEE") + + for producer in producers_by_type(process, "HBHERecHitProducerGPU"): + if hasattr(producer, "maxChannels"): + delattr(producer, "maxChannels") + + return process + + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"): @@ -218,5 +240,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"): # add call to action function in proper order: newest last! # process = customiseFor12718(process) + process = customizeHLTfor39579(process) return process