ROOT
Version master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
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
►
Data analysis tutorials
►
Event generation tutorials
►
Experimental API tutorials
►
Geometry tutorials
►
Histograms tutorials
►
HTTP tutorials
►
IO tutorials
►
Machine Learning tutorials
►
Math tutorials
►
RooFit packages tutorials
▼
Visualisation tutorials
►
Event display tutorials
►
Event display for ROOT 7 tutorials
►
Geometry tutorials
►
Graphs tutorials
▼
Graphics tutorials
accessiblecolorschemes.C
analyze.C
anim.C
annotation3d.C
archi.C
arrows.C
basic3d.C
canvas.C
canvas2.C
compile.C
crown.C
diamond.C
earth.C
ellipse.C
eval.C
event.C
feynman.C
first.C
formula1.C
formula1.py
framework.C
gaxis.C
gaxis2.C
gaxis3.C
graph_edit_playback.C
greyscale.C
gtime.C
inside.C
latex.C
latex2.C
latex3.C
latex4.C
latex5.C
logscales.C
mandelbrot.C
markerwarning.C
mass_spectrum.C
multipalette.C
palettes.C
pavetext.C
perceptualcolormap.C
piechart.C
polytest1.C
polytest2.C
pstable.C
psview.C
quarks.C
save_batch.C
saveall.C
schroedinger_hydrogen.C
splines_test.C
surfaces.C
surfaces.py
timeonaxis3.C
tmathtext.C
tmathtext2.C
tornado.C
tornado.py
transparency.C
triangles.C
xyplot.C
►
GUI tutorials
►
Image tutorials
►
OpenGL tutorials
►
Tutorials specific to Mac/Cocoa
►
TWebCanvas tutorials
►
Webgui tutorials
►
Legacy tutorials
demos.C
demos.py
demoshelp.C
demoshelp.py
hsimple.C
hsimple.py
rootlogoff.C
rootlogon.C
►
Python interface
►
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
compile.C File Reference
Tutorials
»
Visualisation tutorials
»
Graphics tutorials
Detailed Description
This macro produces the flowchart of
TFormula::Compile
.
void
compile()
{
TCanvas
*
c1
=
new
TCanvas
(
"c1"
);
c1
->Range(0, 0, 1, 1);
TPaveLabel
*
ptc
=
new
TPaveLabel
(0.02, 0.42, 0.2, 0.58,
"Compile"
);
ptc
->SetTextSize(0.40);
ptc
->SetFillColor(32);
ptc
->Draw();
TPaveText
*
psub
=
new
TPaveText
(0.28, 0.4, 0.65, 0.6);
psub
->Draw();
TText
*
t2
=
psub
->AddText(
"Substitute some operators"
);
TText
*
t3
=
psub
->AddText(
"to C++ style"
);
TPaveLabel
*
panal
=
new
TPaveLabel
(0.73, 0.42, 0.98, 0.58,
"Analyze"
);
panal
->SetTextSize(0.40);
panal
->SetFillColor(42);
panal
->Draw();
TArrow
*
ar1
=
new
TArrow
(0.2, 0.5, 0.27, 0.5, 0.02,
"|>"
);
ar1
->SetLineWidth(6);
ar1
->SetLineColor(4);
ar1
->Draw();
TArrow
*
ar2
=
new
TArrow
(0.65, 0.5, 0.72, 0.5, 0.02,
"|>"
);
ar2
->SetLineWidth(6);
ar2
->SetLineColor(4);
ar2
->Draw();
}
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
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
TText
Base class for several text objects.
Definition
TText.h:22
c1
return c1
Definition
legend1.C:41
Author
Rene Brun
Definition in file
compile.C
.
tutorials
visualisation
graphics
compile.C
ROOT master - Reference Guide Generated on Tue Apr 8 2025 06:22:11 (GVA Time) using Doxygen 1.10.0