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, HFNose_noise_fC, 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),
61 calotruth = cms.PSet(caloParticles),
66 from Configuration.Eras.Modifier_phase2_hfnose_cff
import phase2_hfnose
67 phase2_hfnose.toModify( theDigitizers,
68 hfnoseDigitizer = cms.PSet(hfnoseDigitizer),
71 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
72 (run3_common & ~fastSim).toModify( theDigitizers, castor =
None )
74 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
75 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
76 phase2_timing.toModify( theDigitizers,
77 ecalTime = ecalTimeDigitizer.clone() )
79 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
80 from Configuration.Eras.Modifier_run3_ecal_devel_cff
import run3_ecal_devel
81 run3_ecal_devel.toModify( theDigitizers,
82 ecalTime = ecalTimeDigitizer.clone() )
84 from SimFastTiming.Configuration.SimFastTiming_cff
import mtdDigitizer
85 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
86 phase2_timing_layer.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),
97 calotruth = dict(premixStage1 =
True),
99 (premix_stage2 & phase2_hfnose).toModify(theDigitizers,
100 hfnoseDigitizer = dict(premixStage1 =
True),
102 (premix_stage2 & phase2_timing_layer).toModify(theDigitizers,
103 fastTimingLayer = dict(
104 barrelDigitizer = dict(premixStage1 =
True),
105 endcapDigitizer = dict(premixStage1 =
True)
109 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
110 phase2_tracker.toModify(theDigitizers,
113 theDigitizersValid = cms.PSet(theDigitizers)
114 theDigitizers.mergedtruth.select.signalOnlyTP =
True 116 from Configuration.ProcessModifiers.run3_ecalclustering_cff
import run3_ecalclustering
117 run3_ecalclustering.toModify( theDigitizersValid,
118 calotruth = cms.PSet( caloParticles ) )
120 phase2_timing.toModify( theDigitizersValid.mergedtruth,
121 createInitialVertexCollection = cms.bool(
True) )
123 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
127 if hasattr(mod,
"pixel"):
128 if hasattr(mod.pixel,
"AlgorithmCommon"):
129 mod.pixel.AlgorithmCommon.makeDigiSimLinks =
True 131 mod.pixel.makeDigiSimLinks =
True 132 if hasattr(mod,
"strip"):
133 mod.strip.makeDigiSimLinks =
True 134 mod.mergedtruth.select.signalOnlyTP =
False 135 premix_stage1.toModify(theDigitizersValid, _customizePremixStage1)
138 process.load(
"SimGeneral.MixingModule.aliases_PreMix_cfi")
139 modifyDigitizers_loadPremixStage2Aliases = premix_stage2.makeProcessModifier(_loadPremixStage2Aliases)
def _loadPremixStage2Aliases(process)
def _customizePremixStage1(mod)