Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LL1MonDraw.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LL1MonDraw.h
1 #ifndef LL1_LL1MONDRAW_H
2 #define LL1_LL1MONDRAW_H
3 
4 #include <onlmon/OnlMonDraw.h>
5 
6 #include <string> // for allocator, string
7 
8 class TCanvas;
9 class TGraphErrors;
10 class TPad;
11 
12 class LL1MonDraw : public OnlMonDraw
13 {
14  public:
15  LL1MonDraw(const std::string &name);
16 
17  ~LL1MonDraw() override {}
18 
19  int Init() override;
20  int Draw(const std::string &what = "ALL") override;
21  int MakeHtml(const std::string &what = "ALL") override;
22  int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
23 
24  protected:
25  int MakeCanvas(const std::string &name);
26  int DrawFirst(const std::string &what = "ALL");
27  int DrawSecond(const std::string &what = "ALL");
28  int DrawThird(const std::string &what = "ALL");
29  int DrawHistory(const std::string &what = "ALL");
30  TCanvas *TC[3] = {nullptr};
31  TPad *transparent[3] = {nullptr};
32  TPad *Pad[6] = {nullptr};
33 
34  const int nPad1 = 4;
35  double edgediff = 0.03;
36  double padx1[4] = {edgediff, 0.5+edgediff, edgediff, 0.5 +edgediff};
37  double pady1[4] = {0.5+edgediff, 0.5+edgediff, edgediff, edgediff};
38  double padx2[4] = {0.5-edgediff, 1-edgediff, 0.5-edgediff, 1-edgediff};
39  double pady2[4] = {1-edgediff,1-edgediff,0.5-edgediff,0.5-edgediff};
40 };
41 
42 #endif /* LL1_LL1MONDRAW_H */