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