Logo ROOT  
Reference Guide
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
11from ROOT import TCanvas, TPavesText
12from ROOT import gROOT
13
14c1 = TCanvas("c1","The ROOT Framework",200,10,700,500)
15c1.Range(0,0,19,12)
16
17rootf = TPavesText(0.4,0.6,18,2.3,20,"tr")
18rootf.AddText("ROOT Framework")
19rootf.SetFillColor(42)
20rootf.Draw()
21
22eventg = TPavesText(0.99,2.66,3.29,5.67,4,"tr")
23eventg.SetFillColor(38)
24eventg.AddText("Event")
25eventg.AddText("Generators")
26eventg.Draw()
27
28simul = TPavesText(3.62,2.71,6.15,7.96,7,"tr")
29simul.SetFillColor(41)
30simul.AddText("Detector")
31simul.AddText("Simulation")
32simul.Draw()
33
34recon = TPavesText(6.56,2.69,10.07,10.15,11,"tr")
35recon.SetFillColor(48)
36recon.AddText("Event")
37recon.AddText("Reconstruction")
38recon.Draw()
39
40daq = TPavesText(10.43,2.74,14.0,10.81,11,"tr")
41daq.AddText("Data")
42daq.AddText("Acquisition")
43daq.Draw()
44
45anal = TPavesText(14.55,2.72,17.9,10.31,11,"tr")
46anal.SetFillColor(42)
47anal.AddText("Data")
48anal.AddText("Analysis")
49anal.Draw()
50
51c1.Update()
The Canvas class.
Definition: TCanvas.h:23
A PaveText (see TPaveText) with several stacked paves.
Definition: TPavesText.h:18