3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory
import CompFactory
7 result = ComponentAccumulator()
8 the_alg = CompFactory.MuonVal.MuonTester.TreeTestAlg(name, **kwargs)
9 result.addEventAlgo(the_alg, primary =
True)
12if __name__ ==
"__main__":
13 from MuonGeoModelTest.testGeoModel
import SetupArgParser
14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
15 parser = SetupArgParser()
16 parser.set_defaults(outRootFile=
"TesterTreeFile.root")
18 args = SetupArgParser().parse_args()
20 flags = initConfigFlags()
21 flags.Concurrency.NumThreads = args.threads
22 flags.Concurrency.NumConcurrentEvents = args.threads
23 flags.Input.Files = args.inputFile
24 flags.GeoModel.AtlasVersion = args.geoTag
25 flags.IOVDb.GlobalTag = args.condTag
26 flags.Scheduler.ShowDataDeps =
True
27 flags.Scheduler.ShowDataFlow =
True
28 flags.Exec.MaxEvents = 1
31 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg, executeTest, SetupMuonStandaloneCA
32 cfg = SetupMuonStandaloneCA(flags)
33 cfg.merge(setupHistSvcCfg(flags, outStream=
"TestStream", outFile = args.outRootFile))
TesterTreeAlgCfg(flags, name="TesterTreeAlg", **kwargs)