Logo ROOT   6.10/09
Reference Guide
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");
8  pt->SetFillColor(kWhite);
9  pt->SetTextColor(4);
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");
14  pt->SetBorderSize(1);
15  pt->SetFillColor(kWhite);
16  pt->SetTextFont(42);
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);
22  pt->SetFillColor(kWhite);
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);
30  pt->SetFillColor(kWhite);
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);
37  pt->SetFillColor(kWhite);
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);
44  pt->SetFillColor(kWhite);
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);
51  pt->SetFillColor(kWhite);
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);
58  pt->SetFillColor(kWhite);
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);
64  pt->SetFillColor(kWhite);
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);
70  pt->SetFillColor(kWhite);
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");
75  pt->SetFillColor(kWhite);
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 }
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:234
TText * text
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
Definition: TPaveText.cxx:183
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition: TAttFill.h:39
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:45
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
Definition: TArrow.cxx:122
Base class for several text objects.
Definition: TText.h:23
Definition: Rtypes.h:55
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:37
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
Definition: TPad.cxx:5085
TPaveText * pt
The Canvas class.
Definition: TCanvas.h:31
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:21
TArrow * arrow
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition: TAttText.h:43
void SetFrameFillColor(Color_t color=1)
Definition: TAttPad.h:73
virtual void SetBorderSize(Short_t bordersize)
Definition: TPad.h:314
Draw all kinds of Arrows.
Definition: TArrow.h:29
virtual void SetBorderSize(Int_t bordersize=4)
Definition: TPave.h:70