Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_ll1_client.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_ll1_client.C
1 #include "CommonFuncs.C"
2 
3 #include <onlmon/ll1/LL1MonDraw.h>
4 
5 #include <onlmon/OnlMonClient.h>
6 
7 // cppcheck-suppress unknownMacro
8 R__LOAD_LIBRARY(libonlll1mon_client.so)
9 
10 void ll1DrawInit(const int online = 0)
11 {
13  // register histos we want with monitor name
14  cl->registerHisto("h_nhit_n1", "LL1MON_0");
15  cl->registerHisto("h_nhit_n2", "LL1MON_0");
16  cl->registerHisto("h_nhit_s1", "LL1MON_0");
17  cl->registerHisto("h_nhit_s2", "LL1MON_0");
18  cl->registerHisto("h_nhit_corr", "LL1MON_0");
19  cl->registerHisto("h_line_up", "LL1MON_0");
20  cl->AddServerHost("localhost"); // check local host first
21  CreateHostList(online);
22  // get my histos from server, the second parameter = 1
23  // says I know they are all on the same node
24  cl->requestHistoBySubSystem("LL1MON_0", 1);
25  OnlMonDraw *ll1mon = new LL1MonDraw("LL1MONDRAW"); // create Drawing Object
26  cl->registerDrawer(ll1mon); // register with client framework
27 }
28 
29 void ll1Draw(const char *what = "ALL")
30 {
31  OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk
32  cl->requestHistoBySubSystem("LL1MON_0",1); // update histos
33  cl->Draw("LL1MONDRAW", what); // Draw Histos of registered Drawers
34 }
35 
37 {
38  OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk
39  cl->SavePlot("LL1MONDRAW"); // Save Plots
40  return;
41 }
42 
43 void ll1Html()
44 {
45  OnlMonClient *cl = OnlMonClient::instance(); // get pointer to framewrk
46  cl->MakeHtml("LL1MONDRAW"); // Create html output
47  return;
48 }