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>')
36b2.set_log_level(b2.LogLevel.INFO)
40reader = b2.register_module(
'DeSerializerCOPPER')
41reader.param(
'NodeID', int(argvs[2]))
42reader.param(
'FinesseBitFlag', int(argvs[3]))
43use_shm_flag = int(argvs[4])
44reader.param(
'UseShmFlag', use_shm_flag)
45reader.param(
'NodeName', argvs[5])
46reader.param(
'MaxTime', -1.)
47reader.param(
'MaxEventNum', -1)
52monitor = b2.register_module(
'MonitorDataCOPPER')
55dump = b2.register_module(
'RootOutput')
56dump.param(
'outputFileName',
'root_output.root')
59sender = b2.register_module(
'Serializer')
60sender.param(
'DestPort', 30000)
62sender.param(
'LocalHostName', argvs[1])
65main = b2.create_path()
68main.add_module(reader)
72main.add_module(sender)