File indexing completed on 2025-08-05 08:20:34
0001 #ifndef ZDC_ZDCMONDRAW_H
0002 #define ZDC_ZDCMONDRAW_H
0003
0004 #include <onlmon/OnlMonDraw.h>
0005
0006 #include <string> // for allocator, string
0007
0008 class TH1;
0009 class OnlMonDB;
0010 class TCanvas;
0011 class TGraphErrors;
0012 class TPad;
0013 class ZdcMonDraw : public OnlMonDraw
0014 {
0015 public:
0016 ZdcMonDraw(const std::string &name);
0017
0018 ~ZdcMonDraw() override {}
0019
0020 int Init() override;
0021 int Draw(const std::string &what = "ALL") override;
0022 int MakeHtml(const std::string &what = "ALL") override;
0023 int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
0024
0025 private:
0026 static constexpr int NUM_CANV = 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
0027 static constexpr int NUM_PAD = 4 + 3 + 12 + 2 + 4 + 15 + 15 + 4 + 1 + 4 + 5 + 4;
0028
0029
0030 TH1 *smd_adc_n_hor_means = nullptr;
0031 TH1 *smd_adc_s_hor_means = nullptr;
0032 TH1 *smd_adc_n_ver_means = nullptr;
0033 TH1 *smd_adc_s_ver_means = nullptr;
0034
0035 int MakeCanvas(const std::string &name);
0036 int DrawFirst(const std::string &what = "ALL");
0037 int DrawSecond(const std::string &what = "ALL");
0038 int DrawSmdValues(const std::string &what = "ALL");
0039 int DrawSmdNorthandSouth(const std::string &what = "ALL");
0040 int DrawSmdXY(const std::string &what = "ALL");
0041 int DrawSmdAdcNorthIndividual(const std::string &what = "ALL");
0042 int DrawSmdAdcSouthIndividual(const std::string &what = "ALL");
0043 int Drawveto(const std::string &what = "ALL");
0044 int DrawWaveForm(const std::string &what = "ALL");
0045 int DrawSmdMultiplicities(const std::string &what = "ALL");
0046 int DrawSmdAdcMeans(const std::string &what = "ALL");
0047
0048 TCanvas *TC[NUM_CANV] = {nullptr};
0049 TPad *transparent[NUM_CANV] = {nullptr};
0050 TPad *Pad[NUM_PAD] = {nullptr};
0051 };
0052
0053 #endif