Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
blob
main
macros
CommonFuncs.C
makehtml.C
run_bbc_client.C
run_bbc_server.C
run_cemc_client.C
run_cemc_client_2subevents.C
run_cemc_server.C
run_cemc_server_SEB00.C
run_cemc_server_SEB01.C
run_daq_client.C
run_daq_server.C
run_example_client.C
run_example_server0.C
run_example_server1.C
run_hcal_server.C
run_ihcal_client.C
run_intt_client.C
run_intt_server.C
run_ll1_client.C
run_ll1_server.C
run_mvtx_client.C
run_mvtx_server.C
run_ohcal_client.C
run_pktsize_client.C
run_pktsize_server.C
run_Poms.C
run_sepd_client.C
run_sepd_server.C
run_tpc_client.C
run_tpc_server.C
run_tpot_client.C
run_tpot_server.C
run_zdc_client.C
run_zdc_server.C
ServerFuncs.C
onlmonclient
onlmondatabase
onlmonserver
onlmonutils
poms
subsystems
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
run_cemc_client.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_cemc_client.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
//int nserver = 0;
10
void
cemcDrawInit
(const
int
online = 0)
11
{
12
OnlMonClient
*cl =
OnlMonClient::instance
();
13
cl ->
Verbosity
(0);
14
// register histos we want with monitor name
15
for
(
int
serverid = 0; serverid <= 7; serverid++)
16
{
17
cl->
registerHisto
(
"h2_cemc_rm"
, Form(
"CEMCMON_%d"
,serverid));
18
cl->
registerHisto
(
"h2_cemc_mean"
, Form(
"CEMCMON_%d"
,serverid));
19
cl->
registerHisto
(
"h1_event"
, Form(
"CEMCMON_%d"
,serverid));
20
cl->
registerHisto
(
"h2_waveform_twrAvg"
, Form(
"CEMCMON_%d"
,serverid));
21
cl->
registerHisto
(
"h1_waveform_time"
, Form(
"CEMCMON_%d"
,serverid));
22
cl->
registerHisto
(
"h1_waveform_pedestal"
, Form(
"CEMCMON_%d"
,serverid));
23
cl->
registerHisto
(
"h1_fitting_sigDiff"
,Form(
"CEMCMON_%d"
,serverid));
24
cl->
registerHisto
(
"h1_fitting_pedDiff"
,Form(
"CEMCMON_%d"
,serverid));
25
cl->
registerHisto
(
"h1_fitting_timeDiff"
,Form(
"CEMCMON_%d"
,serverid));
26
cl->
registerHisto
(
"h1_packet_number"
,Form(
"CEMCMON_%d"
,serverid));
27
cl->
registerHisto
(
"h1_packet_length"
,Form(
"CEMCMON_%d"
,serverid));
28
cl->
registerHisto
(
"h1_packet_chans"
,Form(
"CEMCMON_%d"
,serverid));
29
cl->
registerHisto
(
"h1_cemc_adc"
,Form(
"CEMCMON_%d"
,serverid));
30
31
for
(
int
ih=0; ih<32; ih++){
32
cl->
registerHisto
(Form(
"h1_rm_sectorAvg_s%d"
,ih), Form(
"CEMCMON_%d"
,serverid));
33
}
34
}
35
CreateHostList
(online);
36
// get my histos from server, the second parameter = 1
37
// says I know they are all on the same node
38
//cl->requestHistoBySubSystem(Form("CEMCMON_%d",serverid), 1);
39
for
(
int
i
= 0;
i
<= 7;
i
++)
40
{
41
cl->
requestHistoBySubSystem
(Form(
"CEMCMON_%d"
,
i
), 1);
42
}
43
CemcMonDraw
*cemcmon =
new
CemcMonDraw
(
"CEMCMONDRAW"
);
// create Drawing Object
44
cemcmon -> setSave(0);
45
cl->
registerDrawer
(cemcmon);
// register with client framework
46
}
47
48
void
cemcDraw
(
const
char
*what =
"ALL"
)
49
{
50
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
51
for
(
int
i
= 0;
i
<= 7;
i
++)
52
{
53
cl->
requestHistoBySubSystem
(Form(
"CEMCMON_%d"
,
i
), 1);
54
}
55
cl->
Draw
(
"CEMCMONDRAW"
, what);
// Draw Histos of registered Drawers
56
}
57
58
void
cemcSavePlot
()
59
{
60
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
61
cl->
SavePlot
(
"CEMCMONDRAW"
);
// Save Plots
62
return
;
63
}
64
65
void
cemcHtml
()
66
{
67
OnlMonClient
*cl =
OnlMonClient::instance
();
// get pointer to framewrk
68
cl->
MakeHtml
(
"CEMCMONDRAW"
);
// Create html output
69
return
;
70
}
OnlMon
blob
main
macros
run_cemc_client.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration