ROOT
v6-30
Reference Guide
Loading...
Searching...
No Matches
framework.py
Go to the documentation of this file.
1
## \file
2
## \ingroup tutorial_pyroot_legacy
3
## \notebook
4
## The ROOT Framework
5
##
6
## \macro_image
7
## \macro_code
8
##
9
## \author Wim Lavrijsen
10
11
from
ROOT
import
TCanvas, TPavesText
12
from
ROOT
import
gROOT
13
14
c1 =
TCanvas
(
"c1"
,
"The ROOT Framework"
,200,10,700,500)
15
c1.Range(0,0,19,12)
16
17
rootf =
TPavesText
(0.4,0.6,18,2.3,20,
"tr"
)
18
rootf.AddText(
"ROOT Framework"
)
19
rootf.SetFillColor(42)
20
rootf.Draw()
21
22
eventg =
TPavesText
(0.99,2.66,3.29,5.67,4,
"tr"
)
23
eventg.SetFillColor(38)
24
eventg.AddText(
"Event"
)
25
eventg.AddText(
"Generators"
)
26
eventg.Draw()
27
28
simul =
TPavesText
(3.62,2.71,6.15,7.96,7,
"tr"
)
29
simul.SetFillColor(41)
30
simul.AddText(
"Detector"
)
31
simul.AddText(
"Simulation"
)
32
simul.Draw()
33
34
recon =
TPavesText
(6.56,2.69,10.07,10.15,11,
"tr"
)
35
recon.SetFillColor(48)
36
recon.AddText(
"Event"
)
37
recon.AddText(
"Reconstruction"
)
38
recon.Draw()
39
40
daq =
TPavesText
(10.43,2.74,14.0,10.81,11,
"tr"
)
41
daq.AddText(
"Data"
)
42
daq.AddText(
"Acquisition"
)
43
daq.Draw()
44
45
anal =
TPavesText
(14.55,2.72,17.9,10.31,11,
"tr"
)
46
anal.SetFillColor(42)
47
anal.AddText(
"Data"
)
48
anal.AddText(
"Analysis"
)
49
anal.Draw()
50
51
c1.Update()
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TPavesText
A PaveText (see TPaveText) with several stacked paves.
Definition
TPavesText.h:18
tutorials
legacy
pyroot
framework.py
ROOT v6-30 - Reference Guide Generated on Thu Dec 12 2024 06:12:39 (GVA Time) using Doxygen 1.9.8