64 if not flags.Digitization.PileUp:
66 if "EventInfo" not in flags.Input.Collections:
67 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
69 inputKey=
"McEventInfo",
70 outputKey=
"Input_EventInfo"))
72 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoUpdateFromContextAlgCfg
76 from DigitizationConfig.PileUpConfig
import NoPileUpMuWriterCfg
80 if flags.Digitization.PileUp:
82 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import SimpleMergeMcEventCollCfg
as MergeMcEventCollCfg
83 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import InTimeOnlySimpleMergeMcEventCollCfg
as InTimeOnlyMergeMcEventCollCfg
84 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import SignalOnlySimpleMergeMcEventCollCfg
as SignalOnlyMergeMcEventCollCfg
86 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import MergeMcEventCollCfg
87 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import InTimeOnlyMcEventCollCfg
as InTimeOnlyMergeMcEventCollCfg
88 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import SignalOnlyMcEventCollCfg
as SignalOnlyMergeMcEventCollCfg
89 from MCTruthSimAlgs.MCTruthSimAlgsConfig
import (
90 MergeAntiKt4TruthJetsCfg,
91 MergeAntiKt6TruthJetsCfg,
92 MergeTruthParticlesCfg,
93 MergeMuonEntryLayerCfg,
97 if flags.Common.ProductionStep
is not ProductionStep.FastChain
and getEnabledDetectors(flags):
98 if flags.Digitization.DigiSteeringConf==
"StandardPileUpToolsAlg":
100 elif flags.Digitization.DigiSteeringConf==
"StandardInTimeOnlyTruthPileUpToolsAlg":
101 acc.merge(InTimeOnlyMergeMcEventCollCfg(flags))
103 acc.merge(SignalOnlyMergeMcEventCollCfg(flags))
104 if flags.Digitization.EnableTruth:
106 if "AntiKt4TruthJets" in puCollections:
108 if "AntiKt6TruthJets" in puCollections:
110 if "TruthPileupParticles" in puCollections:
118 from DigitizationConfig.TruthDigitizationOutputConfig
import TruthDigitizationOutputCfg
122 if flags.Common.ProductionStep != ProductionStep.PileUpPresampling
and flags.Digitization.InputBeamSigmaZ > 0:
123 from BeamEffects.BeamEffectsAlgConfig
import BeamSpotReweightingAlgCfg
127 if flags.Detector.EnableBCM:
128 from BCM_Digitization.BCM_DigitizationConfig
import BCM_DigitizationCfg
130 if flags.Detector.EnablePixel:
131 from PixelDigitization.PixelDigitizationConfig
import PixelDigitizationCfg
133 if flags.Detector.EnableSCT:
134 from SCT_Digitization.SCT_DigitizationConfig
import SCT_DigitizationCfg
136 if flags.Detector.EnableTRT:
137 from TRT_Digitization.TRT_DigitizationConfig
import TRT_DigitizationCfg
141 if flags.Detector.EnableITkPixel:
142 from PixelDigitization.ITkPixelDigitizationConfig
import ITkPixelDigitizationCfg
144 if flags.Detector.EnableITkStrip:
145 from StripDigitization.StripDigitizationConfig
import ITkStripDigitizationCfg
147 if flags.Detector.EnablePLR:
148 from PixelDigitization.PLR_DigitizationConfig
import PLR_DigitizationCfg
152 if flags.Detector.EnableHGTD:
153 from HGTD_Digitization.HGTD_DigitizationConfig
import HGTD_DigitizationCfg
157 if flags.Detector.EnableLAr:
158 from LArDigitization.LArDigitizationConfig
import LArTriggerDigitizationCfg
160 if flags.Detector.EnableTile:
161 from TileSimAlgs.TileDigitizationConfig
import TileDigitizationCfg, TileTriggerDigitizationCfg
166 if flags.Detector.EnableMDT:
167 from MuonConfig.MDT_DigitizationConfig
import MDT_DigitizationDigitToRDOCfg
169 if flags.Detector.EnableTGC:
170 from MuonConfig.TGC_DigitizationConfig
import TGC_DigitizationDigitToRDOCfg
172 if flags.Detector.EnableRPC:
173 from MuonConfig.RPC_DigitizationConfig
import RPC_DigitizationDigitToRDOCfg
175 if flags.Detector.EnableCSC:
176 from MuonConfig.CSC_DigitizationConfig
import CSC_DigitizationDigitToRDOCfg
178 if flags.Detector.EnablesTGC:
179 from MuonConfig.sTGC_DigitizationConfig
import sTGC_DigitizationDigitToRDOCfg
181 if flags.Detector.EnableMM:
182 from MuonConfig.MM_DigitizationConfig
import MM_DigitizationDigitToRDOCfg
186 if flags.Detector.EnableLucid:
187 from LUCID_Digitization.LUCID_DigitizationConfig
import LUCID_DigitizationCfg
191 if flags.Detector.EnableAFP:
192 from AFP_Digitization.AFP_DigitizationConfig
import AFP_DigitizationCfg
196 if flags.Detector.EnableALFA:
197 from ALFA_Digitization.ALFA_DigitizationConfig
import ALFA_DigitizationCfg
201 if flags.Detector.EnableZDC:
202 from ZDC_SimuDigitization.ZDC_SimuDigitizationConfig
import ZDC_DigitizationCfg
206 if flags.PerfMon.doFastMonMT
or flags.PerfMon.doFullMonMT:
207 from PerfMonComps.PerfMonCompsConfig
import PerfMonMTSvcCfg
211 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg