ATLAS Offline Software
Loading...
Searching...
No Matches
testChamberBuilder.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 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
20 from AthenaConfiguration.AllConfigFlags import initConfigFlags
21 flags = initConfigFlags()
22 flags.Acts.TrackingGeometry.UseBlueprint=True
23 flags.Acts.TrackingGeometry.ObjDebugOutput = False
24 flags, cfg = setupGeoR4TestCfg(args,flags)
25
26 cfg.merge(MuonChamberToolTestCfg(flags))
27 cfg.getService("MessageSvc").verboseLimit = 100000
28 executeTest(cfg)
29
30
MuonChamberToolTestCfg(flags, name="MuonChamberToolTest", **kwargs)