Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
run_zdc_client.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_zdc_client.C
1
#include "
CommonFuncs.C
"
2
3
#include <onlmon/zdc/ZdcMonDraw.h>
4
5
#include <onlmon/OnlMonClient.h>
6
7
// cppcheck-suppress unknownMacro
8
R__LOAD_LIBRARY(libonlzdcmon_client.so)
9
10
void
zdcDrawInit
(const
int
online = 0)
11
{
12
13
OnlMonClient
*cl =
OnlMonClient::instance
();
14
// register histos we want with monitor name
15
cl->
registerHisto
(
"zdc_adc_north"
,
"ZDCMON_0"
);
16
cl->
registerHisto
(
"zdc_adc_south"
,
"ZDCMON_0"
);
17
18
cl->
AddServerHost
(
"localhost"
);
// check local host first
19
CreateHostList
(online);
20
21
// get my histos from server, the second parameter = 1
22
// says I know they are all on the same node
23
cl->
requestHistoBySubSystem
(
"ZDCMON_0"
, 1);
24
OnlMonDraw
*zdcmon =
new
ZdcMonDraw
(
"ZDCMONDRAW"
);
// create Drawing Object
25
cl->
registerDrawer
(zdcmon);
// register with client framework
26
}
27
28
void
zdcDraw
(
const
char
*what=
"ALL"
)
29
{
30
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
31
cl->
requestHistoBySubSystem
(
"ZDCMON_0"
,1);
// update histos
32
cl->
Draw
(
"ZDCMONDRAW"
,what);
// Draw Histos of registered Drawers
33
}
34
35
void
zdcSavePlot
()
36
{
37
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
38
cl->
SavePlot
(
"ZDCMONDRAW"
);
// Save Plots
39
return
;
40
}
41
42
void
zdcHtml
()
43
{
44
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
45
cl->
MakeHtml
(
"ZDCMONDRAW"
);
// create html output
46
return
;
47
}
OnlMon
blob
main
macros
run_zdc_client.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration