9 from AthenaCommon.Logging
import logging
10 mainLogger = logging.getLogger(
'RunTrigEgammaMonitoringOnGrid' )
14 parser = argparse.ArgumentParser(description =
'', add_help =
False)
15 parser = argparse.ArgumentParser()
22 parser.add_argument(
'--inDS', action=
'store', dest=
'inDS', required =
True, type=str, help =
"Input dataset.")
23 parser.add_argument(
'--outDS', action=
'store', dest=
'outDS', required =
True, type=str, help =
"Output dataset.")
25 parser.add_argument(
'--dry_run', action=
'store_true', dest=
'dry_run', required =
False, default =
False,
26 help =
"Do not launch if this is True.")
28 parser.add_argument(
'--nFilesPerJob', action=
'store', dest=
'nFilesPerJob', required =
False, type=int, default=1,
29 help =
"Number of files per job in grid mode.")
31 parser.add_argument(
'--job', action=
'store', dest=
'job', required =
False, type=str, default=
'RunTrigEgammaMonitoring.py',
34 parser.add_argument(
'-a',
'--asetup', action=
'store', dest=
'asetup', required =
False, type=str, default=
'asetup Athena,master,latest,here',
35 help =
"asetup release")
41 parser.add_argument(
'--preExec', help=
'Code to execute before locking configs', default=
None)
42 parser.add_argument(
'--postExec', help=
'Code to execute after setup', default=
None)
43 parser.add_argument(
'--emulate', help=
'emulate the HLT e/g sequence', action=
'store_true')
45 parser.add_argument(
'--pidConfigPath', action=
'store', required =
False,
46 type=str, default=
'ElectronPhotonSelectorTools/trigger/rel22_20210611',
47 help =
"Electron Likelihood and Photon CB config path to use in emulated precision step.")
48 parser.add_argument(
'--dnnConfigPath', action=
'store', required =
False,
49 type=str, default=
'ElectronPhotonSelectorTools/offline/mc16_20210430',
50 help =
"Electron DNN config path to use in emulated precision step.")
51 parser.add_argument(
'--ringerConfigPath', action=
'store', required =
False,
52 type=str, default=
'RingerSelectorTools/TrigL2_20210702_r4',
53 help =
"Electron ringer config path to use in emulated fast calo step.")
62 args = parser.parse_args()
64 execute =
"{JOB} -i '%IN'".
format(JOB=args.job)
66 execute+=
' --emulate'
67 execute+=
" --pidConfigPath '{PATH}'".
format(PATH=args.pidConfigPath)
68 execute+=
" --dnnConfigPath '{PATH}'".
format(PATH=args.dnnConfigPath)
69 execute+=
" --ringerConfigPath '{PATH}'".
format(PATH=args.ringerConfigPath)
72 execute+=
' --preExec '+args.preExec
74 execute+=
' --postExec '+ args.postExec
78 command =
""" prun --exec \
85 --nFilesPerJob={N_FILES_PER_JOB} \
90 command = command.format(
94 N_FILES_PER_JOB = args.nFilesPerJob,