From 1afecc51c86841f677202f03c6ba719974c4a3f0 Mon Sep 17 00:00:00 2001 From: mmusich Date: Fri, 22 May 2020 14:07:55 +0200 Subject: [PATCH] applied gain calibration scheme update at HLT as well --- .../Configuration/python/customizeHLTforCMSSW.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py index 81f6bad8e77cf..6109d32903f9a 100644 --- a/HLTrigger/Configuration/python/customizeHLTforCMSSW.py +++ b/HLTrigger/Configuration/python/customizeHLTforCMSSW.py @@ -170,10 +170,25 @@ def customiseFor2017DtUnpacking(process): return process + +# Update Pixel Gain calibration scheme for Run3 (PR #29333) +def customiseFor29333(process): + for producer in producers_by_type(process, "SiPixelClusterProducer"): + # For Run3, change in the gain calibration scheme, + # to include the VCal conversion factors directly in the SiPixelGainCalibration DB object + # full details at: https://indico.cern.ch/event/879470/contributions/3796405/attachments/2009273/3356603/pix_off_25_3_gain_calibration_mc.pdf + producer.VCaltoElectronGain = cms.int32(1) # all gains=1, pedestals=0 + producer.VCaltoElectronGain_L1 = cms.int32(1) + producer.VCaltoElectronOffset = cms.int32(0) + producer.VCaltoElectronOffset_L1 = cms.int32(0) + + return process + # CMSSW version specific customizations def customizeHLTforCMSSW(process, menuType="GRun"): # add call to action function in proper order: newest last! # process = customiseFor12718(process) + process = customiseFor29333(process) return process