HwPCLabel.h
Go to the documentation of this file.
1 #ifndef OM_HWPCLABEL_H
2 #define OM_HWPCLABEL_H
3 #include <list>
4 class TLine;
5 class TPaveText;
6 class TH1;
7 
8 namespace om {
9  ///
10  /// Draw labels on hardware detector view histograms
11  ///
12  class HwPCLabel {
13  public:
14  HwPCLabel();
15  ~HwPCLabel();
16  void Config(const TH1* h, bool isXview);
17  void Draw();
18  void DrawNDOS(bool isXview);
19  private:
20  void Clear();
21  void MakeHorizontalLinesX();
22  void MakeHorizontalLinesY();
23  void MakeVerticalLinesX();
24  void MakeVerticalLinesY();
25  void MakeLabelsX();
26  void MakeLabelsY();
27  private:
28  int fNdiblock;
29  int fNmod;
30  std::list<TLine*> fLine; ///< Collection of line lables
31  TPaveText* fTextTop1; ///< Text label for the top of the plot
32  TPaveText* fTextTop2; ///< Text label for the top of the plot
33  TPaveText* fTextTop3; ///< Text label for the top of the plot
34  TPaveText* fTextSide1; ///< Text label for the side of the plot
35  TPaveText* fTextSide2; ///< Text label for the side of the plot
36  TPaveText* fTextSide3; ///< Text label for the side of the plot
37  TPaveText* fTextSide4; ///< Text label for the side of the plot
38  };
39 }
40 
41 #endif
42 ////////////////////////////////////////////////////////////////////////
TPaveText * fTextTop2
Text label for the top of the plot.
Definition: HwPCLabel.h:32
TPaveText * fTextSide4
Text label for the side of the plot.
Definition: HwPCLabel.h:37
void DrawNDOS(bool isXview)
Definition: HwPCLabel.cxx:297
TPaveText * fTextSide2
Text label for the side of the plot.
Definition: HwPCLabel.h:35
void MakeLabelsX()
Definition: HwPCLabel.cxx:161
TPaveText * fTextSide1
Text label for the side of the plot.
Definition: HwPCLabel.h:34
void Config(const TH1 *h, bool isXview)
Definition: HwPCLabel.cxx:27
TPaveText * fTextTop3
Text label for the top of the plot.
Definition: HwPCLabel.h:33
void MakeVerticalLinesY()
Definition: HwPCLabel.cxx:145
void MakeHorizontalLinesY()
Definition: HwPCLabel.cxx:112
void Clear()
Definition: HwPCLabel.cxx:46
TPaveText * fTextTop1
Text label for the top of the plot.
Definition: HwPCLabel.h:31
std::list< TLine * > fLine
Collection of line lables.
Definition: HwPCLabel.h:30
void MakeLabelsY()
Definition: HwPCLabel.cxx:229
void MakeVerticalLinesX()
Definition: HwPCLabel.cxx:129
TPaveText * fTextSide3
Text label for the side of the plot.
Definition: HwPCLabel.h:36
void MakeHorizontalLinesX()
Definition: HwPCLabel.cxx:95
Online Monitoring package header.