Skip to content

Commit

Permalink
applied gain calibration scheme update at HLT as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed May 22, 2020
1 parent a004c29 commit 1afecc5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions HLTrigger/Configuration/python/customizeHLTforCMSSW.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1afecc5

Please sign in to comment.