Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcMonDraw.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcMonDraw.h
1 #ifndef TPC_TPCMONDRAW_H
2 #define TPC_TPCMONDRAW_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 class TH2;
12 class TPaveLabel;
13 
14 class TpcMonDraw : public OnlMonDraw
15 {
16  public:
17  TpcMonDraw(const std::string &name);
18 
19  ~TpcMonDraw() override {}
20 
21  int Init() override;
22  int Draw(const std::string &what = "ALL") override;
23  int MakeHtml(const std::string &what = "ALL") override;
24  int SavePlot(const std::string &what = "ALL", const std::string &type = "png") override;
25 
26  protected:
27  int MakeCanvas(const std::string &name);
28  int DrawFirst(const std::string &what = "ALL");
29  int DrawSecond(const std::string &what = "ALL");
30  int DrawTPCModules(const std::string &what = "ALL");
31  int DrawTPCSampleSize(const std::string &what = "ALL");
32  int DrawTPCCheckSum(const std::string &what = "ALL");
33  int DrawTPCADCSample(const std::string &what = "ALL");
34  int DrawTPCADCSampleLarge(const std::string &what = "ALL");
35  int DrawTPCMaxADCModule(const std::string &what = "ALL");
36  int DrawTPCRawADC1D(const std::string &what = "ALL");
37  int DrawTPCMaxADC1D(const std::string &what = "ALL");
38  int DrawTPCPedestSubADC1D(const std::string &what = "ALL");
39  int DrawTPCXYclusters(const std::string &what = "ALL");
40  int DrawTPCXYclusters_unweighted(const std::string &what = "ALL");
41  int DrawTPCZYclusters(const std::string &what = "ALL");
42  int DrawTPCZYclusters_unweighted(const std::string &what = "ALL");
43  int DrawTPCchannelphi_layer_weighted(const std::string &what = "ALL");
44  time_t getTime();
45 
46  TCanvas *TC[17] = {nullptr};
47  TPad *transparent[16] = {nullptr};
48  TPad *Pad[11] = {nullptr};
49  TGraphErrors *gr[2] = {nullptr};
50  //TPC Module
51  TH2 *dummy_his1 = nullptr;
52  TH2 *dummy_his2 = nullptr;
53 
54  //TPC Module
55  TH2 *dummy_his1_XY = nullptr;
56  TH2 *dummy_his2_XY = nullptr;
57 
58  TH2 *dummy_his1_ZY = nullptr;
59 
60  TH2 *dummy_his1_XY_unw = nullptr;
61  TH2 *dummy_his2_XY_unw = nullptr;
62 
63  TH2 *dummy_his1_ZY_unw = nullptr;
64 
66 
67  TPaveLabel* NS18 = nullptr; //North Side labels
68  TPaveLabel* NS17 = nullptr;
69  TPaveLabel* NS16 = nullptr;
70  TPaveLabel* NS15 = nullptr;
71  TPaveLabel* NS14 = nullptr;
72  TPaveLabel* NS13 = nullptr;
73  TPaveLabel* NS12 = nullptr;
74  TPaveLabel* NS23 = nullptr;
75  TPaveLabel* NS22 = nullptr;
76  TPaveLabel* NS21 = nullptr;
77  TPaveLabel* NS20 = nullptr;
78  TPaveLabel* NS19 = nullptr;
79 
80  TPaveLabel* SS00 = nullptr; //South Side labels
81  TPaveLabel* SS01 = nullptr;
82  TPaveLabel* SS02 = nullptr;
83  TPaveLabel* SS03 = nullptr;
84  TPaveLabel* SS04 = nullptr;
85  TPaveLabel* SS05 = nullptr;
86  TPaveLabel* SS06 = nullptr;
87  TPaveLabel* SS07 = nullptr;
88  TPaveLabel* SS08 = nullptr;
89  TPaveLabel* SS09 = nullptr;
90  TPaveLabel* SS10 = nullptr;
91  TPaveLabel* SS11 = nullptr;
92 };
93 
94 #endif /* TPC_TPCMONDRAW_H */