File indexing completed on 2025-08-05 08:20:27
0001 #ifndef LOCALPOL_LOCALPOLMONDRAW_H
0002 #define LOCALPOL_LOCALPOLMONDRAW_H
0003
0004 #include <onlmon/OnlMonDraw.h>
0005
0006 #include <TH2.h>
0007 #include <map>
0008 #include <string> // for allocator, string
0009
0010 class OnlMonDB;
0011 class TCanvas;
0012 class TGraphErrors;
0013 class TGraphPolar;
0014 class TGraphPolargram;
0015 class TPad;
0016
0017 class LocalPolMonDraw : public OnlMonDraw
0018 {
0019 public:
0020 explicit LocalPolMonDraw(const std::string &name);
0021
0022 ~LocalPolMonDraw() override {}
0023
0024 int Init() override;
0025 int Draw(const std::string &what = "ALL") override;
0026 int MakeHtml(const std::string &what = "ALL") override;
0027 int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
0028
0029 protected:
0030 int MakeCanvas(const std::string &name);
0031 int DrawFirst(const std::string &what = "ALL");
0032 int DrawSecond(const std::string &what = "ALL");
0033 int DrawThird(const std::string &what = "ALL");
0034 int DrawFourth(const std::string &what = "ALL");
0035 int DrawFifth(const std::string &what = "ALL");
0036 int DrawSixth(const std::string &what = "ALL");
0037 int DrawSeventh(const std::string &what = "ALL");
0038 int DrawEighth(const std::string &what = "ALL");
0039 int DrawNinth(const std::string &what = "ALL");
0040
0041 TCanvas *TC[10] = {nullptr};
0042
0043 TPad *transparent[10] = {nullptr};
0044 TPad ***Pad = nullptr;
0045
0046 TH1 *hframe = nullptr;
0047 TH1 *hscrambleframe = nullptr;
0048 TH1D **h_PreviousCounts = nullptr;
0049 TH1D **h_PreviousCountsScramble = nullptr;
0050
0051 TGraphErrors ****g_Asym = nullptr;
0052 TGraphErrors ****g_AsymScramble = nullptr;
0053 TGraphPolar ***g_Polar = nullptr;
0054 TGraphPolargram *gpolargram = nullptr;
0055
0056 TH1D ****h_Asym = nullptr;
0057 TH1D ****h_ScrambleAsym = nullptr;
0058 std::map<int, long int> m_time;
0059
0060
0061
0062
0063 double thresholdNewPoint = 5e3;
0064 };
0065
0066 #endif