Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HcalMonDraw.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HcalMonDraw.h
1 #ifndef HCAL_HCALMONDRAW_H
2 #define HCAL_HCALMONDRAW_H
3 
4 #include <onlmon/OnlMonDraw.h>
5 
6 #include <TH2.h>
7 #include <TStyle.h>
8 
9 #include <string> // for allocator, string
10 
11 class TCanvas;
12 class TGraphErrors;
13 class TPad;
14 
15 class HcalMonDraw : public OnlMonDraw
16 {
17  public:
18  explicit HcalMonDraw(const std::string& name);
19 
20  ~HcalMonDraw() override {}
21 
22  int Init() override;
23  int Draw(const std::string& what = "ALL") override;
24  int MakeHtml(const std::string& what = "ALL") override;
25  int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
26  void HandleEvent(int, int, int, TObject*);
27 
28 
29  private:
30  int MakeCanvas(const std::string& name);
31  int DrawFirst(const std::string& what = "ALL");
32  int DrawSecond(const std::string& what = "ALL");
33  int DrawThird(const std::string& what = "ALL");
34  int DrawFourth(const std::string& what = "ALL");
35  int DrawFifth(const std::string& what = "ALL");
36  int FindHotTower(TPad* warn, TH2*);
37  void DrawTowerAvg();
38  void DrawHitMap();
39  time_t getTime();
40 
41  // int DrawDeadServer(TPad *transparent);
42  std::string prefix = "HCALMON";
43  TCanvas* TC[9] = {nullptr};
44  TPad* transparent[9] = {nullptr};
45  TPad* Pad[19] = {nullptr};
46  TPad* warning[18] = {nullptr};
47  TGraphErrors* gr[2] = {nullptr};
48  TStyle* hcalStyle = nullptr;
49 };
50 
51 #endif /* HCAL_HCALMONDRAW_H */