ATLAS Offline Software
Geo2G4Config.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def Geo2G4SvcCfg(flags, **kwargs):
7  result = ComponentAccumulator()
8  from AthenaConfiguration.Enums import BeamType
9  if flags.Beam.Type is BeamType.TestBeam:
10  kwargs.setdefault("GetTopTransform", False)
11  result.addService(CompFactory.Geo2G4Svc(**kwargs), create=True, primary=True)
12  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Geo2G4Config.Geo2G4SvcCfg
def Geo2G4SvcCfg(flags, **kwargs)
Definition: Geo2G4Config.py:6