ATLAS Offline Software
Functions
python.OverlaySteering Namespace Reference

Functions

def OverlayMainCfg (configFlags)
 
def OverlayMainContentCfg (configFlags)
 

Detailed Description

Main steering for MC+MC and MC+data overlay

Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ OverlayMainCfg()

def python.OverlaySteering.OverlayMainCfg (   configFlags)
Main overlay steering configuration

Definition at line 19 of file OverlaySteering.py.

19 def OverlayMainCfg(configFlags):
20  """Main overlay steering configuration"""
21 
22  # Construct our accumulator to run
23  acc = MainServicesCfg(configFlags)
24  acc.merge(PoolReadCfg(configFlags))
25  acc.merge(OverlayMainContentCfg(configFlags))
26  return acc
27 
28 

◆ OverlayMainContentCfg()

def python.OverlaySteering.OverlayMainContentCfg (   configFlags)
Main overlay content

Definition at line 29 of file OverlaySteering.py.

29 def OverlayMainContentCfg(configFlags):
30  """Main overlay content"""
31 
32  acc = writeDigitizationParameters(configFlags)
33 
34  if not configFlags.Overlay.ByteStream:
35  acc.merge(IOVDbMetaDataToolWithRunNumberOverrideCfg(configFlags))
36 
37  # Add event info overlay
38  if not configFlags.Sim.DoFullChain:
39  acc.merge(EventInfoOverlayCfg(configFlags))
40 
41  # Add truth overlay (needed downstream)
42  if not configFlags.Sim.DoFullChain and (getEnabledDetectors(configFlags) or configFlags.Digitization.EnableTruth):
43  acc.merge(CopyMcEventCollectionCfg(configFlags))
44  if configFlags.Digitization.EnableTruth:
45  acc.merge(CopyJetTruthInfoCfg(configFlags))
46  acc.merge(CopyPileupParticleTruthInfoCfg(configFlags))
47  acc.merge(CopyCaloCalibrationHitContainersCfg(configFlags))
48  if not configFlags.Sim.DoFullChain:
49  acc.merge(CopyTrackRecordCollectionsCfg(configFlags))
50 
51  # Beam spot reweighting
52  if configFlags.Digitization.InputBeamSigmaZ > 0:
53  from BeamEffects.BeamEffectsAlgConfig import BeamSpotReweightingAlgCfg
54  acc.merge(BeamSpotReweightingAlgCfg(configFlags))
55 
56  # Inner detector
57  if configFlags.Detector.EnableBCM:
58  from InDetOverlay.BCMOverlayConfig import BCMOverlayCfg
59  acc.merge(BCMOverlayCfg(configFlags))
60  if configFlags.Detector.EnablePixel:
61  from InDetOverlay.PixelOverlayConfig import PixelOverlayCfg
62  acc.merge(PixelOverlayCfg(configFlags))
63  if configFlags.Detector.EnableSCT:
64  from InDetOverlay.SCTOverlayConfig import SCTOverlayCfg
65  acc.merge(SCTOverlayCfg(configFlags))
66  if configFlags.Detector.EnableTRT:
67  from InDetOverlay.TRTOverlayConfig import TRTOverlayCfg
68  acc.merge(TRTOverlayCfg(configFlags))
69 
70  # ITk
71  if configFlags.Detector.EnableITkPixel:
72  from InDetOverlay.ITkPixelOverlayConfig import ITkPixelOverlayCfg
73  acc.merge(ITkPixelOverlayCfg(configFlags))
74  if configFlags.Detector.EnableITkStrip:
75  from InDetOverlay.ITkStripOverlayConfig import ITkStripOverlayCfg
76  acc.merge(ITkStripOverlayCfg(configFlags))
77  if configFlags.Detector.EnablePLR:
78  from InDetOverlay.PLR_OverlayConfig import PLR_OverlayCfg
79  acc.merge(PLR_OverlayCfg(configFlags))
80 
81  # HGTD
82  if configFlags.Detector.EnableHGTD:
83  from HGTD_Overlay.HGTD_OverlayConfig import HGTD_OverlayCfg
84  acc.merge(HGTD_OverlayCfg(configFlags))
85 
86  # Calorimeters
87  if configFlags.Detector.EnableLAr:
88  from LArDigitization.LArDigitizationConfig import LArOverlayCfg, LArSuperCellOverlayCfg
89  acc.merge(LArOverlayCfg(configFlags))
90  if configFlags.Detector.EnableL1Calo:
91  if configFlags.Overlay.DataOverlay:
92  pass # TODO: not supported for now
93  else:
94  from TrigT1CaloSim.TTL1OverlayConfig import LArTTL1OverlayCfg
95  acc.merge(LArTTL1OverlayCfg(configFlags))
96  if configFlags.GeoModel.Run >= LHCPeriod.Run3:
97  acc.merge(LArSuperCellOverlayCfg(configFlags))
98 
99  if configFlags.Detector.EnableTile:
100  from TileSimAlgs.TileDigitizationConfig import TileDigitizationCfg, TileOverlayTriggerDigitizationCfg
101  acc.merge(TileDigitizationCfg(configFlags))
102  if configFlags.Detector.EnableL1Calo:
103  if configFlags.Overlay.DataOverlay:
104  pass # TODO: not supported for now
105  else:
106  from TrigT1CaloSim.TTL1OverlayConfig import TileTTL1OverlayCfg
107  acc.merge(TileTTL1OverlayCfg(configFlags))
108  acc.merge(TileOverlayTriggerDigitizationCfg(configFlags))
109 
110  # Muon system
111  from MuonConfig.MuonOverlayConfig import MuonOverlayCfg
112  acc.merge(MuonOverlayCfg(configFlags))
113 
114  # Add MT-safe PerfMon
115  if configFlags.PerfMon.doFastMonMT or configFlags.PerfMon.doFullMonMT:
116  from PerfMonComps.PerfMonCompsConfig import PerfMonMTSvcCfg
117  acc.merge(PerfMonMTSvcCfg(configFlags))
118 
119  # Track overlay
120  if configFlags.Overlay.doTrackOverlay:
121  #need this to ensure that the ElementLinks to the PRDs are handled correctly (since the name is hardcoded in the converters)
122  from TrkEventCnvTools.TrkEventCnvToolsConfig import TrkEventCnvSuperToolCfg
123  acc.merge(TrkEventCnvSuperToolCfg(configFlags))
124  if configFlags.Detector.GeometryITk:
125  from OverlayCopyAlgs.OverlayCopyAlgsConfig import CopyITkTrackCollectionsCfg, CopyITkPixelClusterContainerCfg, CopyITkStripClusterContainerCfg
126  acc.merge(CopyITkTrackCollectionsCfg(configFlags))
127  acc.merge(CopyITkPixelClusterContainerCfg(configFlags))
128  acc.merge(CopyITkStripClusterContainerCfg(configFlags))
129  else:
130  from OverlayCopyAlgs.OverlayCopyAlgsConfig import CopyTrackCollectionsCfg,CopyPixelClusterContainerCfg, CopySCT_ClusterContainerCfg,\
131  CopyTRT_DriftCircleContainerCfg
132  acc.merge(CopyTrackCollectionsCfg(configFlags))
133  acc.merge(CopyPixelClusterContainerCfg(configFlags))
134  acc.merge(CopySCT_ClusterContainerCfg(configFlags))
135  acc.merge(CopyTRT_DriftCircleContainerCfg(configFlags))
136 
137  # Add in-file MetaData
138  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
139  if configFlags.Output.doWriteRDO:
140  acc.merge(SetupMetaDataForStreamCfg(configFlags, "RDO"))
141  if configFlags.Output.doWriteRDO_SGNL:
142  acc.merge(SetupMetaDataForStreamCfg(configFlags, "RDO_SGNL"))
143 
144  return acc
python.LArDigitizationConfig.LArOverlayCfg
def LArOverlayCfg(flags, **kwargs)
Definition: LArDigitizationConfig.py:281
BCMOverlayConfig.BCMOverlayCfg
def BCMOverlayCfg(flags)
Definition: BCMOverlayConfig.py:87
python.DetectorConfigFlags.getEnabledDetectors
def getEnabledDetectors(flags, geometry=False)
Definition: DetectorConfigFlags.py:147
python.OverlayCopyAlgsConfig.CopyMcEventCollectionCfg
def CopyMcEventCollectionCfg(flags, name="CopyMcEventCollection", **kwargs)
Definition: OverlayCopyAlgsConfig.py:161
python.OverlayCopyAlgsConfig.CopyPixelClusterContainerCfg
def CopyPixelClusterContainerCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:410
python.OverlayCopyAlgsConfig.CopyITkPixelClusterContainerCfg
def CopyITkPixelClusterContainerCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:422
TTL1OverlayConfig.LArTTL1OverlayCfg
def LArTTL1OverlayCfg(flags, name="LArTTL1Overlay", **kwargs)
Definition: TTL1OverlayConfig.py:13
python.PerfMonCompsConfig.PerfMonMTSvcCfg
def PerfMonMTSvcCfg(flags, **kwargs)
A minimal new-style configuration for PerfMonMTSvc.
Definition: PerfMonCompsConfig.py:10
python.OverlayCopyAlgsConfig.CopyCaloCalibrationHitContainersCfg
def CopyCaloCalibrationHitContainersCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:385
python.OverlaySteering.OverlayMainContentCfg
def OverlayMainContentCfg(configFlags)
Definition: OverlaySteering.py:29
python.OverlayCopyAlgsConfig.CopyPileupParticleTruthInfoCfg
def CopyPileupParticleTruthInfoCfg(flags, name="CopyPileupParticleTruthInfo", **kwargs)
Definition: OverlayCopyAlgsConfig.py:133
python.OverlayCopyAlgsConfig.CopySCT_ClusterContainerCfg
def CopySCT_ClusterContainerCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:433
python.OverlayCopyAlgsConfig.CopyITkTrackCollectionsCfg
def CopyITkTrackCollectionsCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:522
TileDigitizationConfig.TileOverlayTriggerDigitizationCfg
def TileOverlayTriggerDigitizationCfg(flags)
Definition: TileDigitizationConfig.py:29
ITkStripOverlayConfig.ITkStripOverlayCfg
def ITkStripOverlayCfg(flags)
Definition: ITkStripOverlayConfig.py:84
python.OverlayCopyAlgsConfig.CopyTrackCollectionsCfg
def CopyTrackCollectionsCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:496
python.OverlayCopyAlgsConfig.CopyTRT_DriftCircleContainerCfg
def CopyTRT_DriftCircleContainerCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:457
python.TrkEventCnvToolsConfig.TrkEventCnvSuperToolCfg
def TrkEventCnvSuperToolCfg(flags, name='EventCnvSuperTool', **kwargs)
Definition: TrkEventCnvToolsConfig.py:51
python.OverlayCopyAlgsConfig.CopyTrackRecordCollectionsCfg
def CopyTrackRecordCollectionsCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:469
python.DigitizationParametersConfig.writeDigitizationParameters
def writeDigitizationParameters(flags)
Definition: DigitizationParametersConfig.py:96
TTL1OverlayConfig.TileTTL1OverlayCfg
def TileTTL1OverlayCfg(flags, name="TileTTL1Overlay", **kwargs)
Definition: TTL1OverlayConfig.py:51
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.OverlayCopyAlgsConfig.CopyITkStripClusterContainerCfg
def CopyITkStripClusterContainerCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:445
PixelOverlayConfig.PixelOverlayCfg
def PixelOverlayCfg(flags)
Definition: PixelOverlayConfig.py:85
python.LArDigitizationConfig.LArSuperCellOverlayCfg
def LArSuperCellOverlayCfg(flags, **kwargs)
Definition: LArDigitizationConfig.py:403
python.MuonOverlayConfig.MuonOverlayCfg
def MuonOverlayCfg(configFlags)
Definition: MuonOverlayConfig.py:2
SCTOverlayConfig.SCTOverlayCfg
def SCTOverlayCfg(flags)
Definition: SCTOverlayConfig.py:86
TileDigitizationConfig.TileDigitizationCfg
def TileDigitizationCfg(flags)
Definition: TileDigitizationConfig.py:46
python.EventIdOverrideConfig.IOVDbMetaDataToolWithRunNumberOverrideCfg
def IOVDbMetaDataToolWithRunNumberOverrideCfg(flags)
Definition: EventIdOverrideConfig.py:131
TRTOverlayConfig.TRTOverlayCfg
def TRTOverlayCfg(flags)
Definition: TRTOverlayConfig.py:113
python.OverlaySteering.OverlayMainCfg
def OverlayMainCfg(configFlags)
Definition: OverlaySteering.py:19
BeamEffectsAlgConfig.BeamSpotReweightingAlgCfg
def BeamSpotReweightingAlgCfg(flags, name="BeamSpotReweightingAlg", **kwargs)
Definition: BeamEffectsAlgConfig.py:177
python.OverlayCopyAlgsConfig.CopyJetTruthInfoCfg
def CopyJetTruthInfoCfg(flags, **kwargs)
Definition: OverlayCopyAlgsConfig.py:104
python.xAODEventInfoCnvConfig.EventInfoOverlayCfg
def EventInfoOverlayCfg(flags, **kwargs)
Definition: xAODEventInfoCnvConfig.py:75
PLR_OverlayConfig.PLR_OverlayCfg
def PLR_OverlayCfg(flags)
Definition: PLR_OverlayConfig.py:78
ITkPixelOverlayConfig.ITkPixelOverlayCfg
def ITkPixelOverlayCfg(flags)
Definition: ITkPixelOverlayConfig.py:84
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
HGTD_OverlayConfig.HGTD_OverlayCfg
def HGTD_OverlayCfg(flags)
Definition: HGTD_OverlayConfig.py:72
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69