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),
65 from Configuration.Eras.Modifier_phase2_hfnose_cff
import phase2_hfnose
66 phase2_hfnose.toModify( theDigitizers,
67 hfnoseDigitizer = cms.PSet(hfnoseDigitizer),
70 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
71 run3_common.toModify( theDigitizers, castor =
None )
73 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
74 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
75 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
76 phase2_timing.toModify( theDigitizers,
77 ecalTime = ecalTimeDigitizer.clone() )
79 from SimFastTiming.Configuration.SimFastTiming_cff
import fastTimeDigitizer
80 phase2_timing_layer.toModify( theDigitizers,
81 fastTimingLayer = fastTimeDigitizer.clone() )
83 from SimFastTiming.Configuration.SimFastTiming_cff
import mtdDigitizer
84 from Configuration.Eras.Modifier_phase2_timing_layer_tile_cff
import phase2_timing_layer_tile
85 from Configuration.Eras.Modifier_phase2_timing_layer_bar_cff
import phase2_timing_layer_bar
86 (phase2_timing_layer_tile | phase2_timing_layer_bar).toModify( theDigitizers,
87 fastTimingLayer = mtdDigitizer.clone() )
89 premix_stage2.toModify(theDigitizers,
93 (premix_stage2 & phase2_hgcal).toModify(theDigitizers,
94 hgceeDigitizer =
dict(premixStage1 =
True),
95 hgchebackDigitizer =
dict(premixStage1 =
True),
96 hgchefrontDigitizer =
dict(premixStage1 =
True),
98 (premix_stage2 & phase2_hfnose).toModify(theDigitizers,
99 hfnoseDigitizer =
dict(premixStage1 =
True),
101 (premix_stage2 & (phase2_timing_layer_tile | phase2_timing_layer_bar)).toModify(theDigitizers,
102 fastTimingLayer =
dict(
103 barrelDigitizer =
dict(premixStage1 =
True),
104 endcapDigitizer =
dict(premixStage1 =
True)
108 theDigitizersValid = cms.PSet(theDigitizers)
109 theDigitizers.mergedtruth.select.signalOnlyTP =
True 111 phase2_hgcal.toModify( theDigitizersValid,
112 calotruth = cms.PSet( caloParticles ) )
113 (premix_stage2 & phase2_hgcal).toModify(theDigitizersValid, calotruth =
dict(premixStage1 =
True))
116 phase2_timing.toModify( theDigitizersValid.mergedtruth,
117 createInitialVertexCollection = cms.bool(
True) )
120 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
124 if hasattr(mod,
"pixel"):
125 if hasattr(mod.pixel,
"AlgorithmCommon"):
126 mod.pixel.AlgorithmCommon.makeDigiSimLinks =
True 128 mod.pixel.makeDigiSimLinks =
True 129 if hasattr(mod,
"strip"):
130 mod.strip.makeDigiSimLinks =
True 131 mod.mergedtruth.select.signalOnlyTP =
False 132 premix_stage1.toModify(theDigitizersValid, _customizePremixStage1)
135 process.load(
"SimGeneral.MixingModule.aliases_PreMix_cfi")
136 modifyDigitizers_loadPremixStage2Aliases = premix_stage2.makeProcessModifier(_loadPremixStage2Aliases)
def _loadPremixStage2Aliases(process)
def _customizePremixStage1(mod)