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_intt_client.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_intt_client.C
1
#include "
CommonFuncs.C
"
2
3
#include <onlmon/OnlMonClient.h>
4
#include <onlmon/intt/InttMonDraw.h>
5
6
// cppcheck-suppress unknownMacro
7
R__LOAD_LIBRARY(libonlinttmon_client.so)
8
9
void
inttDrawInit
(const
int
online = 0)
10
{
11
OnlMonClient
*cl =
OnlMonClient::instance
();
12
// register histos we want with monitor name
13
14
cl->
AddServerHost
(
"localhost"
);
// check local host first
15
CreateHostList
(online);
16
17
for
(
int
felix = 0; felix <
INTT::FELIX
; ++felix)
18
{
19
cl->
registerHisto
(
"InttNumEvents"
, Form(
"INTTMON_%d"
, felix));
20
cl->
registerHisto
(
"InttMap"
, Form(
"INTTMON_%d"
, felix));
21
}
22
//cl->registerHisto("InttHitMapRef", "INTTMON_0");
23
24
// get my histos from server, the second parameter = 1
25
// says I know they are all on the same node
26
for
(
int
felix = 0; felix <
INTT::FELIX
; ++felix)
27
{
28
cl->
requestHistoBySubSystem
(Form(
"INTTMON_%d"
, felix), 1);
29
}
30
OnlMonDraw
*inttmon =
new
InttMonDraw
(
"INTTMONDRAW"
);
// create Drawing Object
31
inttmon->
Init
();
//registers the hists it will need to the OnlMonClient
32
cl->
registerDrawer
(inttmon);
// register with client framework
33
}
34
35
void
inttDraw
(
const
char
*what=
"ALL"
)
36
{
37
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
38
for
(
int
felix = 0; felix <
INTT::FELIX
; ++felix)
// update histos
39
{
40
cl->
requestHistoBySubSystem
(Form(
"INTTMON_%d"
, felix),1);
41
}
42
cl->
Draw
(
"INTTMONDRAW"
,what);
// Draw Histos of registered Drawers
43
}
44
45
void
inttSavePlot
()
46
{
47
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
48
cl->
SavePlot
(
"INTTMONDRAW"
);
// Save Plots
49
return
;
50
}
51
52
void
inttHtml
()
53
{
54
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
55
cl->
MakeHtml
(
"INTTMONDRAW"
);
// Create html output
56
return
;
57
}
OnlMon
blob
main
macros
run_intt_client.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration