ATLAS Offline Software
Loading...
Searching...
No Matches
testChamberBuilder.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4def 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
13if __name__=="__main__":
14 from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest
15 parser = SetupArgParser()
16
17 args = parser.parse_args()
18
19 from AthenaConfiguration.AllConfigFlags import initConfigFlags
20 flags = initConfigFlags()
21 flags.Acts.TrackingGeometry.UseBlueprint=True
22 flags.Acts.TrackingGeometry.ObjDebugOutput = False
23 flags, cfg = setupGeoR4TestCfg(args,flags)
24
25 cfg.merge(MuonChamberToolTestCfg(flags))
26 executeTest(cfg)
27
28
MuonChamberToolTestCfg(flags, name="MuonChamberToolTest", **kwargs)