ATLAS Offline Software
testChamberBuilder.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 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  the_alg = CompFactory.MuonGMR4.MuonChamberToolTest(name, **kwargs)
9  result.addEventAlgo(the_alg, primary = True)
10  return result
11 
12 if __name__=="__main__":
13  from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest
14  parser = SetupArgParser()
15 
16  args = parser.parse_args()
17 
18 
19  from AthenaConfiguration.AllConfigFlags import initConfigFlags
20  flags = initConfigFlags()
21  flags.Acts.TrackingGeometry.UseBlueprint=True
22  flags, cfg = setupGeoR4TestCfg(args,flags)
23 
24  cfg.merge(MuonChamberToolTestCfg(flags))
25  cfg.getService("MessageSvc").verboseLimit = 100000
26  executeTest(cfg)
27 
28 
ActsGeometryConfig.ActsTrackingGeometrySvcCfg
ComponentAccumulator ActsTrackingGeometrySvcCfg(flags, str name="ActsTrackingGeometrySvc", **kwargs)
Definition: ActsGeometryConfig.py:6
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
testGeoModel.setupGeoR4TestCfg
def setupGeoR4TestCfg(args, flags=None)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:119
MuonConfigUtils.executeTest
def executeTest(cfg)
Definition: MuonConfigUtils.py:15
testChamberBuilder.MuonChamberToolTestCfg
def MuonChamberToolTestCfg(flags, name="MuonChamberToolTest", **kwargs)
Definition: testChamberBuilder.py:4
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19