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_pktsize_client.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_pktsize_client.C
1
#include "
CommonFuncs.C
"
2
3
#include <onlmon/pktsize/PktSizeMonDraw.h>
4
5
#include <onlmon/OnlMonClient.h>
6
7
// cppcheck-suppress unknownMacro
8
R__LOAD_LIBRARY(libonlpktsizemon_client.so)
9
10
void
pktsizeDrawInit
(const
int
online = 0)
11
{
12
OnlMonClient
*cl =
OnlMonClient::instance
();
13
// register histos we want with monitor name
14
cl->
registerHisto
(
"pktsize_hist"
,
"PKTSIZEMON_0"
);
15
cl->
AddServerHost
(
"localhost"
);
// check local host first
16
// CreateHostList(online);
17
// get my histos from server, the second parameter = 1
18
// says I know they are all on the same node
19
cl->
requestHistoBySubSystem
(
"PKTSIZEMON_0"
, 1);
20
OnlMonDraw
*pktsizemon =
new
PktSizeMonDraw
(
"PKTSIZEMONDRAW"
);
// create Drawing Object
21
cl->
registerDrawer
(pktsizemon);
// register with client framework
22
}
23
24
void
pktsizeDraw
(
const
char
*what =
"ALL"
)
25
{
26
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
27
cl->
requestHistoBySubSystem
(
"PKTSIZEMON_0"
,1);
// update histos
28
cl->
Draw
(
"PKTSIZEMONDRAW"
, what);
// Draw Histos of registered Drawers
29
}
30
31
void
pktsizeSavePlot
()
32
{
33
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
34
cl->
SavePlot
(
"PKTSIZEMONDRAW"
);
// Save Plots
35
return
;
36
}
37
38
void
pktsizeHtml
()
39
{
40
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
41
cl->
MakeHtml
(
"PKTSIZEMONDRAW"
);
// Create html output
42
return
;
43
}
OnlMon
blob
main
macros
run_pktsize_client.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration