1 import FWCore.ParameterSet.Config
as cms
15 theDigitizers = cms.PSet(
34 mergedtruth = cms.PSet(
39 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
40 fastSim.toModify(theDigitizers,
46 tracks = recoTrackAccumulator
48 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
49 (fastSim & premix_stage2).toModify(theDigitizers,
56 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
57 phase2_hgcal.toModify( theDigitizers,
58 hgceeDigitizer = cms.PSet(hgceeDigitizer),
59 hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
60 hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
63 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
64 run3_common.toModify( theDigitizers, castor =
None )
66 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
67 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
68 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
69 phase2_timing.toModify( theDigitizers,
70 ecalTime = ecalTimeDigitizer.clone() )
72 from SimFastTiming.Configuration.SimFastTiming_cff
import fastTimeDigitizer
73 phase2_timing_layer.toModify( theDigitizers,
74 fastTimingLayer = fastTimeDigitizer.clone() )
76 from SimFastTiming.Configuration.SimFastTiming_cff
import mtdDigitizer
77 from Configuration.Eras.Modifier_phase2_timing_layer_new_cff
import phase2_timing_layer_new
78 phase2_timing_layer_new.toModify( theDigitizers,
79 fastTimingLayer = mtdDigitizer.clone() )
81 premix_stage2.toModify(theDigitizers,
85 (premix_stage2 & phase2_hgcal).toModify(theDigitizers,
86 hgceeDigitizer =
dict(premixStage1 =
True),
87 hgchebackDigitizer =
dict(premixStage1 =
True),
88 hgchefrontDigitizer =
dict(premixStage1 =
True),
91 theDigitizersValid = cms.PSet(theDigitizers)
92 theDigitizers.mergedtruth.select.signalOnlyTP =
True 94 phase2_hgcal.toModify( theDigitizersValid,
95 calotruth = cms.PSet( caloParticles ) )
96 (premix_stage2 & phase2_hgcal).toModify(theDigitizersValid, calotruth =
dict(premixStage1 =
True))
99 phase2_timing.toModify( theDigitizersValid.mergedtruth,
100 createInitialVertexCollection = cms.bool(
True) )
103 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
107 if hasattr(mod,
"pixel"):
108 if hasattr(mod.pixel,
"AlgorithmCommon"):
109 mod.pixel.AlgorithmCommon.makeDigiSimLinks =
True 111 mod.pixel.makeDigiSimLinks =
True 112 if hasattr(mod,
"strip"):
113 mod.strip.makeDigiSimLinks =
True 114 mod.mergedtruth.select.signalOnlyTP =
False 115 premix_stage1.toModify(theDigitizersValid, _customizePremixStage1)
118 process.load(
"SimGeneral.MixingModule.aliases_PreMix_cfi")
119 modifyDigitizers_loadPremixStage2Aliases = premix_stage2.makeProcessModifier(_loadPremixStage2Aliases)
def _loadPremixStage2Aliases(process)
def _customizePremixStage1(mod)