10 int bordersize,
const char *ExpName,
11 double Exposure,
bool isPrelim,
13 : TPave(x1,y1,x2,y2,bordersize,Form(
"%s:NDC",options)),
14 fExperimentName(ExpName),
19 fExperimentColor(TColor::GetColor(176,19,59)),
20 fDataColor(TColor::GetColor(176,19,59)),
21 fExperimentLine(NULL),
27 fExperimentLine=
new TLatex();
28 fExposureLine=
new TLatex();
36 TPave::AppendPad(option);
46 DatText=Form(
"Isotopic Exposure: %4.1f kg#upointyr",
fExposure);
48 DatText=Form(
"Exposure: %4.1f kg#upointyr",
fExposure);
52 TPave::ConvertNDCtoPad();
53 TPave::PaintPave(fX1,fY1,fX2,fY2,GetBorderSize(),option);
60 ExpText+=
" Preliminary";
84 Double_t maxHeight=0,maxWidth=0;
92 Double_t tmpsize_h=0.75*(fY2-fY1)/maxHeight;
93 Double_t tmpsize_w=0.9*(fX2-fX1)/maxWidth;
94 textsize*=TMath::Min(tmpsize_h,tmpsize_w);
99 double dpx=(fX2NDC-fX1NDC)/(fX2-fX1);
100 double dpy=(fY2NDC-fY1NDC)/(fY2-fY1);
102 if((GetTextAlign()/10)==1){
106 else if((GetTextAlign()/10)==2){
107 x2=x1=0.5*(fX1NDC+fX2NDC);
119 y1=.5*(fY2NDC+fY1NDC);
ClassImp(QDianaLabel) QDianaLabel
virtual void PaintPrimitives()
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")
virtual void Draw(const char *option="NDC")
virtual TString GetSecondLine() const
virtual void Paint(const char *option)