ATLAS Offline Software
Functions | Variables
python.ISF_MainConfig Namespace Reference

Functions

def Kernel_GenericSimulatorMTCfg (flags, name="ISF_Kernel_GenericSimulatorMT", **kwargs)
 
def Kernel_GenericSimulatorNoG4MTCfg (flags, name="ISF_Kernel_GenericSimulatorNoG4MT", **kwargs)
 
def Kernel_GenericG4OnlyMTCfg (flags, name="ISF_Kernel_GenericG4OnlyMT", **kwargs)
 
def Kernel_FullG4MTCfg (flags, name="ISF_Kernel_FullG4MT", **kwargs)
 
def Kernel_FullG4MT_QSCfg (flags, name="ISF_Kernel_FullG4MT_QS", **kwargs)
 
def Kernel_PassBackG4MTCfg (flags, name="ISF_Kernel_PassBackG4MT", **kwargs)
 
def Kernel_ATLFAST3MTCfg (flags, name="ISF_Kernel_ATLFAST3MT", **kwargs)
 
def Kernel_ATLFAST3MT_QSCfg (flags, name="ISF_Kernel_ATLFAST3MT_QS", **kwargs)
 
def Kernel_GenericSimulatorCfg (flags, name="ISF_Kernel_GenericSimulator", **kwargs)
 
def Kernel_ATLFAST3F_G4MSCfg (flags, name="ISF_Kernel_ATLFAST3F_G4MS", **kwargs)
 
def Kernel_ATLFAST3F_ACTSMTCfg (flags, name="ISF_Kernel_ATLFAST3F_ACTSMT", **kwargs)
 
def Kernel_CosmicsG4Cfg (flags, name="ISF_Kernel_CosmicsG4", **kwargs)
 
def ISF_KernelCfg (flags)
 

Variables

 AthSequencer = CompFactory.AthSequencer
 

Detailed Description

Main ISF tools configuration with ComponentAccumulator

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

Function Documentation

◆ ISF_KernelCfg()

def python.ISF_MainConfig.ISF_KernelCfg (   flags)

Definition at line 378 of file ISF_MainConfig.py.

378 def ISF_KernelCfg(flags):
379  cfg = ComponentAccumulator()
380  # Write MetaData container
381  cfg.merge(writeSimulationParametersMetadata(flags))
382  # Also allow reading it
383  cfg.merge(readSimulationParameters(flags)) # for FileMetaData creation
384 
385  from SimulationConfig.SimEnums import SimulationFlavour
386  if flags.Sim.ISF.Simulator is SimulationFlavour.FullG4MT:
387  cfg.merge(Kernel_FullG4MTCfg(flags))
388  elif flags.Sim.ISF.Simulator is SimulationFlavour.FullG4MT_QS:
389  cfg.merge(Kernel_FullG4MT_QSCfg(flags))
390  elif flags.Sim.ISF.Simulator is SimulationFlavour.PassBackG4MT:
391  cfg.merge(Kernel_PassBackG4MTCfg(flags))
392  elif flags.Sim.ISF.Simulator is SimulationFlavour.ATLFAST3MT:
393  cfg.merge(Kernel_ATLFAST3MTCfg(flags))
394  elif flags.Sim.ISF.Simulator is SimulationFlavour.ATLFAST3MT_QS:
395  cfg.merge(Kernel_ATLFAST3MT_QSCfg(flags))
396  elif flags.Sim.ISF.Simulator is SimulationFlavour.ATLFAST3F_G4MS:
397  cfg.merge(Kernel_ATLFAST3F_G4MSCfg(flags))
398  elif flags.Sim.ISF.Simulator is SimulationFlavour.ATLFAST3F_ACTSMT:
399  cfg.merge(Kernel_ATLFAST3F_ACTSMTCfg(flags))
400  elif flags.Sim.ISF.Simulator is SimulationFlavour.CosmicsG4:
401  cfg.merge(Kernel_CosmicsG4Cfg(flags))
402  else:
403  raise ValueError('Unknown Simulator set, bailing out')
404 
405  return cfg

◆ Kernel_ATLFAST3F_ACTSMTCfg()

def python.ISF_MainConfig.Kernel_ATLFAST3F_ACTSMTCfg (   flags,
  name = "ISF_Kernel_ATLFAST3F_ACTSMT",
**  kwargs 
)

Definition at line 317 of file ISF_MainConfig.py.

317 def Kernel_ATLFAST3F_ACTSMTCfg(flags, name="ISF_Kernel_ATLFAST3F_ACTSMT", **kwargs):
318  acc = ComponentAccumulator()
319  kwargs.setdefault("ParticleOrderingTool", acc.popToolsAndMerge(ParticleOrderingToolCfg(flags)))
320 
321  kwargs.setdefault("EntryLayerTool", acc.addPublicTool(acc.popToolsAndMerge(ATLFAST_EntryLayerToolMTCfg(flags)))) # public ToolHandle
322  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs)) # Workaround
323 
324  # BeamPipeSimulationSelectors
325  defPartKillerSelector = acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags)))
326  kwargs.setdefault("BeamPipeSimulationSelectors", [ defPartKillerSelector ])
327  # IDSimulationSelectors
328  kwargs.setdefault("IDSimulationSelectors", [
329  acc.addPublicTool(acc.popToolsAndMerge(DefaultActsSelectorCfg(flags))),
330  defPartKillerSelector
331  ])
332  # CaloSimulationSelectors
333  kwargs.setdefault("CaloSimulationSelectors", [
334  acc.addPublicTool(acc.popToolsAndMerge(MuonATLFAST_Geant4SelectorCfg(flags))),
335  acc.addPublicTool(acc.popToolsAndMerge(EtaGreater5ParticleKillerSimSelectorCfg(flags))),
336  acc.addPublicTool(acc.popToolsAndMerge(PionATLFAST_Geant4SelectorCfg(flags))),
337  acc.addPublicTool(acc.popToolsAndMerge(ProtonATLFAST_Geant4SelectorCfg(flags))),
338  acc.addPublicTool(acc.popToolsAndMerge(NeutronATLFAST_Geant4SelectorCfg(flags))),
339  acc.addPublicTool(acc.popToolsAndMerge(ChargedKaonATLFAST_Geant4SelectorCfg(flags))),
340  acc.addPublicTool(acc.popToolsAndMerge(KLongATLFAST_Geant4SelectorCfg(flags))),
341  acc.addPublicTool(acc.popToolsAndMerge(DefaultFastCaloSimV2SelectorCfg(flags)))
342  ])
343  # MSSimulationSelectors
344  kwargs.setdefault("MSSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultATLFAST_Geant4SelectorCfg(flags))) ])
345  # CavernSimulationSelectors
346  kwargs.setdefault("CavernSimulationSelectors", [ defPartKillerSelector ])
347 
348  from ISF_FastCaloSimServices.ISF_FastCaloSimServicesConfig import FastCaloSimV2ToolCfg
349  from ISF_ActsTools.ISF_ActsToolsConfig import ActsFatrasSimToolCfg
350  kwargs.setdefault("SimulationTools", [
351  acc.popToolsAndMerge(ActsFatrasSimToolCfg(flags)),
352  acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
353  acc.popToolsAndMerge(FastCaloSimV2ToolCfg(flags)),
354  acc.popToolsAndMerge(ATLFAST_Geant4ToolCfg(flags))
355  ])
356 
357  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs))
358  return acc
359 
360 

◆ Kernel_ATLFAST3F_G4MSCfg()

def python.ISF_MainConfig.Kernel_ATLFAST3F_G4MSCfg (   flags,
  name = "ISF_Kernel_ATLFAST3F_G4MS",
**  kwargs 
)

Definition at line 293 of file ISF_MainConfig.py.

293 def Kernel_ATLFAST3F_G4MSCfg(flags, name="ISF_Kernel_ATLFAST3F_G4MS", **kwargs):
294  acc = ComponentAccumulator()
295  acc.merge(Kernel_GenericSimulatorCfg(flags, name, **kwargs)) # Force the SimKernel to be before the CollectionMerger by adding it here
296 
297  kwargs.setdefault("BeamPipeSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags))) ])
298  kwargs.setdefault("IDSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultFatrasSelectorCfg(flags))) ])
299  kwargs.setdefault("CaloSimulationSelectors", [
300  acc.addPublicTool(acc.popToolsAndMerge(MuonATLFAST_Geant4SelectorCfg(flags))),
301  acc.addPublicTool(acc.popToolsAndMerge(EtaGreater5ParticleKillerSimSelectorCfg(flags))),
302  acc.addPublicTool(acc.popToolsAndMerge(PionATLFAST_Geant4SelectorCfg(flags))),
303  acc.addPublicTool(acc.popToolsAndMerge(ProtonATLFAST_Geant4SelectorCfg(flags))),
304  acc.addPublicTool(acc.popToolsAndMerge(NeutronATLFAST_Geant4SelectorCfg(flags))),
305  acc.addPublicTool(acc.popToolsAndMerge(ChargedKaonATLFAST_Geant4SelectorCfg(flags))),
306  acc.addPublicTool(acc.popToolsAndMerge(KLongATLFAST_Geant4SelectorCfg(flags))),
307  acc.addPublicTool(acc.popToolsAndMerge(DefaultFastCaloSimV2SelectorCfg(flags)))
308  ])
309  kwargs.setdefault("MSSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultATLFAST_Geant4SelectorCfg(flags))) ])
310  kwargs.setdefault("CavernSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags))) ])
311  #simFlags.SimulationFlavour = "ATLFAST3F_G4MS" # not migrated
312 
313  acc.merge(Kernel_GenericSimulatorCfg(flags, name, **kwargs)) # Merge properly configured SimKernel here and let deduplication sort it out.
314  return acc
315 
316 

◆ Kernel_ATLFAST3MT_QSCfg()

def python.ISF_MainConfig.Kernel_ATLFAST3MT_QSCfg (   flags,
  name = "ISF_Kernel_ATLFAST3MT_QS",
**  kwargs 
)

Definition at line 218 of file ISF_MainConfig.py.

218 def Kernel_ATLFAST3MT_QSCfg(flags, name="ISF_Kernel_ATLFAST3MT_QS", **kwargs):
219  acc = ComponentAccumulator()
220  kwargs.setdefault("ParticleOrderingTool", acc.popToolsAndMerge(ParticleOrderingToolCfg(flags)))
221 
222  kwargs.setdefault("EntryLayerTool", acc.addPublicTool(acc.popToolsAndMerge(ATLFAST_EntryLayerToolMTCfg(flags)))) # public ToolHandle
223  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs)) # Workaround
224 
225  # BeamPipe, ID, MS Simulation Selectors
226  defaultG4SelectorRegions = set(["BeamPipeSimulationSelectors", "IDSimulationSelectors", "MSSimulationSelectors"])
227  if defaultG4SelectorRegions - kwargs.keys(): # i.e. if any of these have not been defined yet
228  pubTool = acc.addPublicTool(acc.popToolsAndMerge(DefaultATLFAST_Geant4SelectorCfg(flags)))
229  kwargs.setdefault("BeamPipeSimulationSelectors", [pubTool])
230  kwargs.setdefault("IDSimulationSelectors", [pubTool])
231  kwargs.setdefault("MSSimulationSelectors", [pubTool])
232 
233  # CaloSimulationSelectors
234  kwargs.setdefault("CaloSimulationSelectors", [
235  acc.addPublicTool(acc.popToolsAndMerge(MuonATLFAST_Geant4SelectorCfg(flags))),
236  acc.addPublicTool(acc.popToolsAndMerge(EtaGreater5ParticleKillerSimSelectorCfg(flags))),
237  acc.addPublicTool(acc.popToolsAndMerge(PionATLFAST_Geant4SelectorCfg(flags))),
238  acc.addPublicTool(acc.popToolsAndMerge(ProtonATLFAST_Geant4SelectorCfg(flags))),
239  acc.addPublicTool(acc.popToolsAndMerge(NeutronATLFAST_Geant4SelectorCfg(flags))),
240  acc.addPublicTool(acc.popToolsAndMerge(ChargedKaonATLFAST_Geant4SelectorCfg(flags))),
241  acc.addPublicTool(acc.popToolsAndMerge(KLongATLFAST_Geant4SelectorCfg(flags))),
242  acc.addPublicTool(acc.popToolsAndMerge(DefaultFastCaloSimV2SelectorCfg(flags)))
243  ])
244 
245  # CavernSimulationSelectors
246  kwargs.setdefault("CavernSimulationSelectors",
247  [ acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags))) ])
248 
249  from ISF_FastCaloSimServices.ISF_FastCaloSimServicesConfig import FastCaloSimV2ToolCfg
250  kwargs.setdefault("SimulationTools", [ acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
251  acc.popToolsAndMerge(FastCaloSimV2ToolCfg(flags)),
252  acc.popToolsAndMerge(ATLFAST_Geant4ToolCfg(flags)) ])
253  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs))
254  return acc
255 
256 

◆ Kernel_ATLFAST3MTCfg()

def python.ISF_MainConfig.Kernel_ATLFAST3MTCfg (   flags,
  name = "ISF_Kernel_ATLFAST3MT",
**  kwargs 
)

Definition at line 177 of file ISF_MainConfig.py.

177 def Kernel_ATLFAST3MTCfg(flags, name="ISF_Kernel_ATLFAST3MT", **kwargs):
178  acc = ComponentAccumulator()
179  kwargs.setdefault("ParticleOrderingTool", acc.popToolsAndMerge(ParticleOrderingToolCfg(flags)))
180 
181  kwargs.setdefault("EntryLayerTool", acc.addPublicTool(acc.popToolsAndMerge(ATLFAST_EntryLayerToolMTCfg(flags)))) # public ToolHandle
182  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs)) # Workaround
183 
184  # BeamPipe, ID, MS Simulation Selectors
185  defaultG4SelectorRegions = set(["BeamPipeSimulationSelectors", "IDSimulationSelectors", "MSSimulationSelectors"])
186  if defaultG4SelectorRegions - kwargs.keys(): # i.e. if any of these have not been defined yet
187  pubTool = acc.addPublicTool(acc.popToolsAndMerge(DefaultATLFAST_Geant4SelectorCfg(flags)))
188  kwargs.setdefault("BeamPipeSimulationSelectors", [pubTool])
189  kwargs.setdefault("IDSimulationSelectors", [pubTool])
190  kwargs.setdefault("MSSimulationSelectors", [pubTool])
191 
192  # CaloSimulationSelectors
193  kwargs.setdefault("CaloSimulationSelectors", [
194  acc.addPublicTool(acc.popToolsAndMerge(MuonATLFAST_Geant4SelectorCfg(flags))),
195  acc.addPublicTool(acc.popToolsAndMerge(EtaGreater5ParticleKillerSimSelectorCfg(flags))),
196  acc.addPublicTool(acc.popToolsAndMerge(PionATLFAST_Geant4SelectorCfg(flags))),
197  acc.addPublicTool(acc.popToolsAndMerge(ProtonATLFAST_Geant4SelectorCfg(flags))),
198  acc.addPublicTool(acc.popToolsAndMerge(NeutronATLFAST_Geant4SelectorCfg(flags))),
199  acc.addPublicTool(acc.popToolsAndMerge(ChargedKaonATLFAST_Geant4SelectorCfg(flags))),
200  acc.addPublicTool(acc.popToolsAndMerge(KLongATLFAST_Geant4SelectorCfg(flags))),
201  acc.addPublicTool(acc.popToolsAndMerge(DefaultFastCaloSimV2SelectorCfg(flags)))
202  ])
203 
204  # CavernSimulationSelectors
205  kwargs.setdefault("CavernSimulationSelectors", [ acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags))) ])
206 
207  from ISF_FastCaloSimServices.ISF_FastCaloSimServicesConfig import FastCaloSimV2ToolCfg
208  kwargs.setdefault("SimulationTools", [
209  acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
210  acc.popToolsAndMerge(FastCaloSimV2ToolCfg(flags)),
211  acc.popToolsAndMerge(ATLFAST_Geant4ToolCfg(flags))
212  ])
213 
214  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs))
215  return acc
216 
217 

◆ Kernel_CosmicsG4Cfg()

def python.ISF_MainConfig.Kernel_CosmicsG4Cfg (   flags,
  name = "ISF_Kernel_CosmicsG4",
**  kwargs 
)

Definition at line 361 of file ISF_MainConfig.py.

361 def Kernel_CosmicsG4Cfg(flags, name="ISF_Kernel_CosmicsG4", **kwargs):
362  acc = ComponentAccumulator()
363  from ISF_Tools.ISF_ToolsConfig import CosmicEventFilterToolCfg
364  kwargs.setdefault("EventFilterTools" , [ acc.addPublicTool(acc.popToolsAndMerge(CosmicEventFilterToolCfg(flags))) ] )
365  kwargs.setdefault("ParticleBroker", acc.getPrimaryAndMerge(ParticleBrokerSvcNoOrderingCfg(flags)).name)
366  kwargs.setdefault("MaximumParticleVectorSize" , 1000000)
367  pubTool = acc.addPublicTool(acc.popToolsAndMerge(FullGeant4SelectorCfg(flags)))
368  kwargs.setdefault("BeamPipeSimulationSelectors" , [ pubTool ] )
369  kwargs.setdefault("IDSimulationSelectors" , [ pubTool ] )
370  kwargs.setdefault("CaloSimulationSelectors" , [ pubTool ] )
371  kwargs.setdefault("MSSimulationSelectors" , [ pubTool ] )
372  kwargs.setdefault("CavernSimulationSelectors" , [ pubTool ] )
373  kwargs.setdefault("DoMemoryMonitoring", False)
374  acc.merge(Kernel_GenericSimulatorCfg(flags, name, **kwargs)) # Merge properly configured SimKernel here and let deduplication sort it out.
375  return acc
376 
377 

◆ Kernel_FullG4MT_QSCfg()

def python.ISF_MainConfig.Kernel_FullG4MT_QSCfg (   flags,
  name = "ISF_Kernel_FullG4MT_QS",
**  kwargs 
)

Definition at line 136 of file ISF_MainConfig.py.

136 def Kernel_FullG4MT_QSCfg(flags, name="ISF_Kernel_FullG4MT_QS", **kwargs):
137  acc = ComponentAccumulator()
138 
139  kwargs.setdefault("SimulationTools", [
140  acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
141  acc.popToolsAndMerge(FullGeant4ToolCfg(flags))
142  ]) #private ToolHandleArray
143 
144  acc.merge(Kernel_GenericG4OnlyMTCfg(flags, name, **kwargs))
145  return acc
146 
147 

◆ Kernel_FullG4MTCfg()

def python.ISF_MainConfig.Kernel_FullG4MTCfg (   flags,
  name = "ISF_Kernel_FullG4MT",
**  kwargs 
)

Definition at line 123 of file ISF_MainConfig.py.

123 def Kernel_FullG4MTCfg(flags, name="ISF_Kernel_FullG4MT", **kwargs):
124  acc = ComponentAccumulator()
125 
126  if "SimulationTools" not in kwargs:
127  kwargs.setdefault("SimulationTools", [
128  acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
129  acc.popToolsAndMerge(FullGeant4ToolCfg(flags))
130  ]) #private ToolHandleArray
131 
132  acc.merge(Kernel_GenericG4OnlyMTCfg(flags, name, **kwargs))
133  return acc
134 
135 

◆ Kernel_GenericG4OnlyMTCfg()

def python.ISF_MainConfig.Kernel_GenericG4OnlyMTCfg (   flags,
  name = "ISF_Kernel_GenericG4OnlyMT",
**  kwargs 
)

Definition at line 102 of file ISF_MainConfig.py.

102 def Kernel_GenericG4OnlyMTCfg(flags, name="ISF_Kernel_GenericG4OnlyMT", **kwargs):
103  acc = ComponentAccumulator()
104 
105  defaultG4SelectorRegions = set(["BeamPipeSimulationSelectors", "IDSimulationSelectors", "CaloSimulationSelectors", "MSSimulationSelectors"])
106  if flags.Detector.GeometryCavern:
107  # If we are simulating the cavern then we want to use the FullGeant4Selector here too
108  defaultG4SelectorRegions.add("CavernSimulationSelectors")
109  if defaultG4SelectorRegions - kwargs.keys(): # i.e. if any of these have not been defined yet
110  pubTool = acc.addPublicTool(acc.popToolsAndMerge(FullGeant4SelectorCfg(flags)))
111  # SimulationSelectors are still public ToolHandleArrays currently
112  for selectorRegion in defaultG4SelectorRegions:
113  kwargs.setdefault(selectorRegion, [pubTool])
114 
115  if "CavernSimulationSelectors" not in kwargs:
116  kwargs.setdefault("CavernSimulationSelectors",
117  [acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags)))])
118 
119  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs))
120  return acc
121 
122 

◆ Kernel_GenericSimulatorCfg()

def python.ISF_MainConfig.Kernel_GenericSimulatorCfg (   flags,
  name = "ISF_Kernel_GenericSimulator",
**  kwargs 
)

Definition at line 257 of file ISF_MainConfig.py.

257 def Kernel_GenericSimulatorCfg(flags, name="ISF_Kernel_GenericSimulator", **kwargs):
258  acc = ComponentAccumulator()
259  kwargs.setdefault("UseShadowEvent", flags.Sim.UseShadowEvent)
260  if flags.Sim.UseShadowEvent and "TruthPreselectionTool" not in kwargs:
261  from ISF_HepMC_Tools.ISF_HepMC_ToolsConfig import TruthPreselectionToolCfg
262  kwargs.setdefault( "TruthPreselectionTool", acc.popToolsAndMerge(TruthPreselectionToolCfg(flags)) )
263 
264  if "TruthRecordService" not in kwargs:
265  kwargs.setdefault("TruthRecordService", acc.getPrimaryAndMerge(TruthServiceCfg(flags)).name)
266 
267  if "MemoryMonitoringTool" not in kwargs:
268  kwargs.setdefault("MemoryMonitoringTool", acc.addPublicTool(acc.popToolsAndMerge(MemoryMonitorToolCfg(flags))))
269 
270  if "ParticleBroker" not in kwargs:
271  kwargs.setdefault("ParticleBroker", acc.getPrimaryAndMerge(ATLFAST_ParticleBrokerSvcCfg(flags)).name)
272 
273  if flags.Sim.ISF.Simulator.isQuasiStable():
274  if "QuasiStablePatcher" not in kwargs:
275  from BeamEffects.BeamEffectsAlgConfig import ZeroLifetimePositionerCfg
276  kwargs.setdefault("QuasiStablePatcher", acc.getPrimaryAndMerge(ZeroLifetimePositionerCfg(flags)) )
277  if "InputConverter" not in kwargs:
278  kwargs.setdefault("InputConverter", acc.getPrimaryAndMerge(InputConverterCfg(flags)).name)
279 
280  kwargs.setdefault("InputHardScatterCollection", "BeamTruthEvent")
281  kwargs.setdefault("OutputHardScatterTruthCollection", "TruthEvent")
282  kwargs.setdefault("DoCPUMonitoring", flags.Sim.ISF.DoTimeMonitoring)
283  kwargs.setdefault("DoMemoryMonitoring", flags.Sim.ISF.DoMemoryMonitoring)
284 
285  if flags.Sim.ISF.ReSimulation:
286  acc.addSequence(AthSequencer('SimSequence'), parentName='AthAlgSeq') # TODO make the name configurable?
287  acc.addEventAlgo(CompFactory.ISF.SimKernel(name, **kwargs), 'SimSequence') # TODO make the name configurable?
288  else:
289  acc.addEventAlgo(CompFactory.ISF.SimKernel(name, **kwargs))
290  return acc
291 
292 

◆ Kernel_GenericSimulatorMTCfg()

def python.ISF_MainConfig.Kernel_GenericSimulatorMTCfg (   flags,
  name = "ISF_Kernel_GenericSimulatorMT",
**  kwargs 
)

Definition at line 45 of file ISF_MainConfig.py.

45 def Kernel_GenericSimulatorMTCfg(flags, name="ISF_Kernel_GenericSimulatorMT", **kwargs):
46  acc = ComponentAccumulator()
47  kwargs.setdefault("UseShadowEvent", flags.Sim.UseShadowEvent)
48  if flags.Sim.UseShadowEvent and "TruthPreselectionTool" not in kwargs:
49  from ISF_HepMC_Tools.ISF_HepMC_ToolsConfig import TruthPreselectionToolCfg
50  kwargs.setdefault("TruthPreselectionTool", acc.popToolsAndMerge(TruthPreselectionToolCfg(flags)))
51 
52  if "GeoIDSvc" not in kwargs:
53  kwargs.setdefault("GeoIDSvc", acc.getPrimaryAndMerge(GeoIDSvcCfg(flags)).name)
54 
55  if "TruthRecordService" not in kwargs:
56  kwargs.setdefault("TruthRecordService", acc.getPrimaryAndMerge(TruthServiceCfg(flags)).name)
57 
58  if "EntryLayerTool" not in kwargs:
59  kwargs.setdefault("EntryLayerTool", acc.addPublicTool(acc.popToolsAndMerge(EntryLayerToolMTCfg(flags))))
60 
61  from AthenaConfiguration.Enums import ProductionStep
62  if flags.Common.ProductionStep == ProductionStep.FastChain:
63  if flags.Digitization.PileUp:
64  OEsvc = CompFactory.StoreGateSvc("OriginalEvent_SG")
65  acc.addService(OEsvc)
66  kwargs.setdefault("EvtStore", OEsvc.name) # TODO check this is correct
67 
68  kwargs.setdefault("Cardinality", flags.Concurrency.NumThreads)
69  kwargs.setdefault("InputEvgenCollection", "BeamTruthEvent")
70  kwargs.setdefault("OutputTruthCollection", "TruthEvent")
71  from SimulationConfig.SimEnums import CalibrationRun
72  from G4AtlasTools.G4AtlasToolsConfig import SimHitContainerListCfg, InputContainerListCfg
73  ExtraOutputs = SimHitContainerListCfg(flags)
74  if flags.Sim.CalibrationRun in [CalibrationRun.LAr, CalibrationRun.LArTile, CalibrationRun.LArTileZDC]:
75  # Needed to ensure that DeadMaterialCalibrationHitsMerger is scheduled correctly.
76  ExtraOutputs+=[
77  ( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitActive_DEAD' ),
78  ( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitDeadMaterial_DEAD' ),
79  ( 'CaloCalibrationHitContainer', 'StoreGateSvc+LArCalibrationHitInactive_DEAD' )
80  ]
81  kwargs.setdefault("ExtraOutputs", ExtraOutputs )
82  kwargs.setdefault("ExtraInputs" , InputContainerListCfg(flags))
83  if flags.Sim.ISF.Simulator.isQuasiStable():
84  if "QuasiStablePatcher" not in kwargs:
85  from BeamEffects.BeamEffectsAlgConfig import ZeroLifetimePositionerCfg
86  kwargs.setdefault("QuasiStablePatcher", acc.getPrimaryAndMerge(ZeroLifetimePositionerCfg(flags)))
87  if "InputConverter" not in kwargs:
88  kwargs.setdefault("InputConverter", acc.getPrimaryAndMerge(InputConverterCfg(flags)).name)
89 
90  if flags.Sim.ISF.ReSimulation:
91  acc.addSequence(AthSequencer('SimSequence'), parentName='AthAlgSeq') # TODO make the name configurable?
92  acc.addEventAlgo(CompFactory.ISF.SimKernelMT(name, **kwargs), 'SimSequence') # TODO make the name configurable?
93  else:
94  acc.addEventAlgo(CompFactory.ISF.SimKernelMT(name, **kwargs))
95  return acc
96 
97 

◆ Kernel_GenericSimulatorNoG4MTCfg()

def python.ISF_MainConfig.Kernel_GenericSimulatorNoG4MTCfg (   flags,
  name = "ISF_Kernel_GenericSimulatorNoG4MT",
**  kwargs 
)

Definition at line 98 of file ISF_MainConfig.py.

98 def Kernel_GenericSimulatorNoG4MTCfg(flags, name="ISF_Kernel_GenericSimulatorNoG4MT", **kwargs):
99  return Kernel_GenericSimulatorMTCfg(flags, name, **kwargs)
100 
101 

◆ Kernel_PassBackG4MTCfg()

def python.ISF_MainConfig.Kernel_PassBackG4MTCfg (   flags,
  name = "ISF_Kernel_PassBackG4MT",
**  kwargs 
)

Definition at line 148 of file ISF_MainConfig.py.

148 def Kernel_PassBackG4MTCfg(flags, name="ISF_Kernel_PassBackG4MT", **kwargs):
149  acc = ComponentAccumulator()
150  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs)) # Workaround
151 
152  defaultG4SelectorRegions = set(["BeamPipeSimulationSelectors", "IDSimulationSelectors", "CaloSimulationSelectors", "MSSimulationSelectors"])
153  if defaultG4SelectorRegions - kwargs.keys(): # i.e. if any of these have not been defined yet
154  passBackG4Selector = acc.addPublicTool(acc.popToolsAndMerge(PassBackGeant4SelectorCfg(flags)))
155  kwargs.setdefault("BeamPipeSimulationSelectors", [passBackG4Selector])
156  kwargs.setdefault("IDSimulationSelectors", [passBackG4Selector])
157  kwargs.setdefault("CaloSimulationSelectors", [passBackG4Selector])
158  kwargs.setdefault("MSSimulationSelectors", [passBackG4Selector])
159 
160  if "CavernSimulationSelectors" not in kwargs:
161  kwargs.setdefault("CavernSimulationSelectors",
162  [acc.addPublicTool(acc.popToolsAndMerge(DefaultParticleKillerSelectorCfg(flags)))])
163 
164  if "SimulationTools" not in kwargs:
165  kwargs.setdefault("SimulationTools", [
166  acc.popToolsAndMerge(ParticleKillerToolCfg(flags)),
167  acc.popToolsAndMerge(PassBackGeant4ToolCfg(flags))
168  ])
169 
170  if "ParticleOrderingTool" not in kwargs:
171  kwargs.setdefault("ParticleOrderingTool", acc.popToolsAndMerge(EnergyParticleOrderingToolCfg(flags)))
172 
173  acc.merge(Kernel_GenericSimulatorMTCfg(flags, name, **kwargs))
174  return acc
175 
176 

Variable Documentation

◆ AthSequencer

python.ISF_MainConfig.AthSequencer = CompFactory.AthSequencer

Definition at line 42 of file ISF_MainConfig.py.

python.ISF_MainConfig.Kernel_ATLFAST3MT_QSCfg
def Kernel_ATLFAST3MT_QSCfg(flags, name="ISF_Kernel_ATLFAST3MT_QS", **kwargs)
Definition: ISF_MainConfig.py:218
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
ISF_SimulationSelectorsConfig.PassBackGeant4SelectorCfg
def PassBackGeant4SelectorCfg(flags, name="ISF_PassBackGeant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:54
python.SimulationMetadata.readSimulationParameters
def readSimulationParameters(flags)
Definition: SimulationMetadata.py:96
ISF_ServicesConfig.ATLFAST_ParticleBrokerSvcCfg
def ATLFAST_ParticleBrokerSvcCfg(flags, name="ISF_ATLFAST_ParticleBrokerSvc", **kwargs)
Definition: ISF_ServicesConfig.py:70
python.ISF_Geant4ToolsConfig.FullGeant4ToolCfg
def FullGeant4ToolCfg(flags, name="ISF_FullGeant4Tool", **kwargs)
Definition: ISF_Geant4ToolsConfig.py:68
python.ISF_MainConfig.Kernel_FullG4MTCfg
def Kernel_FullG4MTCfg(flags, name="ISF_Kernel_FullG4MT", **kwargs)
Definition: ISF_MainConfig.py:123
ISF_SimulationSelectorsConfig.KLongATLFAST_Geant4SelectorCfg
def KLongATLFAST_Geant4SelectorCfg(flags, name="ISF_KLongATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:201
ISF_SimulationSelectorsConfig.NeutronATLFAST_Geant4SelectorCfg
def NeutronATLFAST_Geant4SelectorCfg(flags, name="ISF_NeutronATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:187
python.ISF_MainConfig.Kernel_ATLFAST3F_ACTSMTCfg
def Kernel_ATLFAST3F_ACTSMTCfg(flags, name="ISF_Kernel_ATLFAST3F_ACTSMT", **kwargs)
Definition: ISF_MainConfig.py:317
ISF_ToolsConfig.EnergyParticleOrderingToolCfg
def EnergyParticleOrderingToolCfg(flags, name="ISF_EnergyParticleOrderingTool", **kwargs)
Definition: ISF_ToolsConfig.py:147
ISF_Geant4CommonToolsConfig.ATLFAST_EntryLayerToolMTCfg
def ATLFAST_EntryLayerToolMTCfg(flags, name="ISF_ATLFAST_EntryLayerToolMT", **kwargs)
Definition: ISF_Geant4CommonToolsConfig.py:73
ISF_SimulationSelectorsConfig.DefaultActsSelectorCfg
def DefaultActsSelectorCfg(flags, name="ISF_DefaultActsSelector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:112
ISF_SimulationSelectorsConfig.PionATLFAST_Geant4SelectorCfg
def PionATLFAST_Geant4SelectorCfg(flags, name="ISF_PionATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:180
python.ISF_MainConfig.Kernel_ATLFAST3MTCfg
def Kernel_ATLFAST3MTCfg(flags, name="ISF_Kernel_ATLFAST3MT", **kwargs)
Definition: ISF_MainConfig.py:177
ISF_ToolsConfig.ParticleKillerToolCfg
def ParticleKillerToolCfg(flags, name="ISF_ParticleKillerTool", **kwargs)
Definition: ISF_ToolsConfig.py:153
python.ISF_MainConfig.Kernel_GenericSimulatorNoG4MTCfg
def Kernel_GenericSimulatorNoG4MTCfg(flags, name="ISF_Kernel_GenericSimulatorNoG4MT", **kwargs)
Definition: ISF_MainConfig.py:98
ISF_SimulationSelectorsConfig.DefaultFastCaloSimV2SelectorCfg
def DefaultFastCaloSimV2SelectorCfg(flags, name="ISF_DefaultFastCaloSimV2Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:73
ISF_HepMC_ToolsConfig.TruthPreselectionToolCfg
def TruthPreselectionToolCfg(flags, name="TruthPreselectionTool", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:165
ISF_ServicesConfig.ParticleBrokerSvcNoOrderingCfg
def ParticleBrokerSvcNoOrderingCfg(flags, name="ISF_ParticleBrokerSvcNoOrdering", **kwargs)
Definition: ISF_ServicesConfig.py:45
ISF_SimulationSelectorsConfig.DefaultFatrasSelectorCfg
def DefaultFatrasSelectorCfg(flags, name="ISF_DefaultFatrasSelector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:102
ISF_Geant4CommonToolsConfig.EntryLayerToolMTCfg
def EntryLayerToolMTCfg(flags, name="ISF_EntryLayerToolMT", **kwargs)
Definition: ISF_Geant4CommonToolsConfig.py:35
python.ISF_MainConfig.ISF_KernelCfg
def ISF_KernelCfg(flags)
Definition: ISF_MainConfig.py:378
ISF_SimulationSelectorsConfig.ChargedKaonATLFAST_Geant4SelectorCfg
def ChargedKaonATLFAST_Geant4SelectorCfg(flags, name="ISF_ChargedKaonATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:194
python.ISF_MainConfig.Kernel_FullG4MT_QSCfg
def Kernel_FullG4MT_QSCfg(flags, name="ISF_Kernel_FullG4MT_QS", **kwargs)
Definition: ISF_MainConfig.py:136
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.ISF_MainConfig.Kernel_CosmicsG4Cfg
def Kernel_CosmicsG4Cfg(flags, name="ISF_Kernel_CosmicsG4", **kwargs)
Definition: ISF_MainConfig.py:361
ISF_ServicesConfig.TruthServiceCfg
def TruthServiceCfg(flags, **kwargs)
Definition: ISF_ServicesConfig.py:80
ISF_ToolsConfig.ParticleOrderingToolCfg
def ParticleOrderingToolCfg(flags, name="ISF_ParticleOrderingTool", **kwargs)
Definition: ISF_ToolsConfig.py:136
ISF_ToolsConfig.CosmicEventFilterToolCfg
def CosmicEventFilterToolCfg(flags, name="ISF_CosmicEventFilter", **kwargs)
Definition: ISF_ToolsConfig.py:100
G4AtlasToolsConfig.InputContainerListCfg
def InputContainerListCfg(flags)
Definition: G4AtlasToolsConfig.py:294
python.ISF_MainConfig.Kernel_ATLFAST3F_G4MSCfg
def Kernel_ATLFAST3F_G4MSCfg(flags, name="ISF_Kernel_ATLFAST3F_G4MS", **kwargs)
Definition: ISF_MainConfig.py:293
python.ISF_MainConfig.Kernel_GenericG4OnlyMTCfg
def Kernel_GenericG4OnlyMTCfg(flags, name="ISF_Kernel_GenericG4OnlyMT", **kwargs)
Definition: ISF_MainConfig.py:102
ISF_ToolsConfig.MemoryMonitorToolCfg
def MemoryMonitorToolCfg(flags, name="ISF_MemoryMonitor", **kwargs)
Definition: ISF_ToolsConfig.py:16
python.ISF_Geant4ToolsConfig.ATLFAST_Geant4ToolCfg
def ATLFAST_Geant4ToolCfg(flags, name="ISF_ATLFAST_Geant4Tool", **kwargs)
Definition: ISF_Geant4ToolsConfig.py:84
python.ISF_Geant4ToolsConfig.PassBackGeant4ToolCfg
def PassBackGeant4ToolCfg(flags, name="ISF_PassBackGeant4Tool", **kwargs)
Definition: ISF_Geant4ToolsConfig.py:76
ISF_SimulationSelectorsConfig.ProtonATLFAST_Geant4SelectorCfg
def ProtonATLFAST_Geant4SelectorCfg(flags, name="ISF_ProtonATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:173
python.SimulationMetadata.writeSimulationParametersMetadata
def writeSimulationParametersMetadata(flags)
Definition: SimulationMetadata.py:76
ISF_SimulationSelectorsConfig.MuonATLFAST_Geant4SelectorCfg
def MuonATLFAST_Geant4SelectorCfg(flags, name="ISF_MuonATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:208
ISF_SimulationSelectorsConfig.EtaGreater5ParticleKillerSimSelectorCfg
def EtaGreater5ParticleKillerSimSelectorCfg(flags, name="ISF_EtaGreater5ParticleKillerSimSelector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:220
ISF_ServicesConfig.InputConverterCfg
def InputConverterCfg(flags, name="ISF_InputConverter", **kwargs)
Definition: ISF_ServicesConfig.py:33
MuonG4SDConfig.SimHitContainerListCfg
def SimHitContainerListCfg(flags)
Definition: MuonG4SDConfig.py:48
python.ISF_MainConfig.Kernel_GenericSimulatorCfg
def Kernel_GenericSimulatorCfg(flags, name="ISF_Kernel_GenericSimulator", **kwargs)
Definition: ISF_MainConfig.py:257
ISF_FastCaloSimServicesConfig.FastCaloSimV2ToolCfg
def FastCaloSimV2ToolCfg(flags, name="ISF_FastCaloSimV2Tool", **kwargs)
Definition: ISF_FastCaloSimServicesConfig.py:139
ISF_ActsToolsConfig.ActsFatrasSimToolCfg
def ActsFatrasSimToolCfg(flags, name="ISF_ActsFatrasSimTool", **kwargs)
Definition: ISF_ActsToolsConfig.py:45
ISF_ServicesCoreConfig.GeoIDSvcCfg
def GeoIDSvcCfg(flags, name="ISF_GeoIDSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:22
BeamEffectsAlgConfig.ZeroLifetimePositionerCfg
def ZeroLifetimePositionerCfg(flags, name="ZeroLifetimePositioner", **kwargs)
Definition: BeamEffectsAlgConfig.py:169
ISF_SimulationSelectorsConfig.DefaultParticleKillerSelectorCfg
def DefaultParticleKillerSelectorCfg(flags, name="ISF_DefaultParticleKillerSelector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:16
ISF_SimulationSelectorsConfig.FullGeant4SelectorCfg
def FullGeant4SelectorCfg(flags, name="ISF_FullGeant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:45
ISF_SimulationSelectorsConfig.DefaultATLFAST_Geant4SelectorCfg
def DefaultATLFAST_Geant4SelectorCfg(flags, name="ISF_DefaultATLFAST_Geant4Selector", **kwargs)
Definition: ISF_SimulationSelectorsConfig.py:35
python.ISF_MainConfig.Kernel_GenericSimulatorMTCfg
def Kernel_GenericSimulatorMTCfg(flags, name="ISF_Kernel_GenericSimulatorMT", **kwargs)
Definition: ISF_MainConfig.py:45
python.ISF_MainConfig.Kernel_PassBackG4MTCfg
def Kernel_PassBackG4MTCfg(flags, name="ISF_Kernel_PassBackG4MT", **kwargs)
Definition: ISF_MainConfig.py:148