ROOT
Version v6.34
master
v6.32
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
▼
Functional Parts
►
Core ROOT classes
►
std Extension classes
►
Parallelized classes
►
The Geometry Package
►
Graphics
►
Event display with ROOT7
►
GUI
►
Web Widgets
►
Web Display
►
Histogram Library
►
Input/Output Library
►
Math
►
N-D parametric functions
►
VecOps
►
Monte Carlo
►
HTTP server
►
PROOF
►
TMVA
►
RooFit
►
Dataframe
►
ROOT7 classes
►
NTuple-related classes
►
Tree Library
►
TreePlayer Library
▼
Tutorials
►
Histograms tutorials
►
Tree tutorials
►
Dataframe tutorials
►
ROOT 7 tutorials
►
FOAM tutorials
►
Containers tutorials
►
Event display tutorials
►
Event display ROOT7 tutorials
►
Geometry tutorials
►
Fast Fourier Transforms tutorials
►
Fit Tutorials
►
RooFit Tutorials
►
Graphs tutorials
►
Graphics tutorials
►
OpenGL tutorials
►
Tutorials specific to Mac/Cocoa
►
GUI tutorials
►
HistFactory Tutorials
►
HTTP tutorials
►
Image tutorials
►
IO tutorials
►
Math tutorials
►
Matrix tutorials
►
Monte Carlo tutorials
►
Multicore tutorials
►
Net tutorials
►
Physics tutorials
►
PyRoot tutorials
►
Pythia tutorials
►
Quadratic programming package.
►
R tutorials
►
RooStats Tutorials
►
Spectrum tutorials
►
TSPlot tutorials
►
SQL tutorials
►
TMVA tutorials
►
TUnfold tutorials
►
Unuran tutorials
►
VecOps tutorials
►
FITS files interface tutorials
►
XML tutorials
►
Proof tutorials
►
TWebCanvas tutorials
►
Webgui tutorials
▼
Legacy tutorials
►
Containers tutorials
►
Multi Layer Perceptron tutorials
►
Regexp tutorials
►
Thread tutorials
benchmarks.C
geant3tasks.C
htmlex.C
MyTasks.cxx
ProofNtuple.C
ProofNtuple.h
ProofPythia.C
ProofPythia.h
rootalias.C
rootenv.C
rootmarks.C
tasks.C
demos.C
demoshelp.C
hsimple.C
rootlogoff.C
rootlogon.C
►
R Interface for Statistical Computing
►
Namespaces
►
All Classes
►
Files
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
rootenv.C File Reference
Tutorials
»
Legacy tutorials
Detailed Description
Produce a picture of the
ROOT
environment.
{
gROOT
->Reset();
auto
c1
=
new
TCanvas
(
"c1"
,
"ROOT Environment Canvas"
,720,840);
c1
->Range(0,-0.25,19,29);
TPaveLabel
title(3,27.1,15,28.7,
"ROOT Environment and Tools"
);
title.SetFillColor(42);
title.SetTextColor(5);
title.SetTextFont(62);
title.Draw();
//
TArrow
ardash
(2,15,2,3.5,0.015,
"|>"
);
ardash
.SetLineStyle(2);
ardash
.SetFillColor(1);
ardash
.Draw();
TLine
l1
(2.5,4.5,15.5,4.5);
l1
.Draw();
l1
.DrawLine(4.5,15,4.5,11);
l1
.DrawLine(13,10,13,15.5);
l1
.DrawLine(14,10,13,10);
l1
.DrawLine(14,15.5,13,15.5);
TArrow
ar
(9,23,9,21.6,0.015,
"|>"
);
ar
.SetFillColor(1);
//
TPavesText
UserChtml
(0.5,0.5,4.5,3,5,
"tr"
);
UserChtml
.AddText(
"Files with hyperlinks"
);
TText
*
t1
=
UserChtml
.AddText(
"*User.C.html"
);
TText
*
t2
=
UserChtml
.AddText(
"*User.mac.html"
);
t1
->SetTextColor(4);
t2
->SetTextColor(4);
UserChtml
.Draw();
ar
.DrawArrow(2.5,4.5,2.5,3.5,0.015,
"|>"
);
//
TPavesText
UserTree
(7,0.5,11,3,5,
"tr"
);
UserTree
.AddText(
"Dictionary"
);
UserTree
.AddText(
"Inheritance graphs"
);
TText
*
t3
=
UserTree
.AddText(
"*User_Tree.ps"
);
t3
->SetTextColor(4);
UserTree
.Draw();
ar
.DrawArrow(9,5.5,9,3.5,0.015,
"|>"
);
//
TPavesText
Userhtml
(13.5,0.5,17.5,3,5,
"tr"
);
Userhtml
.AddText(
"Class Description"
);
Userhtml
.AddText(
"with references"
);
TText
*
t4
=
Userhtml
.AddText(
"*User.html"
);
t4
->SetTextColor(4);
Userhtml
.Draw();
ar
.DrawArrow(15.5,4.5,15.5,3.5,0.015,
"|>"
);
//
TPavesText
Macros
(0.5,8,3.5,11,5,
"tr"
);
Macros
.AddText(
"Macros"
);
Macros
.AddText(
"Log files"
);
TText
*
t5
=
Macros
.AddText(
"*User.mac"
);
TText
*
t5a
=
Macros
.AddText(
"*User.log"
);
t5
->SetTextColor(4);
t5a
->SetTextColor(4);
Macros
.Draw();
//
TPavesText
UserC
(1,15,5,18,5,
"tr"
);
UserC
.AddText(
"C++ application"
);
UserC
.AddText(
"source code"
);
TText
*
t6
=
UserC
.AddText(
"*User.C"
);
t6
->SetTextColor(4);
UserC
.Draw();
ar
.DrawArrow(4.5,11,5.8,11,0.015,
"|>"
);
//
TPavesText
Userh
(6,23,12,26,5,
"tr"
);
Userh
.AddText(
"C++ header files"
);
TText
*
t7
=
Userh
.AddText(
"*User.h"
);
t7
->SetTextColor(4);
Userh
.SetFillColor(11);
Userh
.Draw();
ar
.DrawArrow(9,23,9,21.6,0.015,
"|>"
);
//
TPavesText
UserUI
(6.5,14,11.5,17,5,
"tr"
);
UserUI
.AddText(
"C++ code for"
);
UserUI
.AddText(
"User Interface and I/O"
);
TText
*
t8
=
UserUI
.AddText(
"*UserUI.C"
);
t8
->SetTextColor(4);
UserUI
.Draw();
ar
.DrawArrow(9,18.5,9,17.3,0.015,
"|>"
);
ar
.DrawArrow(9,14,9,12.6,0.015,
"|>"
);
//
TPavesText
Usersl
(14,14,17.5,17,5,
"tr"
);
Usersl
.AddText(
"User"
);
Usersl
.AddText(
"Libraries"
);
TText
*
t9
=
Usersl
.AddText(
"*User.sl"
);
t9
->SetTextColor(4);
Usersl
.Draw();
ar
.DrawArrow(13,11,12.1,11,0.015,
"|>"
);
//
TPavesText
Rootlib
(14,8.5,17.5,11.5,5,
"tr"
);
Rootlib
.AddText(
"Root Library"
);
Rootlib
.AddText(
"and Includes"
);
TText
*
t10
=
Rootlib
.AddText(
"Root.sl"
);
TText
*
t11
=
Rootlib
.AddText(
"Root/include"
);
t10
->SetTextColor(4);
t11
->SetTextColor(4);
Rootlib
.Draw();
//
TEllipse
dict(9,20,3,1.5);
dict.SetFillColor(43);
dict.SetFillStyle(1001);
dict.SetLineColor(1);
dict.SetLineWidth(3);
dict.Draw();
TText
gen(9,20.7,
"rootcint"
);
gen.SetTextAlign(22);
gen.SetTextSize(0.025);
gen.Draw();
gen.DrawText(9,19.5,
"ROOT compiler"
);
ar
.DrawArrow(9,18.5,9,17.3,0.015,
"|>"
);
//
TEllipse
compiler
(9,11,3,1.5);
compiler
.SetFillColor(43);
compiler
.SetFillStyle(1001);
compiler
.SetLineColor(1);
compiler
.SetLineWidth(3);
compiler
.Draw();
TText
gen2
(9,11.4,
"C++ compiler"
);
gen2
.SetTextAlign(22);
gen2
.SetTextSize(0.025);
gen2
.Draw();
gen2
.DrawText(9,10.3,
"and Linker"
);
ar
.DrawArrow(9,9.5,9,8.2,0.015,
"|>"
);
//
TPaveText
exe
(6,5.5,12,8);
exe
.SetFillColor(41);
exe
.AddText(
"ROOT-based Application"
);
exe
.AddText(
"Interactive or Batch"
);
TText
*
t12
=
exe
.AddText(
"User.exe"
);
t12
->SetTextColor(2);
exe
.Draw();
c1
->Modified();
c1
->Print(
"rootenv.ps"
);
}
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
gROOT
#define gROOT
Definition
TROOT.h:406
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TArrow
Draw all kinds of Arrows.
Definition
TArrow.h:29
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TEllipse
Draw Ellipses.
Definition
TEllipse.h:23
TLine
Use the TLine constructor to create a simple line.
Definition
TLine.h:22
TPaveLabel
A Pave (see TPave) with a text centered in the Pave.
Definition
TPaveLabel.h:20
TPaveText
A Pave (see TPave) with text, lines or/and boxes inside.
Definition
TPaveText.h:21
TPavesText
A PaveText (see TPaveText) with several stacked paves.
Definition
TPavesText.h:18
TText
Base class for several text objects.
Definition
TText.h:22
c1
return c1
Definition
legend1.C:41
t1
auto * t1
Definition
textangle.C:20
Author
Rene Brun
Definition in file
rootenv.C
.
tutorials
legacy
rootenv.C
ROOT tags/6-34-04 - Reference Guide Generated on Sun Mar 23 2025 14:39:15 (GVA Time) using Doxygen 1.10.0