From e27e2e224297e5a8a58fa825e76052ed44963c86 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sun, 8 Nov 2020 09:50:33 +0100 Subject: [PATCH 1/2] add customisation for pixel gains to 11_1_X --- .../python/customizeHLTforCMSSW.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 81f6bad8e77cf..53bc49464de0f 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -170,6 +170,30 @@ def customiseFor2017DtUnpacking(process): return process +def customisePixelGainForRun2Input(process): + """Customise the HLT to run on Run 2 data/MC using the old definition of the pixel calibrations + Up to 11.0.x, the pixel calibarations were fully specified in the configuration: + VCaltoElectronGain = 47 + VCaltoElectronGain_L1 = 50 + VCaltoElectronOffset = -60 + VCaltoElectronOffset_L1 = -670 + Starting with 11.1.x, the calibrations for Run 3 were moved to the conditions, leaving in the configuration only: + VCaltoElectronGain = 1 + VCaltoElectronGain_L1 = 1 + VCaltoElectronOffset = 0 + VCaltoElectronOffset_L1 = 0 + Since the conditions for Run 2 have not been updated to the new scheme, the HLT configuration needs to be reverted. + """ + # revert the Pixel parameters to be compatible with the Run 2 conditions + for producer in producers_by_type(process, "SiPixelClusterProducer"): + producer.VCaltoElectronGain = 47 + producer.VCaltoElectronGain_L1 = 50 + producer.VCaltoElectronOffset = -60 + producer.VCaltoElectronOffset_L1 = -670 + + return process + + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"): From 65dd5a419a4af8b6af25e7aebdcf17db2cdc7aaf Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 10 Nov 2020 12:57:51 +0100 Subject: [PATCH 2/2] add customiseFor2018Input --- HLTrigger/Configuration/python/customizeHLTforCMSSW.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 53bc49464de0f..179ea9a5a8760 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -194,6 +194,12 @@ def customisePixelGainForRun2Input(process): return process +def customiseFor2018Input(process): + """Customise the HLT to run on Run 2 data/MC""" + process = customisePixelGainForRun2Input(process) + process = synchronizeHCALHLTofflineRun3on2018data(process) + + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"):