File indexing completed on 2025-08-03 08:21:00
0001 #ifndef DAQ_DAQMONDRAW_H
0002 #define DAQ_DAQMONDRAW_H
0003
0004 #include <onlmon/OnlMonDraw.h>
0005
0006 #include <TH2.h>
0007 #include <TLatex.h>
0008 #include <TStyle.h>
0009 #include <string> // for allocator, string
0010
0011 class OnlMonDB;
0012 class TCanvas;
0013 class TGraphErrors;
0014 class TPad;
0015
0016 class DaqMonDraw : public OnlMonDraw
0017 {
0018 public:
0019 DaqMonDraw(const std::string &name);
0020
0021 ~DaqMonDraw() override {}
0022
0023 int Init() override;
0024 int Draw(const std::string &what = "ALL") override;
0025 int MakeHtml(const std::string &what = "ALL") override;
0026 int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
0027
0028 protected:
0029 int MakeCanvas(const std::string &name);
0030 int DrawFirst(const std::string &what = "ALL");
0031 int DrawSecond(const std::string &what = "ALL");
0032 int DrawServerStats();
0033
0034 int TimeOffsetTicks = -1;
0035 TCanvas *TC[3] = {nullptr};
0036 TPad *transparent[3] = {nullptr};
0037 TPad *Pad[6] = {nullptr};
0038 TGraphErrors *gr[2] = {nullptr};
0039 OnlMonDB *dbvars = nullptr;
0040 TStyle *daqStyle = nullptr;
0041 };
0042
0043 #endif