2from AthenaConfiguration.ComponentFactory
import CompFactory
3from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 result = ComponentAccumulator()
7 the_alg = CompFactory.MdtCondJsonDumpAlg(name, **kwargs)
8 result.addEventAlgo(the_alg, primary =
True)
11if __name__ ==
"__main__":
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 from MuonCondTest.MdtCablingTester
import SetupArgParser
14 parser = SetupArgParser()
16 args = parser.parse_args()
17 flags = initConfigFlags()
18 flags.Concurrency.NumThreads = args.threads
19 flags.Concurrency.NumConcurrentEvents = args.threads
20 flags.Output.ESDFileName = args.output
21 flags.Input.Files = args.inputFile
22 flags.IOVDb.GlobalTag = args.conditionsTag
25 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
26 cfg = MainServicesCfg(flags)
28 from AthenaConfiguration.Enums
import Format
29 if flags.Input.Format == Format.POOL:
30 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
31 cfg.merge(PoolReadCfg(flags))
32 elif flags.Input.Format == Format.BS:
33 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
34 cfg.merge(ByteStreamReadCfg(flags))
36 from MuonConfig.MuonCondAlgConfig
import MdtCondDbAlgCfg
37 cfg.merge(MdtCondDbAlgCfg(flags))
40 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
41 cfg.merge(MuonIdHelperSvcCfg(flags))
44 cfg.printConfig(withDetails=
True, summariseProps=
True)
48 if not sc.isSuccess():
50 sys.exit(
"Execution failed")