Belle II Software development
passthrough.py
1
8
9import basf2
10from softwaretrigger import constants
11from softwaretrigger.processing import finalize_zmq_path, setup_basf2_and_db, start_zmq_path, add_hlt_passthrough
12
13
14args = setup_basf2_and_db(event_distribution_mode=constants.EventDistributionModes.zmqbasf2)
15
16path, _ = start_zmq_path(args, location=constants.Location.hlt,
17 event_distribution_mode=constants.EventDistributionModes.zmqbasf2)
18add_hlt_passthrough(path)
19finalize_zmq_path(path, args, location=constants.Location.hlt)
20
21basf2.print_path(path)
22basf2.process(path, calculateStatistics=True)