Skip to content

Commit

Permalink
Changed customizeHLTforCMSSW to fix PR 44597
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Govinda Stahl Leiton committed Apr 3, 2024
1 parent 544eb54 commit 1391d2f
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 customizeHLTfor44511(process):
delattr(producer, 'AXOL1TLModelVersion')
return process

def customizeHLTfor44597(process):
"""
Customisation for running HLT with the updated btag info producers from the PR 44597
"""
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 = customizeHLTfor44511(process)

process = customizeHLTfor44597(process)

return process

0 comments on commit 1391d2f

Please sign in to comment.