23 print(
'Usage : RecvStream1.py <Use NSM(Network Shared Memory)? yes=1/no=0> <port # of eb0> <NSM nodename>')
27b2.set_log_level(b2.LogLevel.INFO)
30receiver = b2.register_module(
'DeSerializerPC')
31dump = b2.register_module(
'SeqRootOutput')
32converter = b2.register_module(
'Convert2RawDet')
35receiver.param(
'NodeID', 3)
36receiver.param(
'NumConn', 2)
37receiver.param(
'HostNameFrom', [
'localhost',
'localhost'])
38receiver.param(
'PortFrom', [34008, 34009])
39receiver.param(
'EventDataBufferWords', 4801)
40receiver.param(
'MaxTime', -1.)
41receiver.param(
'MaxEventNum', -1)
42receiver.param(
'NodeName', argvs[3])
43use_shm_flag = int(argvs[1])
44receiver.param(
'UseShmFlag', use_shm_flag)
47dump.param(
'outputFileName',
'root_output.sroot')
50sender = b2.register_module(
'Serializer')
51sender.param(
'DestPort', 36000)
52sender.param(
'LocalHostName',
'localhost')
55main = b2.create_path()
58main.add_module(receiver)
59main.add_module(converter)