Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ZS thresholds for SiPMs #4474

Merged
merged 1 commit into from Jul 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions SLHCUpgradeSimulations/Configuration/python/aging.py
Expand Up @@ -87,6 +87,21 @@ def ageHcal(process,lumi):
process.es_hardcode.HERecalibration = cms.bool(True)
process.es_hardcode.HFRecalibration = cms.bool(True)
process.es_hardcode.iLumi = cms.double(float(lumi))

#change ZS thresholds for SiPMs
if hasattr(process,'simHcalDigis'):
if lumi<499: #values for 0 to 200
process.simHcalDigis.HBlevel=cms.int32(16)
process.simHcalDigis.HElevel=cms.int32(16)
elif lumi<999: #values for 500
process.simHcalDigis.HBlevel=cms.int32(90)
process.simHcalDigis.HElevel=cms.int32(30)
elif lumi<2999: #values for 1000
process.simHcalDigis.HBlevel=cms.int32(140)
process.simHcalDigis.HElevel=cms.int32(42)
else: #values for 3000
process.simHcalDigis.HBlevel=cms.int32(209)
process.simHcalDigis.HElevel=cms.int32(76)

return process

Expand Down Expand Up @@ -213,6 +228,9 @@ def turn_off_HE_aging(process):
process.mix.digitizers.hcal.HEDarkening = cms.bool(False)
if hasattr(process,'es_hardcode'):
process.es_hardcode.HERecalibration = cms.bool(False)
if hasattr(process,'simHcalDigis'):
process.simHcalDigis.HBlevel=cms.int32(16)
process.simHcalDigis.HElevel=cms.int32(16)
return process

def turn_off_HF_aging(process):
Expand Down