11 from argparse
import ArgumentParser
13 if __name__ ==
'__main__':
14 basf2.reset_database()
15 basf2.use_central_database(
"data_reprocessing_prompt")
16 basf2.set_nprocesses(2)
18 parser = ArgumentParser()
19 parser.add_argument(
"--input", required=
True)
20 parser.add_argument(
"--output", required=
True)
21 parser.add_argument(
"--dqm", required=
True)
23 args = parser.parse_args()
27 input_module = path.add_module(
"HLTZMQ2Ds", input=args.input)
29 reco_path = basf2.Path()
30 reco_path.add_module(
"HLTDQM2ZMQ", output=args.dqm, sendOutInterval=5)
32 input_module.if_value(
"==0", reco_path, basf2.AfterConditionPath.CONTINUE)
34 path.add_module(
"HLTDs2ZMQ", output=args.output, raw=
True)
36 hbasf2.process(path, [args.output, args.dqm],
False)