Belle II Software development
roitest.py
1#!/usr/bin/env python3
2
3
10import basf2
11import hbasf2
12from softwaretrigger import constants
13from softwaretrigger.processing import finalize_zmq_path, setup_basf2_and_db, start_zmq_path
14from tracking import add_roi_payload_assembler
15
16
17args = setup_basf2_and_db(zmq=True)
18
19path, reco_path = start_zmq_path(args, location=constants.Location.hlt)
20
21# Monitor module
22reco_path.add_module('MonitorData')
23
24# ROI Payload related
25reco_path.add_module('ROIGenerator', ROIListName='ROIs', nROIs=8, Layer=1, Ladder=1, Sensor=1)
26add_roi_payload_assembler(reco_path, ignore_hlt_decision=True)
27# reco_path.add_module('ROIReadTest', outfileName='ROIoutHLT.txt',ROIpayloadName='ROIpayload')
28
29# Debug modules
30reco_path.add_module('ElapsedTime', EventInterval=10000)
31
32finalize_zmq_path(path, args, location=constants.Location.hlt)
33
34basf2.print_path(path)
35hbasf2.process(path, [args.dqm, args.output], True)