31 print(
'Usage : RecvSendCOPPER.py <COPPER hostname> <COPPER nodeID> <bit flag of FINNESEs> '
32 '<Use shared memory? yes=1/no=0> <nodename>')
36 b2.set_log_level(b2.LogLevel.ERROR)
37 b2.set_log_level(b2.LogLevel.INFO)
41 reader = b2.register_module(
'DeSerializerCOPPER')
42 reader.param(
'NodeID', int(argvs[2]))
43 reader.param(
'FinesseBitFlag', int(argvs[3]))
44 use_shm_flag = int(argvs[4])
45 reader.param(
'UseShmFlag', use_shm_flag)
46 reader.param(
'NodeName', argvs[5])
52 histo = b2.register_module(
'DqmHistoManager')
53 histo.param(
'HostName',
'ropc04')
54 histo.param(
'Port', 9991)
55 histo.param(
'DumpInterval', 10)
57 histo.param(
'HistoFileName',
'histo_file_'.join([argvs[1],
'.root']))
60 monitor = b2.register_module(
'MonitorDataCOPPER')
63 sender = b2.register_module(
'Serializer')
64 sender.param(
'DestPort', 30000)
66 sender.param(
'LocalHostName', argvs[1])
69 main = b2.create_path()
72 main.add_module(reader)