Logo ROOT   6.08/07
Reference Guide
entrylistblock_figure1.C
Go to the documentation of this file.
1 {
2 //=========Macro generated from canvas: c/c
3 //========= (Fri Mar 16 18:59:21 2007) by ROOT version5.15/03
4  TCanvas *c = new TCanvas("c", "c",49,123,752,435);
5  c->Range(0,0,1,1);
6  c->SetBorderSize(2);
7  c->SetFrameFillColor(0);
8 
9  TPaveText *pt = new TPaveText(0.00313972,0.650146,0.22135,0.772595,"br");
10  pt->SetFillColor(19);
11  TText *text = pt->AddText("TEntryListBlock");
12  pt->Draw();
13 
14  pt = new TPaveText(0.00313972,0.827988,0.675039,0.994169,"br");
15  pt->SetFillColor(19);
16  pt->SetTextColor(4);
17  text = pt->AddText("Indices representation in a TEntryListBlock");
18  pt->Draw();
19 
20  pt = new TPaveText(0.00410678,0.412955,0.221766,0.651822,"br");
21  pt->SetFillColor(19);
22  pt->SetTextAlign(12);
23  pt->SetTextSize(0.048583);
24  text = pt->AddText("UShort_t* fIndices");
25  text = pt->AddText("Int_t fType");
26  pt->Draw();
27 
28  pt = new TPaveText(0.324961,0.708455,0.959184,0.804665,"br");
29  pt->SetFillColor(19);
30  text = pt->AddText("Suppose,that this block stores entries");
31  text = pt->AddText("0, 2, 4, 10, 11, 12");
32  pt->Draw();
33 
34  pt = new TPaveText(0.232227,0.541176,0.333333,0.641176,"br");
35  pt->SetBorderSize(0);
36  pt->SetFillColor(19);
37  text = pt->AddText("fType=0");
38  text->SetTextAngle(-15);
39  pt->Draw();
40 
41  pt = new TPaveText(0.355114,0.189066,0.457386,0.255125,"br");
42  pt->SetBorderSize(0);
43  pt->SetFillColor(19);
44  text = pt->AddText("fIndices[0]");
45  pt->Draw();
46 
47  pt = new TPaveText(0.521193,0.38484,0.77708,0.48105,"br");
48  pt->SetBorderSize(0);
49  pt->SetFillColor(19);
50  text = pt->AddText("fIndices[0]");
51  pt->Draw();
52 
53  pt = new TPaveText(0.355619,0.239726,0.458037,0.305936,"br");
54  pt->SetBorderSize(0);
55  pt->SetFillColor(19);
56  pt->SetTextSize(0.0342466);
57  text = pt->AddText("0");
58  pt->Draw();
59 
60  pt = new TPaveText(0.264241,0.383481,0.363924,0.486726,"br");
61  pt->SetBorderSize(0);
62  pt->SetFillColor(19);
63  text = pt->AddText("fType=1");
64  text->SetTextAngle(-50);
65  pt->Draw();
66 
67  pt = new TPaveText(0.458807,0.173121,0.559659,0.273349,"br");
68  pt->SetBorderSize(0);
69  pt->SetFillColor(19);
70  text = pt->AddText("fIndices[1]");
71  pt->Draw();
72 
73  pt = new TPaveText(0.473684,0.251142,0.540541,0.299087,"br");
74  pt->SetBorderSize(0);
75  pt->SetFillColor(19);
76  pt->SetTextSize(0.0342466);
77  text = pt->AddText("2");
78  pt->Draw();
79 
80  pt = new TPaveText(0.556818,0.193622,0.659091,0.250569,"br");
81  pt->SetBorderSize(0);
82  pt->SetFillColor(19);
83  text = pt->AddText("fIndices[2]");
84  pt->Draw();
85 
86  pt = new TPaveText(0.55761,0.244292,0.660028,0.30137,"br");
87  pt->SetBorderSize(0);
88  pt->SetFillColor(19);
89  pt->SetTextSize(0.0342466);
90  text = pt->AddText("4");
91  pt->Draw();
92 
93  pt = new TPaveText(0.659091,0.191344,0.758523,0.255125,"br");
94  pt->SetBorderSize(0);
95  pt->SetFillColor(19);
96  text = pt->AddText("fIndices[3]");
97  pt->Draw();
98 
99  pt = new TPaveText(0.657183,0.239726,0.756757,0.303653,"br");
100  pt->SetBorderSize(0);
101  pt->SetFillColor(19);
102  pt->SetTextSize(0.0342466);
103  text = pt->AddText("10");
104  pt->Draw();
105 
106  pt = new TPaveText(0.759943,0.189066,0.859375,0.255125,"br");
107  pt->SetBorderSize(0);
108  pt->SetFillColor(19);
109  text = pt->AddText("fIndices[4]");
110  pt->Draw();
111 
112  pt = new TPaveText(0.758179,0.239726,0.857752,0.305936,"br");
113  pt->SetBorderSize(0);
114  pt->SetFillColor(19);
115  pt->SetTextSize(0.0342466);
116  text = pt->AddText("11");
117  pt->Draw();
118 
119  pt = new TPaveText(0.859943,0.189066,0.959375,0.255125,"br");
120  pt->SetBorderSize(0);
121  pt->SetFillColor(19);
122  text = pt->AddText("fIndices[5]");
123  pt->Draw();
124 
125  pt = new TPaveText(0.852063,0.239726,0.951636,0.305936,"br");
126  pt->SetBorderSize(0);
127  pt->SetFillColor(19);
128  pt->SetTextSize(0.0342466);
129  text = pt->AddText("12");
130  pt->Draw();
131 
132  pt = new TPaveText(0.786325,0.503432,0.830484,0.549199,"br");
133  pt->SetBorderSize(0);
134  pt->SetFillColor(19);
135  text = pt->AddText("1");
136  pt->Draw();
137 
138  pt = new TPaveText(0.750712,0.503432,0.796296,0.549199,"br");
139  pt->SetBorderSize(0);
140  pt->SetFillColor(19);
141  text = pt->AddText("1");
142  pt->Draw();
143 
144  pt = new TPaveText(0.825472,0.5,0.871069,0.54386,"br");
145  pt->SetBorderSize(0);
146  pt->SetFillColor(19);
147  text = pt->AddText("0");
148  pt->Draw();
149 
150  pt = new TPaveText(0.863208,0.5,0.908805,0.54386,"br");
151  pt->SetBorderSize(0);
152  pt->SetFillColor(19);
153  text = pt->AddText("0");
154  pt->Draw();
155 
156  pt = new TPaveText(0.902516,0.5,0.948113,0.54386,"br");
157  pt->SetBorderSize(0);
158  pt->SetFillColor(19);
159  text = pt->AddText("0");
160  pt->Draw();
161 
162  pt = new TPaveText(0.677673,0.5,0.72327,0.54386,"br");
163  pt->SetBorderSize(0);
164  pt->SetFillColor(19);
165  text = pt->AddText("0");
166  pt->Draw();
167 
168  pt = new TPaveText(0.639937,0.5,0.685535,0.54386,"br");
169  pt->SetBorderSize(0);
170  pt->SetFillColor(19);
171  text = pt->AddText("0");
172  pt->Draw();
173 
174  pt = new TPaveText(0.602201,0.5,0.647799,0.54386,"br");
175  pt->SetBorderSize(0);
176  pt->SetFillColor(19);
177  text = pt->AddText("0");
178  pt->Draw();
179 
180  pt = new TPaveText(0.564465,0.5,0.610063,0.54386,"br");
181  pt->SetBorderSize(0);
182  pt->SetFillColor(19);
183  text = pt->AddText("0");
184  pt->Draw();
185 
186  pt = new TPaveText(0.529874,0.5,0.575472,0.54386,"br");
187  pt->SetBorderSize(0);
188  pt->SetFillColor(19);
189  text = pt->AddText("0");
190  pt->Draw();
191 
192  pt = new TPaveText(0.45283,0.502924,0.498428,0.546784,"br");
193  pt->SetBorderSize(0);
194  pt->SetFillColor(19);
195  text = pt->AddText("0");
196  pt->Draw();
197 
198  pt = new TPaveText(0.380503,0.502924,0.426101,0.546784,"br");
199  pt->SetBorderSize(0);
200  pt->SetFillColor(19);
201  text = pt->AddText("0");
202  pt->Draw();
203 
204  pt = new TPaveText(0.710826,0.503432,0.766382,0.549199,"br");
205  pt->SetBorderSize(0);
206  pt->SetFillColor(19);
207  text = pt->AddText("1");
208  pt->Draw();
209 
210  pt = new TPaveText(0.487179,0.505721,0.532764,0.551487,"br");
211  pt->SetBorderSize(0);
212  pt->SetFillColor(19);
213  pt->SetTextSize(0.0389016);
214  text = pt->AddText("1");
215  pt->Draw();
216 
217  pt = new TPaveText(0.413105,0.501144,0.460114,0.549199,"br");
218  pt->SetBorderSize(0);
219  pt->SetFillColor(19);
220  pt->SetTextSize(0.0389016);
221  text = pt->AddText("1");
222  pt->Draw();
223 
224  pt = new TPaveText(0.344729,0.505721,0.393162,0.551487,"br");
225  pt->SetBorderSize(0);
226  pt->SetFillColor(19);
227  text = pt->AddText("1");
228  pt->Draw();
229  TArrow *arrow = new TArrow(0.225552,0.572271,0.35489,0.283186,0.03,"|>");
230  arrow->SetFillColor(1);
231  arrow->SetFillStyle(1001);
232  arrow->Draw();
233  arrow = new TArrow(0.22082,0.581121,0.344937,0.519174,0.03,"|>");
234  arrow->SetFillColor(1);
235  arrow->SetFillStyle(1001);
236  arrow->Draw();
237  TLine *line = new TLine(0.35,0.5,0.95,0.5);
238  line->Draw();
239  line = new TLine(0.35,0.49,0.35,0.51);
240  line->Draw();
241  line = new TLine(0.3875,0.49,0.3875,0.51);
242  line->Draw();
243  line = new TLine(0.419,0.49,0.419,0.51);
244  line->Draw();
245  line = new TLine(0.4565,0.49,0.4565,0.51);
246  line->Draw();
247  line = new TLine(0.494,0.49,0.494,0.51);
248  line->Draw();
249  line = new TLine(0.5315,0.49,0.5315,0.51);
250  line->Draw();
251  line = new TLine(0.569,0.49,0.569,0.51);
252  line->Draw();
253  line = new TLine(0.6065,0.49,0.6065,0.51);
254  line->Draw();
255  line = new TLine(0.644,0.48,0.644,0.52);
256  line->Draw();
257  line = new TLine(0.6815,0.49,0.6815,0.51);
258  line->Draw();
259  line = new TLine(0.719,0.49,0.719,0.51);
260  line->Draw();
261  line = new TLine(0.7565,0.49,0.7565,0.51);
262  line->Draw();
263  line = new TLine(0.794,0.49,0.794,0.51);
264  line->Draw();
265  line = new TLine(0.8315,0.49,0.8315,0.51);
266  line->Draw();
267  line = new TLine(0.869,0.49,0.869,0.51);
268  line->Draw();
269  line = new TLine(0.9065,0.49,0.9065,0.51);
270  line->Draw();
271  line = new TLine(0.944,0.49,0.944,0.51);
272  line->Draw();
273  line = new TLine(0.944,0.49,0.944,0.51);
274  line->Draw();
275  line = new TLine(0.36,0.251142,0.96,0.251142);
276  line->Draw();
277  line = new TLine(0.36,0.24,0.36,0.26);
278  line->Draw();
279  line = new TLine(0.46,0.24,0.46,0.26);
280  line->Draw();
281  line = new TLine(0.56,0.24,0.56,0.26);
282  line->Draw();
283  line = new TLine(0.66,0.24,0.66,0.26);
284  line->Draw();
285  line = new TLine(0.76,0.24,0.76,0.26);
286  line->Draw();
287  line = new TLine(0.86,0.24,0.86,0.26);
288  line->Draw();
289  line = new TLine(0.96,0.24,0.96,0.26);
290  line->Draw();
291  return c;
292 }
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
Definition: TPaveText.cxx:211
TLine * line
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:160
return c
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition: TObject.cxx:255
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition: TAttFill.h:44
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:33
TArrow * arrow
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition: TAttText.h:47
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:42
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:4654
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
Definition: TAttText.h:48
A simple line.
Definition: TLine.h:33
TPaveText * pt
The Canvas class.
Definition: TCanvas.h:41
A Pave (see TPave) with text, lines or/and boxes inside.
Definition: TPaveText.h:27
TText * text
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
Definition: TAttText.h:49
void SetFrameFillColor(Color_t color=1)
Definition: TAttPad.h:75
virtual void SetBorderSize(Short_t bordersize)
Definition: TPad.h:309
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:52
Draw all kinds of Arrows.
Definition: TArrow.h:35
virtual void SetBorderSize(Int_t bordersize=4)
Definition: TPave.h:74