13 from argparse
import ArgumentParser
15 if __name__ ==
'__main__':
16 basf2.reset_database()
17 basf2.use_central_database(
"data_reprocessing_prompt")
18 basf2.set_nprocesses(2)
20 parser = ArgumentParser()
21 parser.add_argument(
"--input", required=
True)
22 parser.add_argument(
"--output", required=
True)
23 parser.add_argument(
"--dqm", required=
True)
25 args = parser.parse_args()
28 reco_path = basf2.Path()
30 input_module = add_input_module(path, input_address=args.input, add_expressreco_objects=
True)
32 add_reco_modules(reco_path, dqm_address=args.dqm, mimik_startup=
False)
34 input_module.if_value(
"==0", reco_path, basf2.AfterConditionPath.CONTINUE)
36 add_output_module(path, output_address=args.output, raw=
False)
38 hbasf2.process(path, [args.output, args.dqm],
False)