Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
entrylist_figure2.C
Go to the documentation of this file.
1{
2 TCanvas *c = new TCanvas("c", "c",172,104,447,249);
3 c->Range(0,0,1,1);
4 c->SetBorderSize(2);
5 c->SetFrameFillColor(0);
6
7 TPaveText *pt = new TPaveText(0.0026738,0.790055,0.417112,0.994475,"br");
10 TText *text = pt->AddText("TEntryList for a TChain");
11 pt->Draw();
12
13 pt = new TPaveText(0.00802139,0.541436,0.294118,0.701657,"br");
17 text = pt->AddText("TEntryList");
18 pt->Draw();
19
20 pt = new TPaveText(0.0106952,0.237569,0.294118,0.546961,"br");
21 pt->SetBorderSize(1);
23 pt->SetTextFont(42);
24 text = pt->AddText("fBlocks = 0");
25 text = pt->AddText("fLists");
26 pt->Draw();
27
28 pt = new TPaveText(0.483957,0.607735,0.68984,0.773481,"br");
29 pt->SetBorderSize(1);
31 pt->SetTextFont(42);
32 text = pt->AddText("TChain");
33 pt->Draw();
34
35 pt = new TPaveText(0.347594,0.475138,0.494652,0.596685,"br");
36 pt->SetBorderSize(1);
38 pt->SetTextFont(42);
39 text = pt->AddText("TTree_1");
40 pt->Draw();
41
42 pt = new TPaveText(0.508021,0.475138,0.660428,0.59116,"br");
43 pt->SetBorderSize(1);
45 pt->SetTextFont(42);
46 text = pt->AddText("TTree_2");
47 pt->Draw();
48
49 pt = new TPaveText(0.673797,0.469613,0.826203,0.59116,"br");
50 pt->SetBorderSize(1);
52 pt->SetTextFont(42);
53 text = pt->AddText("TTree_3");
54 pt->Draw();
55
56 pt = new TPaveText(0.251337,0.0331492,0.483957,0.165746,"br");
57 pt->SetBorderSize(1);
59 text = pt->AddText("TEntryList for TTree_1");
60 pt->Draw();
61
62 pt = new TPaveText(0.491979,0.038674,0.729947,0.171271,"br");
63 pt->SetBorderSize(1);
65 text = pt->AddText("TEntryList for TTree_2");
66 pt->Draw();
67
68 pt = new TPaveText(0.737968,0.038674,0.97861,0.171271,"br");
69 pt->SetBorderSize(1);
71 text = pt->AddText("TEntryList for TTree_3");
72 pt->Draw();
73
74 pt = new TPaveText(0.410667,0.21978,0.816,0.395604,"br");
76 text = pt->AddText("TList of TEntryList* objects");
77 pt->Draw();
78 TArrow *arrow = new TArrow(0.224,0.296703,0.4,0.296703,0.05,">");
79 arrow->SetFillColor(1);
80 arrow->SetFillStyle(1001);
81 arrow->Draw();
82}
#define c(i)
Definition RSha256.hxx:101
@ kWhite
Definition Rtypes.h:65
Draw all kinds of Arrows.
Definition TArrow.h:29
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition TAttFill.h:37
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition TAttText.h:44
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition TAttText.h:46
The Canvas class.
Definition TCanvas.h:23
A Pave (see TPave) with text, lines or/and boxes inside.
Definition TPaveText.h:21
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
void Draw(Option_t *option="") override
Draw this pavetext with its current attributes.
virtual void SetBorderSize(Int_t bordersize=4)
Sets the border size of the TPave box and shadow.
Definition TPave.h:77
Base class for several text objects.
Definition TText.h:22
TPaveText * pt
TText * text