2 """Main steering for MC+MC and MC+data overlay
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
7 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
8 from AthenaConfiguration.DetectorConfigFlags
import getEnabledDetectors
9 from AthenaConfiguration.Enums
import LHCPeriod
10 from AthenaKernel.EventIdOverrideConfig
import IOVDbMetaDataToolWithRunNumberOverrideCfg
11 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
12 from DigitizationConfig.DigitizationParametersConfig
import writeDigitizationParameters
13 from OverlayCopyAlgs.OverlayCopyAlgsConfig
import \
14 CopyCaloCalibrationHitContainersCfg, CopyJetTruthInfoCfg, CopyPileupParticleTruthInfoCfg, CopyMcEventCollectionCfg, \
15 CopyTrackRecordCollectionsCfg
16 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoOverlayCfg
20 """Main overlay steering configuration"""
30 """Main overlay content"""
34 if not configFlags.Overlay.ByteStream:
38 if not configFlags.Sim.DoFullChain:
42 if not configFlags.Sim.DoFullChain
and (
getEnabledDetectors(configFlags)
or configFlags.Digitization.EnableTruth):
44 if configFlags.Digitization.EnableTruth:
48 if not configFlags.Sim.DoFullChain:
52 if configFlags.Digitization.InputBeamSigmaZ > 0:
53 from BeamEffects.BeamEffectsAlgConfig
import BeamSpotReweightingAlgCfg
57 if configFlags.Detector.EnableBCM:
58 from InDetOverlay.BCMOverlayConfig
import BCMOverlayCfg
60 if configFlags.Detector.EnablePixel:
61 from InDetOverlay.PixelOverlayConfig
import PixelOverlayCfg
63 if configFlags.Detector.EnableSCT:
64 from InDetOverlay.SCTOverlayConfig
import SCTOverlayCfg
66 if configFlags.Detector.EnableTRT:
67 from InDetOverlay.TRTOverlayConfig
import TRTOverlayCfg
71 if configFlags.Detector.EnableITkPixel:
72 from InDetOverlay.ITkPixelOverlayConfig
import ITkPixelOverlayCfg
74 if configFlags.Detector.EnableITkStrip:
75 from InDetOverlay.ITkStripOverlayConfig
import ITkStripOverlayCfg
77 if configFlags.Detector.EnablePLR:
78 from InDetOverlay.PLR_OverlayConfig
import PLR_OverlayCfg
82 if configFlags.Detector.EnableHGTD:
83 from HGTD_Overlay.HGTD_OverlayConfig
import HGTD_OverlayCfg
87 if configFlags.Detector.EnableLAr:
88 from LArDigitization.LArDigitizationConfig
import LArOverlayCfg, LArSuperCellOverlayCfg
90 if configFlags.Detector.EnableL1Calo:
91 if configFlags.Overlay.DataOverlay:
94 from TrigT1CaloSim.TTL1OverlayConfig
import LArTTL1OverlayCfg
96 if configFlags.GeoModel.Run >= LHCPeriod.Run3:
99 if configFlags.Detector.EnableTile:
100 from TileSimAlgs.TileDigitizationConfig
import TileDigitizationCfg, TileOverlayTriggerDigitizationCfg
102 if configFlags.Detector.EnableL1Calo:
103 if configFlags.Overlay.DataOverlay:
106 from TrigT1CaloSim.TTL1OverlayConfig
import TileTTL1OverlayCfg
111 from MuonConfig.MuonOverlayConfig
import MuonOverlayCfg
115 if configFlags.PerfMon.doFastMonMT
or configFlags.PerfMon.doFullMonMT:
116 from PerfMonComps.PerfMonCompsConfig
import PerfMonMTSvcCfg
120 if configFlags.Overlay.doTrackOverlay:
122 from TrkEventCnvTools.TrkEventCnvToolsConfig
import TrkEventCnvSuperToolCfg
124 if configFlags.Detector.GeometryITk:
125 from OverlayCopyAlgs.OverlayCopyAlgsConfig
import CopyITkTrackCollectionsCfg, CopyITkPixelClusterContainerCfg, CopyITkStripClusterContainerCfg
130 from OverlayCopyAlgs.OverlayCopyAlgsConfig
import CopyTrackCollectionsCfg,CopyPixelClusterContainerCfg, CopySCT_ClusterContainerCfg,\
131 CopyTRT_DriftCircleContainerCfg
138 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
139 if configFlags.Output.doWriteRDO:
141 if configFlags.Output.doWriteRDO_SGNL: