ATLAS Offline Software
Loading...
Searching...
No Matches
Geo2G4Config.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def 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
Geo2G4SvcCfg(flags, **kwargs)