ROOT logo

From $ROOTSYS/tutorials/graphics/framework.C

void framework() {
   // An example with basic graphics illustrating the Object Oriented
   // User Interface of ROOT. The begin_html <a href="gif/framework.gif">picture</a> end_html
   // produced is the one shown in begin_html<a href="../../../../Mission.html">Mission Statement.</a> end_html
   //Author: Rene Brun
   
   TCanvas *c1 = new TCanvas("c1","The ROOT Framework",200,10,700,500);
   c1->Range(0,0,19,12);
   //
   TPavesText *rootf = new TPavesText(0.4,0.6,18,2.3,20,"tr");
   rootf->AddText("ROOT Framework");
   rootf->SetFillColor(42);
   rootf->Draw();
   //
   TPavesText *eventg = new TPavesText(0.99,2.66,3.29,5.67,4,"tr");
   eventg->SetFillColor(38);
   eventg->AddText("Event");
   eventg->AddText("Generators");
   eventg->Draw();
   //
   TPavesText *simul = new TPavesText(3.62,2.71,6.15,7.96,7,"tr");
   simul->SetFillColor(41);
   simul->AddText("Detector");
   simul->AddText("Simulation");
   simul->Draw();
   //
   TPavesText *recon = new TPavesText(6.56,2.69,10.07,10.15,11,"tr");
   recon->SetFillColor(48);
   recon->AddText("Event");
   recon->AddText("Reconstruction");
   recon->Draw();
   //
   TPavesText *daq = new TPavesText(10.43,2.74,14.0,10.81,11,"tr");
   daq->AddText("Data");
   daq->AddText("Acquisition");
   daq->Draw();
   //
   TPavesText *anal = new TPavesText(14.55,2.72,17.9,10.31,11,"tr");
   anal->SetFillColor(42);
   anal->AddText("Data");
   anal->AddText("Analysis");
   anal->Draw();
   c1->Update();
}
 framework.C:1
 framework.C:2
 framework.C:3
 framework.C:4
 framework.C:5
 framework.C:6
 framework.C:7
 framework.C:8
 framework.C:9
 framework.C:10
 framework.C:11
 framework.C:12
 framework.C:13
 framework.C:14
 framework.C:15
 framework.C:16
 framework.C:17
 framework.C:18
 framework.C:19
 framework.C:20
 framework.C:21
 framework.C:22
 framework.C:23
 framework.C:24
 framework.C:25
 framework.C:26
 framework.C:27
 framework.C:28
 framework.C:29
 framework.C:30
 framework.C:31
 framework.C:32
 framework.C:33
 framework.C:34
 framework.C:35
 framework.C:36
 framework.C:37
 framework.C:38
 framework.C:39
 framework.C:40
 framework.C:41
 framework.C:42
 framework.C:43
 framework.C:44
 framework.C:45
thumb