ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
framework.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// \notebook
4
/// \preview An example with basic graphics illustrating the Object Oriented User Interface of ROOT.
5
///
6
/// \macro_image
7
/// \macro_code
8
///
9
/// \author Rene Brun
10
11
void
framework()
12
{
13
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"The ROOT Framework"
, 200, 10, 700, 500);
14
c1
->Range(0, 0, 19, 12);
15
//
16
TPavesText
*rootf =
new
TPavesText
(0.4, 0.6, 18, 2.3, 20,
"tr"
);
17
rootf->
AddText
(
"ROOT Framework"
);
18
rootf->
SetFillColor
(42);
19
rootf->
Draw
();
20
//
21
TPavesText
*eventg =
new
TPavesText
(0.99, 2.66, 3.29, 5.67, 4,
"tr"
);
22
eventg->
SetFillColor
(38);
23
eventg->
AddText
(
"Event"
);
24
eventg->
AddText
(
"Generators"
);
25
eventg->
Draw
();
26
//
27
TPavesText
*simul =
new
TPavesText
(3.62, 2.71, 6.15, 7.96, 7,
"tr"
);
28
simul->
SetFillColor
(41);
29
simul->
AddText
(
"Detector"
);
30
simul->
AddText
(
"Simulation"
);
31
simul->
Draw
();
32
//
33
TPavesText
*recon =
new
TPavesText
(6.56, 2.69, 10.07, 10.15, 11,
"tr"
);
34
recon->
SetFillColor
(48);
35
recon->
AddText
(
"Event"
);
36
recon->
AddText
(
"Reconstruction"
);
37
recon->
Draw
();
38
//
39
TPavesText
*daq =
new
TPavesText
(10.43, 2.74, 14.0, 10.81, 11,
"tr"
);
40
daq->
AddText
(
"Data"
);
41
daq->
AddText
(
"Acquisition"
);
42
daq->
Draw
();
43
//
44
TPavesText
*anal =
new
TPavesText
(14.55, 2.72, 17.9, 10.31, 11,
"tr"
);
45
anal->
SetFillColor
(42);
46
anal->
AddText
(
"Data"
);
47
anal->
AddText
(
"Analysis"
);
48
anal->
Draw
();
49
c1
->Update();
50
}
TAttFill::SetFillColor
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition
TAttFill.h:40
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TPaveText::AddText
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
TPavesText
A PaveText (see TPaveText) with several stacked paves.
Definition
TPavesText.h:18
TPavesText::Draw
void Draw(Option_t *option="") override
Draw this pavestext with its current attributes.
Definition
TPavesText.cxx:79
c1
return c1
Definition
legend1.C:41
tutorials
visualisation
graphics
framework.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1