From 01215d6ebde1882a0f4a8f0c1b0a717644cf6f3a Mon Sep 17 00:00:00 2001 From: Sunanda Date: Mon, 18 Nov 2024 08:57:50 +0100 Subject: [PATCH 1/3] Inhibit ZDC digitization in Phase2 scenario --- .../HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py index 9334636966344..737b337b0f72a 100644 --- a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py +++ b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py @@ -64,7 +64,10 @@ # remove HE processing for phase 2, completely put in HGCal land from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal -phase2_hgcal.toModify(hcalSimBlock, killHE = cms.bool(True) ) +phase2_hgcal.toModify(hcalSimBlock, + doZDCDigi = cms.bool(False), + killHE = cms.bool(True) +) # remove HE processing for phase 2, completely put in HGCal land from Configuration.Eras.Modifier_zdcNoDigi_cff import zdcNoDigi From 525eaac4b4736c1377fbed816c16eced15d3fdc8 Mon Sep 17 00:00:00 2001 From: Sunanda Date: Wed, 20 Nov 2024 21:00:22 +0100 Subject: [PATCH 2/3] As suggested by Andrea --- .../python/hcalUnsuppressedDigis_cfi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py index 737b337b0f72a..b7c35b800f1ee 100644 --- a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py +++ b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py @@ -46,7 +46,7 @@ ) from Configuration.Eras.Modifier_fastSim_cff import fastSim -fastSim.toModify( hcalSimBlock, hitsProducer=cms.string('fastSimProducer') ) +fastSim.toModify( hcalSimBlock, hitsProducer = "fastSimProducer" ) from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1 premix_stage1.toModify(hcalSimBlock, @@ -60,15 +60,15 @@ # test numbering not used in fastsim from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017 -(run2_HCAL_2017 & ~fastSim).toModify( hcalSimBlock, TestNumbering = cms.bool(True) ) +(run2_HCAL_2017 & ~fastSim).toModify( hcalSimBlock, TestNumbering = True ) # remove HE processing for phase 2, completely put in HGCal land from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal phase2_hgcal.toModify(hcalSimBlock, - doZDCDigi = cms.bool(False), - killHE = cms.bool(True) + doZDCDigi = False, + killHE = True ) # remove HE processing for phase 2, completely put in HGCal land from Configuration.Eras.Modifier_zdcNoDigi_cff import zdcNoDigi -zdcNoDigi.toModify(hcalSimBlock, doZDCDigi = cms.bool(False) ) +zdcNoDigi.toModify(hcalSimBlock, doZDCDigi = False ) From 7dc15d31bb0945892a3df9ceba3d12fb056fae95 Mon Sep 17 00:00:00 2001 From: Sunanda Date: Wed, 20 Nov 2024 21:03:53 +0100 Subject: [PATCH 3/3] Modify the comments --- .../HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py index b7c35b800f1ee..b02962b83576a 100644 --- a/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py +++ b/SimCalorimetry/HcalSimProducers/python/hcalUnsuppressedDigis_cfi.py @@ -63,12 +63,13 @@ (run2_HCAL_2017 & ~fastSim).toModify( hcalSimBlock, TestNumbering = True ) # remove HE processing for phase 2, completely put in HGCal land +# Also inhibit ZDC digitization from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal phase2_hgcal.toModify(hcalSimBlock, doZDCDigi = False, killHE = True ) -# remove HE processing for phase 2, completely put in HGCal land +# inhibit ZDC digitization from Configuration.Eras.Modifier_zdcNoDigi_cff import zdcNoDigi zdcNoDigi.toModify(hcalSimBlock, doZDCDigi = False )