7 from argparse
import ArgumentParser
8 parser = ArgumentParser(description=
'Parser for PhysValExample configuration')
9 parser.add_argument(
"--filesInput")
10 parser.add_argument(
"--outputFile", help=
'Name of output file', default=
"M_output.root")
11 return parser.parse_args()
16from AthenaConfiguration.AllConfigFlags
import initConfigFlags
17flags = initConfigFlags()
19for path
in MyArgs.filesInput.split(
','):
20 flags.Input.Files += glob(path)
21flags.PhysVal.OutputFileName = MyArgs.outputFile
23from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
24acc = MainServicesCfg(flags)
25from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
26acc.merge(PoolReadCfg(flags))
30from PhysValMonitoring.PhysValMonitoringConfig
import PhysValMonitoringCfg, PhysValExampleCfg
31acc.merge(PhysValMonitoringCfg(flags, tools=[acc.popToolsAndMerge(PhysValExampleCfg(flags))]))
33acc.printConfig(withDetails=
True)
36sc = acc.run(maxEvents=-1)
40sys.exit(
not sc.isSuccess())