Skip to content

Commit 7259b4d

Browse files
author
Norraphat
committed
update digitizer for HGCAL in production mode
1 parent c84e36f commit 7259b4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SimGeneral/MixingModule/python/digitizers_cfi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
hgceeDigitizer = cms.PSet(hgceeDigitizer),
5959
hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
6060
hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
61+
calotruth = cms.PSet(caloParticles), #HGCAL still needs calotruth for production mode
6162
)
6263

6364
from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hfnoseDigitizer
@@ -88,6 +89,7 @@
8889
hgceeDigitizer = dict(premixStage1 = True),
8990
hgchebackDigitizer = dict(premixStage1 = True),
9091
hgchefrontDigitizer = dict(premixStage1 = True),
92+
calotruth = dict(premixStage1 = True), #HGCAL still needs calotruth for production mode
9193
)
9294
(premix_stage2 & phase2_hfnose).toModify(theDigitizers,
9395
hfnoseDigitizer = dict(premixStage1 = True),
@@ -104,10 +106,9 @@
104106

105107
from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
106108
(run3_ecalclustering | phase2_hgcal).toModify( theDigitizersValid,
107-
calotruth = cms.PSet( caloParticles ) ) # Doesn't HGCal need these also without validation?
109+
calotruth = cms.PSet( caloParticles ) )
108110
(premix_stage2 & phase2_hgcal).toModify(theDigitizersValid, calotruth = dict(premixStage1 = True))
109111

110-
111112
phase2_timing.toModify( theDigitizersValid.mergedtruth,
112113
createInitialVertexCollection = cms.bool(True) )
113114

0 commit comments

Comments
 (0)