ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonDetDescr
MuonGeoModelTestR4
python
testChamberBuilder.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
def
MuonChamberToolTestCfg
(flags, name="MuonChamberToolTest", **kwargs):
5
result = ComponentAccumulator()
6
from
ActsConfig.ActsGeometryConfig
import
ActsTrackingGeometrySvcCfg
7
kwargs.setdefault(
"TrackingGeometrySvc"
, result.getPrimaryAndMerge(ActsTrackingGeometrySvcCfg(flags)))
8
kwargs.setdefault(
"dumpVolumes"
, flags.Acts.TrackingGeometry.ObjDebugOutput)
9
the_alg = CompFactory.MuonGMR4.MuonChamberToolTest(name, **kwargs)
10
result.addEventAlgo(the_alg, primary =
True
)
11
return
result
12
13
if
__name__==
"__main__"
:
14
from
MuonGeoModelTestR4.testGeoModel
import
setupGeoR4TestCfg, SetupArgParser
15
from
MuonConfig.MuonConfigUtils
import
executeTest
16
parser = SetupArgParser()
17
18
args = parser.parse_args()
19
20
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
21
flags = initConfigFlags()
22
flags.Acts.TrackingGeometry.UseBlueprint=
True
23
flags.Acts.TrackingGeometry.ObjDebugOutput =
False
24
flags.Muon.trackGeometryPassiveMaterial=
True
25
flags, cfg = setupGeoR4TestCfg(args,flags)
26
27
28
cfg.merge(
MuonChamberToolTestCfg
(flags))
29
executeTest(cfg)
30
31
testChamberBuilder.MuonChamberToolTestCfg
MuonChamberToolTestCfg(flags, name="MuonChamberToolTest", **kwargs)
Definition
testChamberBuilder.py:4
Generated on
for ATLAS Offline Software by
1.17.0