16 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
20 flags.Exec.MaxEvents = args.maxEvents
22 from AthenaConfiguration.TestDefaults
import defaultTestFiles
24 if not args.inputFileList:
25 flags.Input.Files = defaultTestFiles.RDO_RUN2
27 flags.Input.Files = args.inputFileList
29 from AthenaConfiguration.Enums
import ProductionStep
31 flags.Common.ProductionStep = ProductionStep.Reconstruction
34 flags.Output.AODFileName = args.outputAODFile
40 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
43 flags,
None, use_metadata=
True, toggle_geometry=
True, keep_beampipe=
True
47 from egammaConfig.ConfigurationHelpers
import egammaOnlyFromRaw
54 from egammaConfig.egammaSteeringConfig
import egammaSteeringConfigTest
61 if __name__ ==
"__main__":
65 from argparse
import ArgumentParser
67 parser = ArgumentParser(
"egammaOnly")
73 help=
"The number of events to run. -1 runs all events.",
76 "-i",
"--inputFileList", nargs=
"*", help=
"list of input ESD files"
79 "-o",
"--outputAODFile", default=
"myAOD.pool.root", help=
"Output file name"
81 args = parser.parse_args()
83 statusCode =
_run(args)
85 assert statusCode
is not None,
"Issue while running"
86 sys.exit(
not statusCode.isSuccess())