Diana Software
QDianaLabel.hh
Go to the documentation of this file.
1 #ifndef _Q_DIANA_LABEL_
2 #define _Q_DIANA_LABEL_
3 
4 #include <TList.h>
5 #include <TLatex.h>
6 #include <TPave.h>
7 #include <TAttText.h>
8 
9 class QDianaLabel : public TPave,public TAttText {
10 
11 public:
12 
13  QDianaLabel(double x1,double y1,double x2,double y2,int bordersize=4,
14  const char *ExpName="DIANA",double Exposure=-1,
15  bool isPrelim=true,const char *options="br");
16  virtual ~QDianaLabel();
17 
18  virtual void Draw(const char *option="NDC");
19 
20  virtual TString GetSecondLine() const;
21 
22  virtual void SetExperimentColor(Int_t Color) { fExperimentColor=Color; }
23 
24  virtual void SetDataColor(Int_t Color) { fDataColor=Color; }
25 
26  virtual void SetExposure(Double_t Exp) { fExposure=Exp; }
27 
28  virtual void SetPrelim(bool isPrelim) { fIsPrelim=isPrelim; }
29 
30  virtual void SetSecondLine(const char *SecondLine)
31  { fSecondLine=SecondLine; }
32 
33  virtual void Paint(const char *option);
34 
35  virtual void PaintPrimitives();
36 
37  virtual void SetIsIsotpicExposure(bool Val) { fIsIsoExp=Val; }
38 
39 protected:
40 
41  TString fExperimentName;
42 
43  TString fSecondLine;
44 
45  double fExposure;
46 
47  bool fIsPrelim;
48 
49  bool fIsIsoExp;
50 
52 
54 
55  TLatex *fExperimentLine;
56 
57  TLatex *fExposureLine;
58 
59 
60  ClassDef(QDianaLabel,1)
61 };
62 
63 #endif
virtual void SetExperimentColor(Int_t Color)
Definition: QDianaLabel.hh:22
virtual void PaintPrimitives()
Definition: QDianaLabel.cc:56
virtual void SetPrelim(bool isPrelim)
Definition: QDianaLabel.hh:28
virtual void SetExposure(Double_t Exp)
Definition: QDianaLabel.hh:26
virtual void SetIsIsotpicExposure(bool Val)
Definition: QDianaLabel.hh:37
TString fExperimentName
Definition: QDianaLabel.hh:41
TLatex * fExposureLine
Definition: QDianaLabel.hh:57
double fExposure
Definition: QDianaLabel.hh:45
virtual ~QDianaLabel()
Definition: QDianaLabel.cc:31
QDianaLabel(double x1, double y1, double x2, double y2, int bordersize=4, const char *ExpName="DIANA", double Exposure=-1, bool isPrelim=true, const char *options="br")
TLatex * fExperimentLine
Definition: QDianaLabel.hh:55
virtual void Draw(const char *option="NDC")
Definition: QDianaLabel.cc:35
TString fSecondLine
Definition: QDianaLabel.hh:43
bool fIsPrelim
Definition: QDianaLabel.hh:47
int fExperimentColor
Definition: QDianaLabel.hh:51
bool fIsIsoExp
Definition: QDianaLabel.hh:49
virtual TString GetSecondLine() const
Definition: QDianaLabel.cc:41
virtual void SetDataColor(Int_t Color)
Definition: QDianaLabel.hh:24
virtual void SetSecondLine(const char *SecondLine)
Definition: QDianaLabel.hh:30
virtual void Paint(const char *option)
Definition: QDianaLabel.cc:51