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