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,
54 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchebackDigitizer, hgchefrontDigitizer, HGCAL_noise_fC, HGCAL_noise_heback, HGCAL_chargeCollectionEfficiencies, HGCAL_ileakParam_toUse, HGCAL_cceParams_toUse, HGCAL_noises
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 phase2_timing.toModify( theDigitizers,
76 ecalTime = ecalTimeDigitizer.clone() )
78 from SimFastTiming.Configuration.SimFastTiming_cff
import mtdDigitizer
79 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
80 phase2_timing_layer.toModify( theDigitizers,
81 fastTimingLayer = mtdDigitizer.clone() )
83 premix_stage2.toModify(theDigitizers,
87 (premix_stage2 & phase2_hgcal).toModify(theDigitizers,
88 hgceeDigitizer = dict(premixStage1 =
True),
89 hgchebackDigitizer = dict(premixStage1 =
True),
90 hgchefrontDigitizer = dict(premixStage1 =
True),
92 (premix_stage2 & phase2_hfnose).toModify(theDigitizers,
93 hfnoseDigitizer = dict(premixStage1 =
True),
95 (premix_stage2 & phase2_timing_layer).toModify(theDigitizers,
96 fastTimingLayer = dict(
97 barrelDigitizer = dict(premixStage1 =
True),
98 endcapDigitizer = dict(premixStage1 =
True)
102 theDigitizersValid = cms.PSet(theDigitizers)
103 theDigitizers.mergedtruth.select.signalOnlyTP =
True
105 from Configuration.ProcessModifiers.run3_ecalclustering_cff
import run3_ecalclustering
106 (run3_ecalclustering | phase2_hgcal).toModify( theDigitizersValid,
107 calotruth = cms.PSet( caloParticles ) )
108 (premix_stage2 & phase2_hgcal).toModify(theDigitizersValid, calotruth = dict(premixStage1 =
True))
111 phase2_timing.toModify( theDigitizersValid.mergedtruth,
112 createInitialVertexCollection = cms.bool(
True) )
115 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
119 if hasattr(mod,
"pixel"):
120 if hasattr(mod.pixel,
"AlgorithmCommon"):
121 mod.pixel.AlgorithmCommon.makeDigiSimLinks =
True
123 mod.pixel.makeDigiSimLinks =
True
124 if hasattr(mod,
"strip"):
125 mod.strip.makeDigiSimLinks =
True
126 mod.mergedtruth.select.signalOnlyTP =
False
127 premix_stage1.toModify(theDigitizersValid, _customizePremixStage1)
130 process.load(
"SimGeneral.MixingModule.aliases_PreMix_cfi")
131 modifyDigitizers_loadPremixStage2Aliases = premix_stage2.makeProcessModifier(_loadPremixStage2Aliases)