Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:20:29

0001 #ifndef SEPD_SEPDMONDRAW_H
0002 #define SEPD_SEPDMONDRAW_H
0003 
0004 #include <onlmon/OnlMonDraw.h>
0005 
0006 #include <TH2.h>
0007 #include <TProfile.h>
0008 #include <TStyle.h>
0009 
0010 #include <string>  // for allocator, string
0011 
0012 class TCanvas;
0013 class TGraphErrors;
0014 class TPad;
0015 class TProfile;
0016 
0017 class SepdMonDraw : public OnlMonDraw
0018 {
0019  public:
0020   SepdMonDraw(const std::string &name);
0021 
0022   ~SepdMonDraw() 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 DrawServerStats();
0038   int returnSector(int ch);
0039   int returnTile(int ch);
0040   int returnArm(int ch);
0041   int returnRing(int ch);
0042 
0043   TCanvas* TC[9] {nullptr};
0044   TPad* transparent[9] {nullptr};
0045   TPad* Pad[18] {nullptr};
0046   TPad* adc_dist_pad[32] {nullptr};
0047   TPad* warning[18] {nullptr};
0048   TGraphErrors *gr[2] {nullptr};
0049 };
0050 
0051 #endif /* SEPD_SEPDMONDRAW_H */