From 21f591a2fc1e03998233fb51bb66638fc1901e37 Mon Sep 17 00:00:00 2001 From: Pieter David Date: Thu, 19 Sep 2019 16:03:18 +0200 Subject: [PATCH] Update customizeSiStripAPVDynamicGainSimulation for premixing --- .../python/customizeSiStripAPVDynamicGainSimulation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SimTracker/SiStripDigitizer/python/customizeSiStripAPVDynamicGainSimulation.py b/SimTracker/SiStripDigitizer/python/customizeSiStripAPVDynamicGainSimulation.py index f9513a4f34036..5078a708b72fd 100644 --- a/SimTracker/SiStripDigitizer/python/customizeSiStripAPVDynamicGainSimulation.py +++ b/SimTracker/SiStripDigitizer/python/customizeSiStripAPVDynamicGainSimulation.py @@ -8,6 +8,9 @@ def activateSiStripAPVDynamicGain(process): if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'strip'): print("activating SiStrip APV Dynamic Gain simulation") process.mix.digitizers.strip.includeAPVSimulation = cms.bool(True) + if hasattr(process, "mixData") and hasattr(process.mixData, "workers") and hasattr(process.mixData.workers, "strip"): + print("activating SiStrip APV Dynamic Gain simulation (premixing)") + process.mixData.workers.strip.includeAPVSimulation = cms.bool(True) if not hasattr(process.GlobalTag,'toGet'): process.GlobalTag.toGet=cms.VPSet()