Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Tutorials

A collection of C++ macros, Python scripts and notebooks helping to learn ROOT by example.

You can execute the scripts in $ROOTSYS/tutorials (or sub-directories) by setting your current directory in the script directory or from any user directory with write access.

Several tutorials create new files. If you have write access to the tutorials directory, the new files will be created in the tutorials directory, otherwise they will be created in the user directory.

You can start by executing the standard ROOT demos with a session like:

root > .x demos.C

or

root > .x $ROOTSYS/tutorials/demos.C

You can execute the standard ROOT graphics benchmark with

root > .x benchmarks.C

or

root > .x $ROOTSYS/tutorials/benchmarks.C

The $ROOTSYS/tutorials directory includes several sub-directories:

Modules

 Histograms tutorials
 Examples showing the "histograms' classes" usage.
 
 Tree tutorials
 Example code which illustrates how to use ROOT trees and ntuples.
 
 Dataframe tutorials
 These examples show various features of RDataFrame: ROOT's declarative analysis interface.
 
 ROOT 7 tutorials
 Various examples showing the ROOT 7 interface.
 
 FOAM tutorials
 Examples showing how to use FOAM.
 
 Containers tutorials
 Examples showing the "containers' classes" usage.
 
 Event display tutorials
 Examples showing the "Event display classes" usage.
 
 Event display ROOT7 tutorials
 Examples showing the "Event display classes" usage with ROOT7.
 
 Geometry tutorials
 Various ROOT geometry package examples.
 
 Fast Fourier Transforms tutorials
 Example showing the Fast Fourier Transforms interface in ROOT.
 
 Fit Tutorials
 These tutorials illustrate the main fitting features. Their names are related to the aspect which is treated in the code.
 
 RooFit Tutorials
 These tutorials illustrate the main features of RooFit: the name of the examples and their short description help in figuring out their objective.
 
 Graphs tutorials
 Examples showing the "graphs classes" usage.
 
 Graphics tutorials
 Various examples showing the basic ROOT graphics.
 
 OpenGL tutorials
 Various examples showing the OpenGL graphics in ROOT.
 
 Tutorials specific to Mac/Cocoa
 Various examples showing graphics done with the Mac graphics system Cocoa.
 
 GUI tutorials
 Example code which illustrates how to use the ROOT GUI.
 
 HistFactory Tutorials
 These tutorials illustrate the usage of the histfactory.
 
 HTTP tutorials
 Examples showing the HTTP interface.
 
 Image tutorials
 Examples showing the TImage class usage.
 
 IO tutorials
 These tutorials illustrate some of the capabilities of the ROOT IO subsystem.
 
 Math tutorials
 Examples showing the Math classes.
 
 Matrix tutorials
 Examples showing how to use TMatrix.
 
 Monte Carlo tutorials
 Monte Carlo examples.
 
 Multicore tutorials
 These examples aim to illustrate the multicore features of ROOT, such as thread awareness and safety, multithreading and multiprocessing.
 
 Net tutorials
 Examples showing the net classes.
 
 Physics tutorials
 Physics examples.
 
 PyRoot tutorials
 Selected examples illustrating how to use ROOT's Python interface: PyROOT.
 
 Pythia tutorials
 Examples showing the pythia usage.
 
 Quadratic programming package.
 Example showing the usage of the quadratic programming package quadp.
 
 R tutorials
 Examples showing the R interface.
 
 RooStats Tutorials
 These tutorials illustrate the main features of RooStats.
 
 Spectrum tutorials
 Examples showing the TSpectrum and TSpectrumPainter usage.
 
 TSPlot tutorials
 This tutorial illustrates the use of class TSPlot.
 
 SQL tutorials
 Examples showing the SQL classes.
 
 TMVA tutorials
 Example code which illustrates how to use the TMVA toolkit.
 
 TUnfold tutorials
 Test programs for the classes TUnfold and related.
 
 Unuran tutorials
 Examples showing unuran capabilities.
 
 VecOps tutorials
 These examples show the functionalities of the VecOps utilities.
 
 FITS files interface tutorials
 Examples showing the FITS file interface.
 
 XML tutorials
 XML examples.
 
 Proof tutorials
 These examples aim to illustrate the usage of PROOF.
 
 TWebCanvas tutorials
 Examples showing the special features of web-based canvas.
 
 Webgui tutorials
 Webgui examples.
 
 Legacy tutorials
 Legacy Tutorials.
 

Files

file  demos.C
 This macro shows a control bar to run some of the ROOT tutorials.
 
file  demoshelp.C
 This macro shows help on running the Demos.
 
file  hsimple.C
  View in nbviewer Open in SWAN
This program creates :
 
file  rootlogoff.C
 Example of rootlogoff.C.
 
file  rootlogon.C
 Example of rootlogon.C.