From 98ac9d0f532a960eab89c2eb7304f9f81b83ed5e Mon Sep 17 00:00:00 2001 From: Marino Missiroli Date: Mon, 18 Apr 2022 17:24:00 +0200 Subject: [PATCH] add HLT-EGM customisation for 2018 Data --- HLTrigger/Configuration/python/customizeHLTforCMSSW.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index b6311d9566d2f..23820895fc2fd 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -144,15 +144,24 @@ def customiseCTPPSFor2018Input(process): return process +def customiseEGammaRecoFor2018Input(process): + for prod in producers_by_type(process, 'PFECALSuperClusterProducer'): + if hasattr(prod, 'regressionConfig'): + prod.regressionConfig.regTrainedWithPS = cms.bool(False) + + return process + def customiseFor2018Input(process): """Customise the HLT to run on Run 2 data/MC""" process = customisePixelGainForRun2Input(process) process = customisePixelL1ClusterThresholdForRun2Input(process) process = customiseHCALFor2018Input(process) process = customiseCTPPSFor2018Input(process) + process = customiseEGammaRecoFor2018Input(process) return process + def customiseFor37231(process): """ Customisation to fix the typo of Reccord in PR 37231 (https://github.com/cms-sw/cmssw/pull/37231) """ @@ -185,4 +194,3 @@ def customizeHLTforCMSSW(process, menuType="GRun"): process = customiseFor37231(process) return process -