2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 event_algo = CompFactory.MuonABLineJsonDumpAlg(name,**kwargs)
8 result.addEventAlgo(event_algo, primary =
True)
11 if __name__ ==
"__main__":
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 from MuonCondTest.MdtCablingTester
import SetupArgParser
15 parser.set_defaults(output=
"ForkLiftTruckDrivingIsFun.json")
16 parser.set_defaults(inputFile = [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/CampaignInputs/data23/ESD/data23_cos.00448208.express_express.recon.ESD.x721/73events.data23_cos.00448208.express_express.recon.ESD.x721._lb0003._SFO-ALL._0001.1"])
17 parser.add_argument(
"--alignJsonFile",
18 help=
"External JSON file parsed to the Alignment algorithm",
20 args = parser.parse_args()
22 flags.Concurrency.NumThreads = args.threads
23 flags.Concurrency.NumConcurrentEvents = args.threads
24 flags.Output.ESDFileName = args.output
25 flags.Input.Files = args.inputFile
28 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
31 from AthenaConfiguration.Enums
import Format
32 if flags.Input.Format == Format.POOL:
33 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
35 elif flags.Input.Format == Format.BS:
36 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
39 from MuonConfig.MuonGeometryConfig
import MuonAlignmentCondAlgCfg
41 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
45 cfg.printConfig(withDetails=
True, summariseProps=
True)
49 if not sc.isSuccess():
51 sys.exit(
"Execution failed")