#include "Rtypes.h"
#include <TCanvas.h>
Go to the source code of this file.
|
| void | ATLASLabel (Double_t x, Double_t y, char *text=NULL, Color_t color=1) |
| void | ATLASLabelOld (Double_t x, Double_t y, bool Preliminary=false, Color_t color=1) |
| void | ATLASVersion (char *version=NULL, Double_t x=0.88, Double_t y=0.975, Color_t color=1) |
| void | myText (Double_t x, Double_t y, Color_t color, char *text) |
| void | myBoxText (Double_t x, Double_t y, Double_t boxsize, Int_t mcolor, char *text) |
| void | myMarkerText (Double_t x, Double_t y, Int_t color, Int_t mstyle, char *text) |
◆ ATLASLabel()
| void ATLASLabel |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
char * | text = NULL, |
|
|
Color_t | color = 1 ) |
◆ ATLASLabelOld()
| void ATLASLabelOld |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
bool | Preliminary = false, |
|
|
Color_t | color = 1 ) |
Definition at line 64 of file AtlasLabels.cxx.
65{
70 l.DrawLatex(
x,
y,
"ATLAS");
71 if (Preliminary) {
76 p.DrawLatex(
x+0.115,
y,
"Preliminary");
77 }
78}
l
Printing final latex table to .tex output file.
◆ ATLASVersion()
| void ATLASVersion |
( |
char * | version = NULL, |
|
|
Double_t | x = 0.88, |
|
|
Double_t | y = 0.975, |
|
|
Color_t | color = 1 ) |
◆ myBoxText()
| void myBoxText |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Double_t | boxsize, |
|
|
Int_t | mcolor, |
|
|
char * | text ) |
|
inline |
Definition at line 301 of file AtlasUtils.h.
301 {
302
304
305 TLatex
l;
l.SetTextAlign(12);
307 l.DrawLatex(
x,
y,text);
308
312 Double_t
x1=
x2-boxsize;
313
314 printf("x1= %f x2= %f y1= %f y2= %f \n",x1,x2,y1,y2);
315
316 TPave *mbox= new TPave(x1,y1,x2,y2,0,"NDC");
317
318 mbox->SetFillColor(mcolor);
319 mbox->SetFillStyle(1001);
320 mbox->Draw();
321
322 TLine mline;
323 mline.SetLineWidth(4);
324 mline.SetLineColor(1);
325 mline.SetLineStyle(1);
326 Double_t ytmp=(
y1+
y2)/2.;
327 mline.DrawLineNDC(x1,ytmp,x2,
y);
328
329}
◆ myMarkerText()
| void myMarkerText |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Int_t | color, |
|
|
Int_t | mstyle, |
|
|
char * | text ) |
|
inline |
Definition at line 332 of file AtlasUtils.h.
332 {
333
334
335
337 TMarker *
marker =
new TMarker(
x-(0.4*tsize),
y,8);
339 marker->SetMarkerStyle(mstyle);
340 marker->SetMarkerSize(2.0);
342
343 TLatex
l;
l.SetTextAlign(12);
345 l.DrawLatex(
x,
y,text);
346}
◆ myText()
| void myText |
( |
Double_t | x, |
|
|
Double_t | y, |
|
|
Color_t | color, |
|
|
char * | text ) |
|
inline |
Definition at line 291 of file AtlasUtils.h.
291 {
292
293
297 l.DrawLatex(
x,
y,text);
298}