19 b2.set_log_level(b2.LogLevel.INFO)
24 main = b2.create_path()
27 inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
28 inroot.param(
'InputRootFile', sys.argv[1])
29 main.add_module(inroot)
37 ip_x = b2.register_module(
'DQMHistAnalysisIP')
38 ip_x.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.X")
39 ip_x.param(
'PVName',
'DQM:Beam:IP:X:')
42 ip_y = b2.register_module(
'DQMHistAnalysisIP')
43 ip_y.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.Y")
44 ip_y.param(
'PVName',
'DQM:Beam:IP:Y:')
47 ip_z = b2.register_module(
'DQMHistAnalysisIP')
48 ip_z.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.Z")
49 ip_z.param(
'PVName',
'DQM:Beam:IP:Z:')
53 epicsarray = b2.register_module(
'DQMHistOutputToEPICS')
54 epicsarray.param(
'HistoList', [
55 [
'IPMonitoring/Y4S_Vertex.X',
'DQM:Beam:IP:X:Proj',
'DQM:Beam:IP:X:Proj:Last'],
56 [
'IPMonitoring/Y4S_Vertex.Y',
'DQM:Beam:IP:Y:Proj',
'DQM:Beam:IP:Y:Proj:Last'],
57 [
'IPMonitoring/Y4S_Vertex.Z',
'DQM:Beam:IP:Z:Proj',
'DQM:Beam:IP:Z:Proj:Last'],
60 main.add_module(epicsarray)
67 output = b2.register_module(
'DQMHistAnalysisOutputRelayMsg')
69 output.param(
'Port', int(argv[2]))
70 main.add_module(output)