1 import FWCore.ParameterSet.Config
as cms
16 theDigitizers = cms.PSet(
35 mergedtruth = cms.PSet(
40 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
41 fastSim.toModify(theDigitizers,
47 tracks = recoTrackAccumulator
49 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
50 (fastSim & premix_stage2).toModify(theDigitizers,
55 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
57 from Configuration.Eras.Modifier_phase2_hgcal_cff
import phase2_hgcal
58 phase2_hgcal.toModify( theDigitizers,
59 hgceeDigitizer = cms.PSet(hgceeDigitizer),
60 hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
61 hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
62 calotruth = cms.PSet(caloParticles),
67 from Configuration.Eras.Modifier_phase2_hfnose_cff
import phase2_hfnose
68 phase2_hfnose.toModify( theDigitizers,
69 hfnoseDigitizer = cms.PSet(hfnoseDigitizer),
72 from Configuration.Eras.Modifier_run3_common_cff
import run3_common
73 (run3_common & ~fastSim).toModify( theDigitizers, castor =
None )
75 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
76 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
77 phase2_timing.toModify( theDigitizers,
78 ecalTime = ecalTimeDigitizer.clone() )
80 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi
import ecalTimeDigitizer
81 from Configuration.Eras.Modifier_run3_ecal_devel_cff
import run3_ecal_devel
82 run3_ecal_devel.toModify( theDigitizers,
83 ecalTime = ecalTimeDigitizer.clone() )
85 from SimFastTiming.Configuration.SimFastTiming_cff
import mtdDigitizer
86 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
87 phase2_timing_layer.toModify( theDigitizers,
88 fastTimingLayer = mtdDigitizer.clone(),
89 MC_fastTimingLayer = mtdTruth.clone()
92 premix_stage2.toModify(theDigitizers,
96 (premix_stage2 & phase2_hgcal).toModify(theDigitizers,
97 hgceeDigitizer = dict(premixStage1 =
True),
98 hgchebackDigitizer = dict(premixStage1 =
True),
99 hgchefrontDigitizer = dict(premixStage1 =
True),
100 calotruth = dict(premixStage1 =
True),
102 (premix_stage2 & phase2_hfnose).toModify(theDigitizers,
103 hfnoseDigitizer = dict(premixStage1 =
True),
105 (premix_stage2 & phase2_timing_layer).toModify(theDigitizers,
106 fastTimingLayer = dict(
107 barrelDigitizer = dict(premixStage1 =
True),
108 endcapDigitizer = dict(premixStage1 =
True)
110 MC_fastTimingLayer = dict(premixStage1 =
True),
113 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
114 phase2_tracker.toModify(theDigitizers,
117 theDigitizersValid = cms.PSet(theDigitizers)
118 theDigitizers.mergedtruth.select.signalOnlyTP =
True 120 from Configuration.ProcessModifiers.run3_ecalclustering_cff
import run3_ecalclustering
121 run3_ecalclustering.toModify( theDigitizersValid,
122 calotruth = cms.PSet( caloParticles ) )
124 phase2_timing.toModify( theDigitizersValid.mergedtruth,
125 createInitialVertexCollection = cms.bool(
True) )
127 from Configuration.ProcessModifiers.premix_stage1_cff
import premix_stage1
131 if hasattr(mod,
"pixel"):
132 if hasattr(mod.pixel,
"AlgorithmCommon"):
133 mod.pixel.AlgorithmCommon.makeDigiSimLinks =
True 135 mod.pixel.makeDigiSimLinks =
True 136 if hasattr(mod,
"strip"):
137 mod.strip.makeDigiSimLinks =
True 138 mod.mergedtruth.select.signalOnlyTP =
False 139 premix_stage1.toModify(theDigitizersValid, _customizePremixStage1)
142 process.load(
"SimGeneral.MixingModule.aliases_PreMix_cfi")
143 modifyDigitizers_loadPremixStage2Aliases = premix_stage2.makeProcessModifier(_loadPremixStage2Aliases)
def _loadPremixStage2Aliases(process)
def _customizePremixStage1(mod)