31 print(
'Usage : RecvSendCOPPER.py <COPPER hostname> <COPPER node ID> ')
32 print(
'<bit flag of FINNESEs> <Use NSM(Network Shared Memory)? yes=1/no=0> <NSM nodename>')
36 b2.set_log_level(b2.LogLevel.INFO)
40 reader = b2.register_module(
'DeSerializerCOPPER')
41 reader.param(
'NodeID', int(argvs[2]))
42 reader.param(
'FinesseBitFlag', int(argvs[3]))
43 use_shm_flag = int(argvs[4])
44 reader.param(
'UseShmFlag', use_shm_flag)
45 reader.param(
'NodeName', argvs[5])
46 reader.param(
'MaxTime', -1.)
47 reader.param(
'MaxEventNum', -1)
52 monitor = b2.register_module(
'MonitorDataCOPPER')
55 dump = b2.register_module(
'RootOutput')
56 dump.param(
'outputFileName',
'root_output.root')
59 sender = b2.register_module(
'Serializer')
60 sender.param(
'DestPort', 30000)
62 sender.param(
'LocalHostName', argvs[1])
65 main = b2.create_path()
68 main.add_module(reader)
72 main.add_module(sender)