Belle II Software  release-08-01-10
roitest.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_roi_payload_assembler
16 
17 
18 args = setup_basf2_and_db(zmq=True)
19 
20 path, reco_path = start_zmq_path(args, location=constants.Location.hlt)
21 
22 # Monitor module
23 reco_path.add_module('MonitorData')
24 
25 # ROI Payload related
26 reco_path.add_module('ROIGenerator', ROIListName='ROIs', nROIs=8, Layer=1, Ladder=1, Sensor=1)
27 add_roi_payload_assembler(reco_path, ignore_hlt_decision=True)
28 # reco_path.add_module('ROIReadTest', outfileName='ROIoutHLT.txt',ROIpayloadName='ROIpayload')
29 
30 # Debug modules
31 reco_path.add_module('ElapsedTime', EventInterval=10000)
32 
33 finalize_zmq_path(path, args, location=constants.Location.hlt)
34 
35 basf2.print_path(path)
36 hbasf2.process(path, [args.dqm, args.output], True)