Skip to content

Commit 8af9c7c

Browse files
committed
Add a customisation to run the "GRun" HLT menu on Run 2 data/MC
1 parent 396662c commit 8af9c7c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

HLTrigger/Configuration/python/customizeHLTforCMSSW.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,40 @@ def customiseFor2017DtUnpacking(process):
170170

171171
return process
172172

173+
174+
def customisePixelGainForRun2Input(process):
175+
"""Customise the HLT to run on Run 2 data/MC using the old definition of the pixel calibrations
176+
177+
Up to 11.0.x, the pixel calibarations were fully specified in the configuration:
178+
VCaltoElectronGain = 47
179+
VCaltoElectronGain_L1 = 50
180+
VCaltoElectronOffset = -60
181+
VCaltoElectronOffset_L1 = -670
182+
183+
Starting with 11.1.x, the calibrations for Run 3 were moved to the conditions, leaving in the configuration only:
184+
VCaltoElectronGain = 1
185+
VCaltoElectronGain_L1 = 1
186+
VCaltoElectronOffset = 0
187+
VCaltoElectronOffset_L1 = 0
188+
189+
Since the conditions for Run 2 have not been updated to the new scheme, the HLT configuration needs to be reverted.
190+
"""
191+
# revert the Pixel parameters to be compatible with the Run 2 conditions
192+
for producer in producers_by_type(process, "SiPixelClusterProducer"):
193+
producer.VCaltoElectronGain = 47
194+
producer.VCaltoElectronGain_L1 = 50
195+
producer.VCaltoElectronOffset = -60
196+
producer.VCaltoElectronOffset_L1 = -670
197+
198+
return process
199+
200+
201+
def customiseFor2018Input(process):
202+
"""Customise the HLT to run on Run 2 data/MC"""
203+
process = customisePixelGainForRun2Input(process)
204+
process = synchronizeHCALHLTofflineRun3on2018data(process)
205+
206+
173207
def customiseFor31295(process):
174208
"""Reorganization of kdtrees for PFBlockAlgo and optimize track-hcal links"""
175209

0 commit comments

Comments
 (0)