ArticleslgStudy

computer science

ROOT

ROOT is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ROOT rather than just read about it. In short: ROOT is an object-oriented computer program and library developed by CERN. It was originally designed for particle physics data analysis and contains several features specific to the field, but it is also used in other applications such as astronomy and data mining.

ROOT — main illustration
ROOT — illustration

Key takeaways

  • ROOT belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ROOT to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ROOT from memory before moving on to harder problems.

Reference excerpt

ROOT is an object-oriented computer program and library developed by CERN. It was originally designed for particle physics data analysis and contains several features specific to the field, but it is also used in other applications such as astronomy and data mining. The latest minor release is 6.40.04, as of 2026-08-27.

Description CERN maintained the CERN Program Library written in FORTRAN for many years. Its development and maintenance were discontinued in 2003 in favour of ROOT, which is written in the C++ programming language. ROOT development was initiated by René Brun and Fons Rademakers in 1994. Some parts are published under the GNU Lesser General Public License (LGPL) and others are based on GNU General Public License (GPL) software, and are thus also published under the terms of the GPL. It provides platform independent access to a computer's graphics subsystem and operating system using abstract layers. Parts of the abstract platform are: a graphical user interface and a GUI builder, container classes, reflection, a C++ script and command line interpreter (CINT in version 5, cling in version 6), object serialization and persistence. The packages provided by ROOT include those for

Histogramming and graphing to view and analyze distributions and functions, curve fitting (regression analysis) and minimization of functionals, statistics tools used for data analysis, matrix algebra, four-vector computations, as used in high energy physics, standard mathematical functions, multivariate data analysis, e.g. using neural networks, image manipulation, used, for instance, to analyze astronomical pictures, access to distributed data (in the context of the Grid), distributed computing, to parallelize data analyses, persistence and serialization of objects, which can cope with changes in class definitions of persistent data, access to databases, 3D visualizations (geometry), creating files in various graphics formats, like PDF, PostScript, PNG, SVG, LaTeX, etc. interfacing Python code in both directions, interfacing Monte Carlo event generators.

A key feature of ROOT is a data container called tree, with its substructures branches and leaves. A tree can be seen as a sliding window to the raw data, as stored in a file. Data from the next entry in the file can be retrieved by advancing the index in the tree. This avoids memory allocation problems associated with object creation, and allows the tree to act as a lightweight container while handling buffering invisibly. ROOT is designed for high computing efficiency, as it is required to process data from the Large Hadron Collider's experiments estimated at several petabytes per year. As of 2009 ROOT is mainly used in data analysis and data acquisition in particle physics (high energy physics) experiments, and most current experimental plots and results in those subfields are obtained using ROOT. The inclusion of a C++ interpreter (CINT until version 5.34, Cling from version 6.00) makes this package very versatile as it can be used in interactive, scripted and compiled modes in a manner similar to commercial products like MATLAB. On July 4, 2012, the ATLAS and CMS LHC's experiments presented the status of the Standard Model Higgs search. All data plotting presented that day used ROOT.

Applications Several particle physics collaborations have written software based on ROOT, often in favor of using more generic solutions (e.g. using ROOT containers instead of STL).

Some of the running particle physics experiments using software based on ROOT ALICE ATLAS BaBar experiment Belle Experiment (an electron positron collider at KEK (Japan)) Belle II experiment (successor of the Belle experiment) BES III CB-ELSA/TAPS CMS COMPASS experiment (Common Muon and Proton Apparatus for Structure and Spectroscopy) CUORE (Cryogenic Underground Observatory for Rare Events) D0 experiment GlueX Experiment GRAPES-3 (Gamma Ray Astronomy PeV EnergieS) H1 (particle detector) at HERA collider at DESY, Hamburg LHCb MINERνA (Main Injector Experiment for ν-A) MINOS (Main injector neutrino oscillation search) NA61 experiment (SPS Heavy Ion and Neutrino Experiment) NOνA OPERA experiment PHENIX detector PHOBOS experiment at Relativistic Heavy Ion Collider SNO+ STAR detector (Solenoidal Tracker at RHIC) T2K experiment Future particle physics experiments currently developing software based on ROOT Mu2e Compressed Baryonic Matter experiment (CBM) PANDA experiment (antiProton Annihilation at Darmstadt (PANDA)) Deep Underground Neutrino Experiment (DUNE) Hyper-Kamiokande (HK (Japan)) Astrophysics (X-ray and gamma-ray astronomy, astroparticle physics) projects using ROOT AGILE Alpha Magnetic Spectrometer (AMS) Antarctic Impulse Transient Antenna (ANITA) ANTARES neutrino detector CRESST (Dark Matter Search) DMTPC DEAP-3600/Cryogenic Low-Energy Astrophysics with Neon(CLEAN) Fermi Gamma-ray Space Telescope ICECUBE HAWC High Energy Stereoscopic System (H.E.S.S.) Hitomi (ASTRO-H) MAGIC Milagro Pierre Auger Observatory VERITAS PAMELA POLAR PoGOLite

Criticisms Criticisms of ROOT include its difficulty for beginners, as well as various aspects of its design and implementation. Frequent causes of frustration include extreme code bloat, heavy use of global variables, and an overcomplicated class hierarchy. From time to time these issues are discussed on the ROOT users mailing list. While scientists dissatisfied with ROOT have in the past managed to work around its flaws, some of the shortcomings are regularly addressed by the ROOT team. The CINT interpreter, for example, has been replaced by the Cling interpreter, and numerous bugs are fixed with every release.

See also

Matplotlib – a plotting and analysis system for Python SciPy – a scientific data analysis system for Python, based on the NumPy classes Perl Data Language – a set of array programming extensions to the Perl programming language HippoDraw – an alternative C++-based data analysis system R programming language AIDA (computing) – open interfaces and formats for particle physics data processing Geant4 – a platform for the simulation of the passage of particles through matter using Monte Carlo methods PAW IGOR Pro Scientific Linux Scientific computing OpenDX OpenScientist CERN Program Library – legacy program library written in Fortran77, still available but not updated

References

External links

… excerpt ends here. Continue reading the full article.

Illustrations

ROOT illustration
ROOT illustration
ROOT: The ATLAS experiments presented on 4 July 2012 the status of the Standard Model Higgs search. All the plots presented that day were created in ROOT.
The ATLAS experiments presented on 4 July 2012 the status of the Standard Model Higgs search. All the plots presented that day were created in ROOT.

Worked examples

Example 1 — a first encounter with ROOT

Start with the simplest possible case. Write down what ROOT claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ROOT before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ROOT ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ROOT

In research
ROOT appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ROOT in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ROOT is common in secondary-school and first-year university syllabi. It links to neighbouring topics C++ libraries, CERN software, Data analysis software, so understanding it makes those chapters shorter.
In everyday life
Look for ROOT outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ROOT” →

How to study ROOT in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ROOT means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ROOT out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ROOT in simple terms?

ROOT is an object-oriented computer program and library developed by CERN. It was originally designed for particle physics data analysis and contains several features specific to the field, but it is also used in other applications such as astronomy and data mining.

Why does ROOT matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ROOT?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ROOT.

Tags

  • C++ libraries
  • CERN software
  • Data analysis software
  • Data management software
  • Experimental particle physics
  • Free physics software
  • Free plotting software
  • Free science software
  • Free software programmed in C++
  • Numerical software
  • Software using the GNU Lesser General Public License

Keep exploring