File indexing completed on 2025-08-05 08:20:26
0001 #ifndef LL1_LL1MONDRAW_H
0002 #define LL1_LL1MONDRAW_H
0003
0004 #include <onlmon/OnlMonDraw.h>
0005
0006 #include <string> // for allocator, string
0007 #include <TLatex.h>
0008 #include <tuple>
0009
0010 class TCanvas;
0011 class TGraphErrors;
0012 class TPad;
0013
0014 class LL1MonDraw : public OnlMonDraw
0015 {
0016 public:
0017 LL1MonDraw(const std::string &name);
0018
0019 ~LL1MonDraw() override {}
0020
0021 int Init() override;
0022 int Draw(const std::string &what = "ALL") override;
0023 int MakeHtml(const std::string &what = "ALL") override;
0024 int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
0025
0026 protected:
0027 int MakeCanvas(const std::string &name);
0028 int DrawFirst(const std::string &what = "ALL");
0029 int DrawSecond(const std::string &what = "ALL");
0030 int DrawThird(const std::string &what = "ALL");
0031 int DrawFourth(const std::string &what = "ALL");
0032 int DrawFifth(const std::string &what = "ALL");
0033 int DrawSixth(const std::string &what = "ALL");
0034 int DrawSeventh(const std::string &what = "ALL");
0035 int DrawHistory(const std::string &what = "ALL");
0036 TCanvas *TC[7] = {nullptr};
0037 TPad *transparent[7] = {nullptr};
0038 TPad *Pad[6] = {nullptr};
0039 TPad *emcalpad[16] = {nullptr};
0040 const int nPad1 = 4;
0041 double edgediff = 0.03;
0042 double padx1[4] = {edgediff, 0.5+edgediff, edgediff, 0.5 +edgediff};
0043 double pady1[4] = {0.5+edgediff, 0.5+edgediff, edgediff, edgediff};
0044 double padx2[4] = {0.5-edgediff, 1-edgediff, 0.5-edgediff, 1-edgediff};
0045 double pady2[4] = {1-edgediff,1-edgediff,0.5-edgediff,0.5-edgediff};
0046
0047 };
0048
0049 #endif