From 1391d2fa8ec46d66386d11eb06094cc5ad84ec0a Mon Sep 17 00:00:00 2001 From: Andre Govinda Stahl Leiton Date: Wed, 3 Apr 2024 10:38:18 +0200 Subject: [PATCH] Changed customizeHLTforCMSSW to fix PR 44597 --- .../Configuration/python/customizeHLTforCMSSW.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 4a9f969d01da7..0c1106c59d9c1 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -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"): @@ -273,4 +282,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"): # customizes AXOL1TL condition in the L1 menu process = customizeHLTfor44511(process) + process = customizeHLTfor44597(process) + return process