forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathframework.py
More file actions
51 lines (42 loc) · 1.03 KB
/
framework.py
File metadata and controls
51 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## \file
## \ingroup tutorial_pyroot
## \notebook
## The ROOT Framework
##
## \macro_image
## \macro_code
##
## \author Wim Lavrijsen
from ROOT import TCanvas, TPavesText
from ROOT import gROOT
c1 = TCanvas("c1","The ROOT Framework",200,10,700,500)
c1.Range(0,0,19,12)
rootf = TPavesText(0.4,0.6,18,2.3,20,"tr")
rootf.AddText("ROOT Framework")
rootf.SetFillColor(42)
rootf.Draw()
eventg = TPavesText(0.99,2.66,3.29,5.67,4,"tr")
eventg.SetFillColor(38)
eventg.AddText("Event")
eventg.AddText("Generators")
eventg.Draw()
simul = TPavesText(3.62,2.71,6.15,7.96,7,"tr")
simul.SetFillColor(41)
simul.AddText("Detector")
simul.AddText("Simulation")
simul.Draw()
recon = TPavesText(6.56,2.69,10.07,10.15,11,"tr")
recon.SetFillColor(48)
recon.AddText("Event")
recon.AddText("Reconstruction")
recon.Draw()
daq = TPavesText(10.43,2.74,14.0,10.81,11,"tr")
daq.AddText("Data")
daq.AddText("Acquisition")
daq.Draw()
anal = TPavesText(14.55,2.72,17.9,10.31,11,"tr")
anal.SetFillColor(42)
anal.AddText("Data")
anal.AddText("Analysis")
anal.Draw()
c1.Update()