4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
9 the_alg = CompFactory.MuonR4.xRpcMeasToRpcTrkPrdCnvAlg(name, **kwargs)
10 result.addEventAlgo(the_alg, primary =
True)
15 the_alg = CompFactory.Muon.PRDxAODConvertorAlg(name=name, **kwargs)
16 result.addEventAlgo(the_alg, primary =
True)
20 from argparse
import ArgumentParser
22 parser = ArgumentParser()
23 parser.add_argument(
"-t",
"--threads", dest=
"threads", type=int, help=
"number of threads", default=1)
24 parser.add_argument(
"-o",
"--output", dest=
"output", default=
'PrepDataTest.pool.root', help=
"Text file containing each cabling channel", metavar=
"FILE")
25 parser.add_argument(
"--inputFile",
"-i", default=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"],
26 help=
"Input file to run on ", nargs=
"+")
31 kwargs.setdefault(
"streamName",
"MPRDTestStream")
32 kwargs.setdefault(
"AcceptAlgs",[])
39 container_items = [
"xAOD::MdtDriftCircleContainer#",
"xAOD::MdtDriftCircleAuxContainer#",
40 "xAOD::RpcStripContainer#",
"xAOD::RpcStripAuxContainer#",
41 "xAOD::TgcStripContainer#",
"xAOD::TgcStripAuxContainer#",
42 "xAOD::MMClusterContainer#",
"xAOD::MMClusterAuxContainer#",
43 "xAOD::sTgcStripContainer#",
"xAOD::sTgcStripAuxContaine#",
44 "xAOD::sTgcWireContainer#",
"xAOD::sTgcWireAuxContainer#",
45 "xAOD::sTgcPadContainer#",
"xAOD::sTgcPadAuxContainer#",
47 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
48 kwargs.setdefault(
"ItemList", container_items)
53 if __name__ ==
"__main__":
54 from MuonCondTest.MdtCablingTester
import setupServicesCfg
55 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
59 flags.Concurrency.NumThreads = args.threads
60 flags.Concurrency.NumConcurrentEvents = args.threads
61 flags.Output.doWriteDAOD =
True
62 flags.Input.Files = args.inputFile
63 flags.addFlag(
"Output.MPRDTestStreamFileName", args.output)
64 flags.addFlag(
"Output.doWriteMPRDTestStream",
True)
68 from MuonConfig.MuonDataPrepConfig
import xAODUncalibMeasPrepCfg
73 cfg.printConfig(withDetails=
True, summariseProps=
True)
77 if not sc.isSuccess():
79 sys.exit(
"Execution failed")