Skip to content

Commit

Permalink
Changed customizeHLTforCMSSW to fix PR 44591
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Govinda Stahl Leiton committed Apr 3, 2024
1 parent 7d4b9a6 commit 169cad2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions HLTrigger/Configuration/python/customizeHLTforCMSSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ def customizeHLTfor44510(process):
delattr(producer, 'AXOL1TLModelVersion')
return process

def customizeHLTfor44591(process):
"""
Customisation for running HLT with the updated btag info producers from the PR 44591
"""
for type in ["DeepFlavourTagInfoProducer", "ParticleTransformerAK4TagInfoProducer", "DeepBoostedJetTagInfoProducer"]:
for producer in producers_by_type(process, type):
if hasattr(producer, 'unsubjet_map'):
delattr(producer, 'unsubjet_map')
return process

# CMSSW version specific customizations
def customizeHLTforCMSSW(process, menuType="GRun"):
Expand All @@ -273,4 +282,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"):
# customizes AXOL1TL condition in the L1 menu
process = customizeHLTfor44510(process)

process = customizeHLTfor44591(process)

return process

0 comments on commit 169cad2

Please sign in to comment.