18b2.set_log_level(b2.LogLevel.INFO)
23main = b2.create_path()
26inroot = b2.register_module(
'DQMHistAnalysisInputRootFile')
27inroot.param(
'InputRootFile', sys.argv[1])
28main.add_module(inroot)
36ip_x = b2.register_module(
'DQMHistAnalysisIP')
37ip_x.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.X")
38ip_x.param(
'PVName',
'DQM:Beam:IP:X:')
41ip_y = b2.register_module(
'DQMHistAnalysisIP')
42ip_y.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.Y")
43ip_y.param(
'PVName',
'DQM:Beam:IP:Y:')
46ip_z = b2.register_module(
'DQMHistAnalysisIP')
47ip_z.param(
"HistoName",
"IPMonitoring/Y4S_Vertex.Z")
48ip_z.param(
'PVName',
'DQM:Beam:IP:Z:')
52epicsarray = b2.register_module(
'DQMHistOutputToEPICS')
53epicsarray.param(
'HistoList', [
54 [
'IPMonitoring/Y4S_Vertex.X',
'DQM:Beam:IP:X:Proj',
'DQM:Beam:IP:X:Proj:Last'],
55 [
'IPMonitoring/Y4S_Vertex.Y',
'DQM:Beam:IP:Y:Proj',
'DQM:Beam:IP:Y:Proj:Last'],
56 [
'IPMonitoring/Y4S_Vertex.Z',
'DQM:Beam:IP:Z:Proj',
'DQM:Beam:IP:Z:Proj:Last'],
59main.add_module(epicsarray)
66output = b2.register_module(
'DQMHistAnalysisOutputRelayMsg')
68output.param(
'Port', int(argv[2]))
69main.add_module(output)