@@ -170,6 +170,38 @@ def customiseFor2017DtUnpacking(process):
170170
171171 return process
172172
173+ def customisePixelGainForRun2Input (process ):
174+ """Customise the HLT to run on Run 2 data/MC using the old definition of the pixel calibrations
175+
176+ Up to 11.0.x, the pixel calibarations were fully specified in the configuration:
177+ VCaltoElectronGain = 47
178+ VCaltoElectronGain_L1 = 50
179+ VCaltoElectronOffset = -60
180+ VCaltoElectronOffset_L1 = -670
181+
182+ Starting with 11.1.x, the calibrations for Run 3 were moved to the conditions, leaving in the configuration only:
183+ VCaltoElectronGain = 1
184+ VCaltoElectronGain_L1 = 1
185+ VCaltoElectronOffset = 0
186+ VCaltoElectronOffset_L1 = 0
187+
188+ Since the conditions for Run 2 have not been updated to the new scheme, the HLT configuration needs to be reverted.
189+ """
190+ # revert the Pixel parameters to be compatible with the Run 2 conditions
191+ for producer in producers_by_type (process , "SiPixelClusterProducer" ):
192+ producer .VCaltoElectronGain = 47
193+ producer .VCaltoElectronGain_L1 = 50
194+ producer .VCaltoElectronOffset = - 60
195+ producer .VCaltoElectronOffset_L1 = - 670
196+
197+ return process
198+
199+
200+ def customiseFor2018Input (process ):
201+ """Customise the HLT to run on Run 2 data/MC"""
202+ process = customisePixelGainForRun2Input (process )
203+ process = synchronizeHCALHLTofflineRun3on2018data (process )
204+
173205
174206# CMSSW version specific customizations
175207def customizeHLTforCMSSW (process , menuType = "GRun" ):
0 commit comments