24 b2.set_log_level(b2.LogLevel.ERROR)
27 geom = b2.register_module(
"Geometry")
30 main = b2.create_path()
39 raw2ds = b2.register_module(
"Raw2Ds")
40 raw2ds.param(
"RingBufferName", argvs[1])
41 main.add_module(raw2ds)
46 histo = b2.register_module(
'DqmHistoManager')
47 histo.param(
"Port", 9991)
48 histo.param(
"DumpInterval", 10000)
49 main.add_module(histo)
52 monitor = b2.register_module(
'MonitorData')
53 main.add_module(monitor)
56 roiGen = b2.register_module(
'ROIGenerator')
57 param_roiGen = {
'ROIListName':
'ROIs',
58 'nROIs': 8,
'Layer': 1,
'Ladder': 1,
'Sensor': 1}
59 roiGen.param(param_roiGen)
62 roiPayloadAssembler = b2.register_module(
'ROIPayloadAssembler')
63 param_roiPayloadAssembler = {
'ROIListName':
'ROIs',
64 'ROIpayloadName':
'ROIpayload'}
65 roiPayloadAssembler.param(param_roiPayloadAssembler)
67 roiReadTest = b2.register_module(
'ROIReadTest')
68 param_roiReadTest = {
'outfileName':
'ROIoutHLT.txt',
69 'ROIpayloadName':
'ROIpayload'}
70 roiReadTest.param(param_roiReadTest)
72 main.add_module(roiGen)
73 main.add_module(roiPayloadAssembler)
78 ds2rbuf = b2.register_module(
"Ds2Rbuf")
79 ds2rbuf.param(
"RingBufferName", argvs[2])
80 main.add_module(ds2rbuf)
83 progress = b2.register_module(
'Progress')
84 main.add_module(progress)
87 elapsed = b2.register_module(
'ElapsedTime')
88 elapsed.param(
'EventInterval', 10000)
89 main.add_module(elapsed)
92 b2.set_nprocesses(int(argvs[4]))