ATLAS Offline Software
ISF_ServicesCoreConfig.py
Go to the documentation of this file.
1 """ComponentAccumulator core ISF_Service configuration
2 Provides local configuration to be imported without circular dependencies
3 Complements ISF_ServicesConfig
4 
5 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
6 """
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 from AthenaCommon.SystemOfUnits import mm
10 from SubDetectorEnvelopes.SubDetectorEnvelopesConfig import EnvelopeDefSvcCfg
11 from ISF_Tools.ISF_ToolsConfig import ParticleKillerToolCfg
12 
13 
14 def ISFEnvelopeDefSvcCfg(flags, name="ISF_ISFEnvelopeDefSvc", **kwargs):
15  # ATLAS common envlope definitions
17  kwargs.setdefault("ATLASEnvelopeDefSvc", result.getPrimaryAndMerge(EnvelopeDefSvcCfg(flags)).name)
18  result.addService(CompFactory.ISF.ISFEnvelopeDefSvc(name, **kwargs), primary = True)
19  return result
20 
21 
22 def GeoIDSvcCfg(flags, name="ISF_GeoIDSvc", **kwargs):
23  result = ComponentAccumulator()
24  # with ISF volume definitions
25  kwargs.setdefault("EnvelopeDefSvc", result.getPrimaryAndMerge(ISFEnvelopeDefSvcCfg(flags)).name)
26  result.addService(CompFactory.ISF.GeoIDSvc(name, **kwargs), primary = True)
27  return result
28 
29 
30 def ATLFAST_EnvelopeDefSvcCfg(flags, name="ISF_ATLFAST_EnvelopeDefSvc", **kwargs):
31  result = ComponentAccumulator()
32  # ATLAS common envlope definitions
33  kwargs.setdefault("ISFEnvelopeDefSvc", result.getPrimaryAndMerge(ISFEnvelopeDefSvcCfg(flags)).name)
34  kwargs.setdefault("InDetMaxExtentZ", 3549.5*mm)
35  result.addService(CompFactory.ISF.ATLFAST_EnvelopeDefSvc(name, **kwargs), primary = True)
36  return result
37 
38 
39 def ATLFAST_GeoIDSvcCfg(flags, name="ISF_ATLFAST_GeoIDSvc", **kwargs):
40  result = ComponentAccumulator()
41  kwargs.setdefault("EnvelopeDefSvc", result.getPrimaryAndMerge(ATLFAST_EnvelopeDefSvcCfg(flags)).name)
42  result.addService(CompFactory.ISF.GeoIDSvc(name, **kwargs), primary = True)
43  return result
44 
45 
46 # previously in LegacySimServicesConfig
47 def ParticleKillerSvcCfg(flags, name="ISF_ParticleKillerSvc", **kwargs):
48  result = ComponentAccumulator()
49  kwargs.setdefault("Identifier", "ParticleKiller")
50  tool = result.popToolsAndMerge(ParticleKillerToolCfg(flags))
51  kwargs.setdefault("SimulatorTool", tool)
52  result.addService(CompFactory.ISF.LegacySimSvc(name, **kwargs), primary = True)
53  return result
SystemOfUnits
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ISF_ServicesCoreConfig.ATLFAST_EnvelopeDefSvcCfg
def ATLFAST_EnvelopeDefSvcCfg(flags, name="ISF_ATLFAST_EnvelopeDefSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:30
ISF_ServicesCoreConfig.ATLFAST_GeoIDSvcCfg
def ATLFAST_GeoIDSvcCfg(flags, name="ISF_ATLFAST_GeoIDSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:39
ISF_ToolsConfig.ParticleKillerToolCfg
def ParticleKillerToolCfg(flags, name="ISF_ParticleKillerTool", **kwargs)
Definition: ISF_ToolsConfig.py:153
ISF_ServicesCoreConfig.ParticleKillerSvcCfg
def ParticleKillerSvcCfg(flags, name="ISF_ParticleKillerSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:47
SubDetectorEnvelopesConfig.EnvelopeDefSvcCfg
def EnvelopeDefSvcCfg(flags, name="AtlasGeometry_EnvelopeDefSvc", **kwargs)
Definition: SubDetectorEnvelopesConfig.py:15
ISF_ServicesCoreConfig.GeoIDSvcCfg
def GeoIDSvcCfg(flags, name="ISF_GeoIDSvc", **kwargs)
Definition: ISF_ServicesCoreConfig.py:22