2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 the_alg = CompFactory.MdtCondJsonDumpAlg(name, **kwargs)
8 result.addEventAlgo(the_alg, primary =
True)
11 if __name__ ==
"__main__":
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 from MuonCondTest.MdtCablingTester
import SetupArgParser
16 args = parser.parse_args()
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
28 from AthenaConfiguration.Enums
import Format
29 if flags.Input.Format == Format.POOL:
30 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
32 elif flags.Input.Format == Format.BS:
33 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
36 from MuonConfig.MuonCondAlgConfig
import MdtCondDbAlgCfg
40 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
44 cfg.printConfig(withDetails=
True, summariseProps=
True)
48 if not sc.isSuccess():
50 sys.exit(
"Execution failed")