2from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory
import CompFactory
7 result = ComponentAccumulator()
9 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_AOD2xAODCfg
10 result.merge(GEN_AOD2xAODCfg(flags))
12 from MuonTruthAlgsR4.MuonTruthAlgsConfig
import MuonTruthAlgsCfg
13 result.merge(MuonTruthAlgsCfg(flags, useSDO =
False))
15 result.getEventAlgo(
"MuonTruthSegmentMaker").useOnlyMuonHits =
False
16 result.getEventAlgo(
"TruthMuonMakerAlg").pdgIds=[13,998,999]
18 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
19 result.merge(ActsTrackingGeometrySvcCfg(flags))
21 the_alg = CompFactory.ActsTrk.ActsMuonTrackingGeometryTest(name, **kwargs)
22 result.addEventAlgo(the_alg, primary =
True)
26if __name__ ==
"__main__":
28 from MuonGeoModelTestR4.testGeoModel
import setupGeoR4TestCfg, SetupArgParser, MuonPhaseIITestDefaults
29 from MuonConfig.MuonConfigUtils
import executeTest, setupHistSvcCfg
30 parser = SetupArgParser()
31 parser.set_defaults(outRootFile=
"MuonNavigationTestR4_Gen3Geometry.root")
32 parser.set_defaults(inputFile=MuonPhaseIITestDefaults.HITS_PG_R4)
33 parser.set_defaults(nEvents=10)
34 parser.set_defaults(defaultGeoFile=
"RUN4")
35 parser.add_argument(
"--gen3", action=
"store_true", help=
"Use Gen3 geometry + construction")
36 parser.add_argument(
"--objout", action=
"store_true", help=
"Obj output of the tracking geometry")
37 args = parser.parse_args()
39 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
40 flags = initConfigFlags()
42 flags.PerfMon.doFullMonMT =
True
43 flags.Acts.TrackingGeometry.UseBlueprint = args.gen3
44 flags.Acts.TrackingGeometry.ObjDebugOutput = args.objout
46 flags, cfg = setupGeoR4TestCfg(args,flags)
47 cfg.merge(setupHistSvcCfg(flags, outFile=args.outRootFile, outStream=
"MuonNavigationTestGen3R4"))
48 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
49 cfg.merge(AtlasFieldCacheCondAlgCfg(flags))
MuonTrackingGeometryTestCfg(flags, name="ActsMuonTrackingGeometryTest", **kwargs)