ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
Geo2G4
python
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
Geo2G4Config.Geo2G4SvcCfg
Geo2G4SvcCfg(flags, **kwargs)
Definition
Geo2G4Config.py:6
Generated on
for ATLAS Offline Software by
1.17.0