Skip to content

Commit

Permalink
Remove the obsolete ECAL and HCAL rechit parameters from the HLT menu
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Oct 3, 2022
1 parent eaa3636 commit af7913f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions HLTrigger/Configuration/python/customizeHLTforCMSSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,35 @@ 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"):

process = customiseForOffline(process)

# add call to action function in proper order: newest last!
# process = customiseFor12718(process)
process = customizeHLTfor39579(process)

return process

0 comments on commit af7913f

Please sign in to comment.