Diana Software
pkg
qroot
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
51
int
fExperimentColor
;
52
53
int
fDataColor
;
54
55
TLatex *
fExperimentLine
;
56
57
TLatex *
fExposureLine
;
58
59
60
ClassDef(
QDianaLabel
,1)
61
};
62
63
#endif
QDianaLabel
Definition:
QDianaLabel.hh:9
QDianaLabel::SetExperimentColor
virtual void SetExperimentColor(Int_t Color)
Definition:
QDianaLabel.hh:22
QDianaLabel::PaintPrimitives
virtual void PaintPrimitives()
Definition:
QDianaLabel.cc:56
QDianaLabel::SetPrelim
virtual void SetPrelim(bool isPrelim)
Definition:
QDianaLabel.hh:28
QDianaLabel::SetExposure
virtual void SetExposure(Double_t Exp)
Definition:
QDianaLabel.hh:26
QDianaLabel::SetIsIsotpicExposure
virtual void SetIsIsotpicExposure(bool Val)
Definition:
QDianaLabel.hh:37
QDianaLabel::fExperimentName
TString fExperimentName
Definition:
QDianaLabel.hh:41
QDianaLabel::fExposureLine
TLatex * fExposureLine
Definition:
QDianaLabel.hh:57
QDianaLabel::fExposure
double fExposure
Definition:
QDianaLabel.hh:45
QDianaLabel::fDataColor
int fDataColor
Definition:
QDianaLabel.hh:53
QDianaLabel::~QDianaLabel
virtual ~QDianaLabel()
Definition:
QDianaLabel.cc:31
QDianaLabel::QDianaLabel
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")
QDianaLabel::fExperimentLine
TLatex * fExperimentLine
Definition:
QDianaLabel.hh:55
QDianaLabel::Draw
virtual void Draw(const char *option="NDC")
Definition:
QDianaLabel.cc:35
QDianaLabel::fSecondLine
TString fSecondLine
Definition:
QDianaLabel.hh:43
QDianaLabel::fIsPrelim
bool fIsPrelim
Definition:
QDianaLabel.hh:47
QDianaLabel::fExperimentColor
int fExperimentColor
Definition:
QDianaLabel.hh:51
QDianaLabel::fIsIsoExp
bool fIsIsoExp
Definition:
QDianaLabel.hh:49
QDianaLabel::GetSecondLine
virtual TString GetSecondLine() const
Definition:
QDianaLabel.cc:41
QDianaLabel::SetDataColor
virtual void SetDataColor(Int_t Color)
Definition:
QDianaLabel.hh:24
QDianaLabel::SetSecondLine
virtual void SetSecondLine(const char *SecondLine)
Definition:
QDianaLabel.hh:30
QDianaLabel::Paint
virtual void Paint(const char *option)
Definition:
QDianaLabel.cc:51
Generated by
1.9.1