ROOT Tutorials
Starting an Interactive
Session
The Hello World Example
Using CINT as Command Line and Macro
Interpreter
An Example of Object Oriented
User Interface
Reading an ascii file and making
an ntuple
An Example Creating Histograms/Ntuples
on a File
Filling Several Histograms and
Some Graphics Options
Creation of a hierarchy of histograms in direrctories
Simple Formula and Functions
Using the TLatex class
Drawing Feynman diagrams
Various axis formats
Histograms with Random Numbers
from a Function
A Simple Fitting Example
Using Minuit to fit non-equidistant
points
How to fit in a sub-range of
an histogram
Fitting with a user-defined function
Fitting signal + background
Fittings slices of a 2-d histogram
Drawing Options for 1D Histograms
Example of a Simple Graph with
axis titles
Example of a Graph with error
bars
Example of several graphs with errors in the same pad
A complex example with several graphs and annotations
Superimposing two histograms with two different scales
Surfaces drawing options
The 2-D histograms drawing options
Examples of 3-D Polymarkers
The Geometry Shapes and the X3D
viewer
Creating and Viewing Geometries
Ntuples and Selections
Creation of a ROOT Tree (program)
Reading all events of a ROOT
Tree (macro)
Copying a subset of a Tree to a new Tree
(macro)
Copying a subset of a Tree to a new file
(macro)
Reading selected events of
a ROOT Tree (macro)
Example of analysis code with
Chains (macro)
Example of Minimization (program)
Three "fun" examples (including
fully functional Tetris game)
Example of a Menu Controlbar
Using the Collection Classes
Adding Your Own Classes to ROOT
Using CINT as Dictionary Generator
Example of Client-Server communication:
the Client
Example of Client-Server communication:
the Server
Example of Shared memory: producer
Example of Shared memory: consumer
Extending ROOT with Shared Libraries and an
Example of Object I/O
Automatic HTML Document Generation
Use of the time mode on the axis
Example of analysis class for the H1 data
Principal Components Analysis (PCA) Example
Multi Dimensional Fit Example
To run the tutorials yourself download
the ROOT Development Kit (RDK).
The examples have been designed to run on a color workstation. Opaque
moving of objects in the canvas requires a machine with a reasonable response
time. If you run these examples on a slow machine or saturated time sharing
system, you can remove the line Rint.Canvas.MoveOpaque: true from
the file .rootrc to improve dragging performance.
Rene Brun ,
Fons Rademakers
Last update 9/5/2001 by RB