11from smartBKG
import DECORR_LIST
12from smartBKG.b2modules.NN_trainer_module
import data_production
14parser = argparse.ArgumentParser(
15 description=
'''Generator variables saver.''',
16 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
18parser.add_argument(
'-j', type=int, required=
False, default=1,
19 help=
"Job ID for batch. Default for test", metavar=
"JOB_ID",
21parser.add_argument(
'-f', type=str, required=
False, default=
'./',
22 help=
"Input dir", metavar=
"IN_DIR",
24parser.add_argument(
'-o', type=str, required=
False, default=
'./',
25 help=
"Out dir", metavar=
"OUT_DIR",
27parser.add_argument(
'-d', type=bool, required=
False, default=
False,
28 help=
"""Whether to save the preconfigured event-level variables
29 (variables for a certain particle are also seen
as event-level,
30 since these variables are
not attached to all the particles
in the particle list)
""",
31 metavar="SAVE_VARS", dest=
'save_vars')
32parser.add_argument(
"--workers", type=int, default=
False,
33 help=
"Number of workers (0 means no multiprocessing)")
34args = parser.parse_args()
36os.makedirs(args.out_dir, exist_ok=
True)
39 dec_list = DECORR_LIST
43data_prod = data_production(
44 in_dir=args.in_dir, out_dir=args.out_dir,
45 job_id=args.job_id, save_vars=dec_list