ATLAS Offline Software
Loading...
Searching...
No Matches
AtlasLabels.h File Reference
#include "Rtypes.h"
#include <TCanvas.h>
Include dependency graph for Reconstruction/Jet/JetUncertainties/testingMacros/atlasstyle/AtlasLabels.h:

Go to the source code of this file.

Functions

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)

Function Documentation

◆ 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{
66 TLatex l; //l.SetTextAlign(12); l.SetTextSize(tsize);
67 l.SetNDC();
68 l.SetTextFont(72);
69 l.SetTextColor(color);
70 l.DrawLatex(x,y,"ATLAS");
71 if (Preliminary) {
72 TLatex p;
73 p.SetNDC();
74 p.SetTextFont(42);
75 p.SetTextColor(color);
76 p.DrawLatex(x+0.115,y,"Preliminary");
77 }
78}
#define y
#define x
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
303 Double_t tsize=0.06;
304
305 TLatex l; l.SetTextAlign(12); //l.SetTextSize(tsize);
306 l.SetNDC();
307 l.DrawLatex(x,y,text);
308
309 Double_t y1=y-0.25*tsize;
310 Double_t y2=y+0.25*tsize;
311 Double_t x2=x-0.3*tsize;
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 // printf("**myMarker: text= %s\ m ",text);
335
336 Double_t tsize=0.06;
337 TMarker *marker = new TMarker(x-(0.4*tsize),y,8);
338 marker->SetMarkerColor(color); marker->SetNDC();
339 marker->SetMarkerStyle(mstyle);
340 marker->SetMarkerSize(2.0);
341 marker->Draw();
342
343 TLatex l; l.SetTextAlign(12); //l.SetTextSize(tsize);
344 l.SetNDC();
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 //Double_t tsize=0.05;
294 TLatex l; //l.SetTextAlign(12); l.SetTextSize(tsize);
295 l.SetNDC();
296 l.SetTextColor(color);
297 l.DrawLatex(x,y,text);
298}