Belle II Software  release-05-01-25
beam_reco_monitor.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 import basf2
4 import hbasf2
5 from softwaretrigger import constants
6 from softwaretrigger.processing import setup_basf2_and_db, start_zmq_path, finalize_zmq_path, add_hlt_processing
7 
8 args = setup_basf2_and_db(zmq=True)
9 
10 path, reco_path = start_zmq_path(args, location=constants.Location.hlt)
11 add_hlt_processing(reco_path, run_type=constants.RunTypes.beam,
12  softwaretrigger_mode=constants.SoftwareTriggerModes.monitor)
13 finalize_zmq_path(path, args, location=constants.Location.hlt)
14 
15 basf2.print_path(path)
16 hbasf2.process(path, [args.dqm, args.output], True)
softwaretrigger.processing
Definition: processing.py:1