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_cemc_client_2subevents.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_cemc_client_2subevents.C
1
#include <
CommonFuncs.C
>
2
3
#include <onlmon/cemc/CemcMonDraw.h>
4
5
#include <onlmon/OnlMonClient.h>
6
7
// cppcheck-suppress unknownMacro
8
R__LOAD_LIBRARY(libonlcemcmon_client.so)
9
10
std::
string
monitorname
("CEMCMON");
11
12
void
cemcDrawInit
(const
int
online = 0)
13
{
14
OnlMonClient
*cl =
OnlMonClient::instance
();
15
cl->
AddServerHost
(
"localhost"
);
// stand-in for SEB00
16
cl->
AddServerHost
(
"rcas2068"
);
// stand-in for SEB01
17
// CreateHostList(online);
18
// register histos we want with monitor name
19
for
(
unsigned
int
i
= 0;
i
< 2;
i
++)
20
{
21
std::string
monitor =
monitorname
+
string
(
"_"
) +
to_string
(
i
);
22
cl->
registerHisto
(
"cemc_occupancy"
, monitor);
23
cl->
registerHisto
(
"cemc_runningmean"
, monitor);
24
cl->
requestHistoBySubSystem
(monitor, 1);
25
}
26
// get my histos from server, the second parameter = 1
27
// says I know they are all on the same node
28
OnlMonDraw
*cemcmon =
new
CemcMonDraw
(
"CEMCMONDRAW"
);
// create Drawing Object
29
cl->
registerDrawer
(cemcmon);
// register with client framework
30
}
31
32
void
cemcDraw
(
const
char
*what =
"Standard"
)
33
{
34
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
35
for
(
unsigned
int
i
= 0;
i
< 2;
i
++)
36
{
37
std::string
monitor =
monitorname
+
string
(
"_"
) +
to_string
(
i
);
38
cl->
requestHistoBySubSystem
(monitor);
// update histos
39
}
40
cl->
Draw
(
"CEMCMONDRAW"
, what);
// Draw Histos of registered Drawers
41
}
42
43
void
cemcPS
()
44
{
45
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
46
cl->
MakePS
(
"CEMCMONDRAW"
);
// Create PS files
47
return
;
48
}
49
50
void
cemcHtml
()
51
{
52
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
53
cl->
MakeHtml
(
"CEMCMONDRAW"
);
// Create html output
54
return
;
55
}
OnlMon
blob
main
macros
run_cemc_client_2subevents.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration