File indexing completed on 2025-08-03 08:20:54
0001 #include "CommonFuncs.C"
0002
0003 #include <onlmon/ll1/LL1MonDraw.h>
0004
0005 #include <onlmon/OnlMonClient.h>
0006
0007
0008 R__LOAD_LIBRARY(libonlll1mon_client.so)
0009
0010 void ll1DrawInit(const int online = 0)
0011 {
0012 OnlMonClient *cl = OnlMonClient::instance();
0013
0014 cl->registerHisto("h_nhit_n1", "LL1MON_0");
0015 cl->registerHisto("h_nhit_n2", "LL1MON_0");
0016 cl->registerHisto("h_nhit_s1", "LL1MON_0");
0017 cl->registerHisto("h_nhit_s2", "LL1MON_0");
0018 cl->registerHisto("h_nhit_corr", "LL1MON_0");
0019 cl->registerHisto("h_line_up", "LL1MON_0");
0020 cl->registerHisto("h_line_up", "LL1MON_0");
0021 cl->registerHisto("h_8x8_sum_emcal", "LL1MON_0");
0022 cl->registerHisto("h_8x8_sum_emcal_above_threshold_0", "LL1MON_0");
0023 cl->registerHisto("h_8x8_sum_emcal_above_threshold_1", "LL1MON_0");
0024 cl->registerHisto("h_8x8_sum_emcal_above_threshold_2", "LL1MON_0");
0025 cl->registerHisto("h_8x8_sum_emcal_above_threshold_3", "LL1MON_0");
0026 cl->registerHisto("h_hit_format", "LL1MON_0");
0027 cl->registerHisto("h_jet_input", "LL1MON_0");
0028 cl->registerHisto("h_jet_output", "LL1MON_0");
0029 cl->registerHisto("h_jet_output_above_threshold_0", "LL1MON_0");
0030 cl->registerHisto("h_jet_output_above_threshold_1", "LL1MON_0");
0031 cl->registerHisto("h_jet_output_above_threshold_2", "LL1MON_0");
0032 cl->registerHisto("h_jet_output_above_threshold_3", "LL1MON_0");
0033 cl->registerHisto("h_sample_diff_emcal", "LL1MON_0");
0034 for (int i = 0; i < 16;i++)
0035 {
0036 std::string histname = "h_2x2_sum_emcal_"+std::to_string(i);
0037 cl->registerHisto(histname.c_str(), "LL1MON_0");
0038 }
0039 cl->registerHisto("h_sample_diff_jet_input", "LL1MON_0");
0040
0041
0042 CreateSubsysHostlist("ll1_hosts.list", online);
0043
0044
0045
0046
0047
0048 cl->requestHistoBySubSystem("LL1MON_0", 1);
0049 OnlMonDraw *ll1mon = new LL1MonDraw("LL1MONDRAW");
0050 cl->registerDrawer(ll1mon);
0051 }
0052
0053 void ll1Draw(const char *what = "ALL")
0054 {
0055 OnlMonClient *cl = OnlMonClient::instance();
0056 cl->requestHistoBySubSystem("LL1MON_0",1);
0057 cl->Draw("LL1MONDRAW", what);
0058 }
0059
0060 void ll1SavePlot()
0061 {
0062 OnlMonClient *cl = OnlMonClient::instance();
0063 cl->SavePlot("LL1MONDRAW");
0064 return;
0065 }
0066
0067 void ll1Html()
0068 {
0069 OnlMonClient *cl = OnlMonClient::instance();
0070 cl->MakeHtml("LL1MONDRAW");
0071 return;
0072 }