Belle II Software development
passthrough.py
1#!/usr/bin/env python3
2
3
10import basf2
11import hbasf2
12from softwaretrigger import constants
13from softwaretrigger.processing import setup_basf2_and_db, start_zmq_path, finalize_zmq_path, add_hlt_passthrough
14
15
16args = setup_basf2_and_db(event_distribution_mode=constants.EventDistributionModes.zmq)
17
18path, reco_path = start_zmq_path(args, location=constants.Location.hlt,
19 event_distribution_mode=constants.EventDistributionModes.zmq)
20add_hlt_passthrough(reco_path)
21finalize_zmq_path(path, args, location=constants.Location.hlt)
22
23basf2.print_path(path)
24import ROOT # noqa
25ROOT.Belle2.Environment.Instance().setStats(True)
26hbasf2.process(path, [args.dqm, args.output], True)