2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if flags.Detector.EnableMDT:
9 containerNames+=[
"xMdtSimHits"]
10 if flags.Detector.EnableMM:
11 containerNames+=[
"xMmSimHits"]
12 if flags.Detector.EnableRPC:
13 containerNames+=[
"xRpcSimHits"]
14 if flags.Detector.EnableTGC:
15 containerNames+=[
"xTgcSimHits"]
16 if flags.Detector.EnablesTGC:
17 containerNames+=[
"xStgcSimHits"]
18 kwargs.setdefault(
"SimHitKeys", containerNames)
20 the_alg = CompFactory.ActsTrk.MuonDetectorNavTest(name, **kwargs)
21 result.addEventAlgo(the_alg, primary =
True)
24 if __name__==
"__main__":
25 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, executeTest,setupHistSvcCfg
27 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/R3SimHits.pool.root"])
28 parser.set_defaults(outRootFile=
"MuonNavigationTestR4.root")
29 parser.set_defaults(nEvents=10)
30 parser.add_argument(
"--dumpDetector", help=
"Save dump detector visualization", action=
'store_true', default=
False )
31 parser.add_argument(
"--dumpPassive", help=
"Save detector visualization", action=
'store_true', default=
False )
32 parser.add_argument(
"--dumpDetectorVolumes", help=
"Save detector visualization", action=
'store_true', default=
False )
35 args = parser.parse_args()
36 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
38 flags.PerfMon.doFullMonMT =
True
41 cfg.merge(
setupHistSvcCfg(flags, outFile=args.outRootFile, outStream=
"MuonNavigationTestR4"))
42 from ActsGeometry.DetectorVolumeSvcCfg
import DetectorVolumeSvcCfg
44 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
47 cfg.getPublicTool(
"MuonDetectorBuilderTool").dumpDetector = args.dumpDetector
48 cfg.getPublicTool(
"MuonDetectorBuilderTool").dumpPassive = args.dumpPassive
49 cfg.getPublicTool(
"MuonDetectorBuilderTool").dumpDetectorVolumes = args.dumpDetectorVolumes