25 b2.set_log_level(b2.LogLevel.ERROR)
28 geom = b2.register_module(
"Geometry")
31 main = b2.create_path()
40 raw2ds = b2.register_module(
"Raw2Ds")
41 raw2ds.param(
"RingBufferName", argvs[1])
42 main.add_module(raw2ds)
47 histo = b2.register_module(
'DqmHistoManager')
48 histo.param(
"Port", 9991)
49 histo.param(
"DumpInterval", 10000)
50 main.add_module(histo)
53 monitor = b2.register_module(
'MonitorData')
54 main.add_module(monitor)
57 roiGen = b2.register_module(
'ROIGenerator')
58 param_roiGen = {
'ROIListName':
'ROIs',
59 'nROIs': 8,
'Layer': 1,
'Ladder': 1,
'Sensor': 1}
60 roiGen.param(param_roiGen)
63 roiPayloadAssembler = b2.register_module(
'ROIPayloadAssembler')
64 param_roiPayloadAssembler = {
'ROIListName':
'ROIs',
65 'ROIpayloadName':
'ROIpayload'}
66 roiPayloadAssembler.param(param_roiPayloadAssembler)
68 roiReadTest = b2.register_module(
'ROIReadTest')
69 param_roiReadTest = {
'outfileName':
'ROIoutHLT.txt',
70 'ROIpayloadName':
'ROIpayload'}
71 roiReadTest.param(param_roiReadTest)
73 main.add_module(roiGen)
74 main.add_module(roiPayloadAssembler)
79 ds2rbuf = b2.register_module(
"Ds2Rbuf")
80 ds2rbuf.param(
"RingBufferName", argvs[2])
81 main.add_module(ds2rbuf)
84 progress = b2.register_module(
'Progress')
85 main.add_module(progress)
88 elapsed = b2.register_module(
'ElapsedTime')
89 elapsed.param(
'EventInterval', 10000)
90 main.add_module(elapsed)
93 b2.set_nprocesses(int(argvs[4]))