Belle II Software  release-06-00-14
passthrough.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 import basf2
12 import hbasf2
13 from softwaretrigger import constants
14 from softwaretrigger.processing import finalize_zmq_path, setup_basf2_and_db, start_zmq_path
15 from pxd import add_pxd_percentframe_phase3_early, add_roi_payload_assembler
16 
17 args = setup_basf2_and_db(zmq=True)
18 
19 path, reco_path = start_zmq_path(args, location=constants.Location.hlt)
20 add_pxd_percentframe_phase3_early(reco_path, fraction=0.1, random_position=True)
21 add_roi_payload_assembler(reco_path, ignore_hlt_decision=True)
22 finalize_zmq_path(path, args, location=constants.Location.hlt)
23 
24 basf2.print_path(path)
25 hbasf2.process(path, [args.dqm, args.output], True)