Skip to content

Commit

Permalink
Merge pull request #4474 from kpedro88/Phase1-ZS1
Browse files Browse the repository at this point in the history
New ZS thresholds for SiPMs
  • Loading branch information
cmsbuild committed Jul 1, 2014
2 parents e5af628 + 0d65d44 commit 17bd643
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 17bd643

Please sign in to comment.