---
title: "ROOT — paper by Antcheva et al. (2009) — summary and ideas"
description: "ROOT shows how physicists can store petabytes of C++ event data, read selected fields, and carry out statistical analysis and visualization."
canonical: "https://research.elamur.ai/free/en/papers/antcheva-2009-root-c-framework-petabyte-data/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/antcheva-2009-root-c-framework-petabyte-data/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2009](https://md.research.elamur.ai/free/en/papers/2009/) / ROOT — A C++ framework for petabyte data storage, statistical analysis and visualization

# ROOT — A C++ framework for petabyte data storage, statistical analysis and visualization

Paper · 2009 · Ilka Antcheva, M. Ballintijn, Bertrand Bellenot et al.

**Authors:** Ilka Antcheva, M. Ballintijn, Bertrand Bellenot, M. Biskup, R. Brun, R. Brun, N. Buncic, Philippe Canal, D. Casadei, Olivier Couet, Valery Fine, L. Franconi, G. Ganis, A. Gheaţă, David Gonzalez Maline, M. Goto, J. Iwaszkiewicz, Anna Kreshuk, D. Marcos Segura, R. Maunder, L. Moneta, A. Naumann, E. A. J. M. Offermann, V. A. Onuchin, S. Panacek, Fons Rademakers, P. Russo and Matevž Tadel · **Year:** 2009 · **Venue:** Computer Physics Communications · **Licence:** [CC BY-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-sa/4.0/)

Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · Computer Physics Communications · [licence](https://creativecommons.org/licenses/by-sa/4.0/)

- [PDF](https://arxiv.org/pdf/1508.07749)
- [DOI 10.1016/j.cpc.2009.08.005](https://doi.org/10.1016/j.cpc.2009.08.005)
- [arXiv 1508.07749](https://arxiv.org/abs/1508.07749)

## Summary

A particle physics experiment can accumulate an enormous collection of events, even though a particular analysis may need only a few measurements from each one. Reading every recorded detail makes storage and data transfer part of the cost of asking a scientific question. ROOT, a C++ framework developed at CERN, addresses this problem by organizing files around the way researchers use event data. The paper describes how this design supports work from detector simulation and data storage through statistical analysis and the presentation of results.

The main storage component, `TTree`, can divide a collection of C++ objects into separately readable branches. An analysis that needs a particular field can read its branch across many events, leaving other branches untouched. ROOT uses descriptions of C++ types to create these layouts, save objects in a compressed binary format that can be read on different machines, and handle many changes to class definitions between writing and reading. A collection can extend across several files while appearing to an analysis as a single tree. In the paper’s remote-access example, an analysis reads 6.6 MB from a 280 MB file hosted at CERN. The authors use the example to explain why reading ahead can matter even when the connection has spare bandwidth.

ROOT also supports the work that follows a read. Histograms summarize measurements in bins, while individual observations remain available in trees for analyses that need them. RooFit supplies tools for describing distributions and fitting them to data, RooStats supports statistical inference, and TMVA provides methods for classifying events. Researchers can inspect changing results in graphical windows and save finished plots as images, vector graphics, or C++ macros that reconstruct the display for further editing.

The paper links these capabilities through an analysis workflow. Researchers can develop C++ macros interactively on small samples with the CINT interpreter, compile computation-heavy code with ACLiC, and use the Parallel ROOT Facility, PROOF, to distribute independent event tasks across workers. PROOF adjusts workloads as workers report back and can merge results such as histograms. The evidence combines a selective-read example, installation benchmark outputs, and accounts of use in physics experiments. The authors also cite a survey-based estimate of up to 50 petabytes stored using ROOT, a measure of deployment scale.

## Deep dive: ROOT — A C++ framework for petabyte data storage, statistical analysis and visualization

ROOT shows how physicists can store petabytes of C++ event data, read selected fields, and carry out statistical analysis and visualization. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Event records contain more than any one analysis needs

The authors start from a regularity in high-energy physics data. An application may process recorded collisions or simulated events, but within a collection the events have the same structure. That makes it possible to write an analysis that applies the same operation to each record. It also gives the storage system a choice about how to lay out the measurements. Keeping the fields of each event together is convenient when an application reconstructs complete events. Keeping values from the same field together serves a different access pattern, in which the application asks the same narrow question of a large number of events.

Event records are only part of the information the analyst needs. The detector geometry, the configuration of the read-out electronics, and descriptions of the magnetic field can all matter when interpreting measurements. Simulation has its own input settings. The paper groups slowly changing settings at the level of a *run*, a set of events with common conditions. Some settings can change within a run and define blocks at an intermediate scale. An analysis must therefore make sense of both the repeating event structure and the conditions under which groups of events were recorded or generated.

A scan can be broad in its coverage of events and sparse in its choice of fields. For example, an analysis may need to inspect the same measurement for each event before it knows which events are of interest. Much of the full record can be irrelevant to that decision. The paper identifies this kind of selective scan as a common pattern in physics analysis. At substantial data volumes, the physical arrangement of a record determines how much work the storage system does before the analysis code can apply a selection or fill a histogram.

The authors use conventional row-oriented relational storage as a point of comparison. With the members of an object stored together, iterating over one member at a time can still bring in data from the rest of each row. The paper acknowledges indexes as an exception to its argument about sparse access. Its comparison concerns the layout used to scan collections of similarly structured objects. ROOT was designed to give researchers control over that layout while retaining C++ objects as their way of representing the data.

#### An analysis changes while it is being written

The account of how researchers first encounter ROOT begins with an application they already have. It may read text files or obtain its inputs from a relational database. The immediate need can be as simple as drawing points with uncertainties. The authors describe researchers first adopting plotting classes, then using ROOT’s histogram objects to accumulate values, extract statistics, and fit distributions. As more of the analysis moves into the framework, the same objects can support both computation and display.

The authors also describe a development cycle in which the researcher changes some code, runs it, inspects the result, and revises the analysis again. In the conventional compiled workflow they describe, code has to pass through compilation, linking, and loading before the new version can run. Repeatedly performing those steps can slow exploration on a small sample. Once the analysis is ready to process the full collection, the cost of running it becomes more important. ROOT’s approach is to make interpreted and compiled C++ cooperate so that changing how a routine runs need involve little change to the surrounding analysis.

There is a similar distinction between the program the researcher writes and the machine on which it runs. The paper treats many event analyses as collections of independent tasks. A worker can process an event and produce a contribution to a result without waiting for another worker to process a different event. The authors use this property to motivate distributing subsets of the data across workers. They also describe conventional batch processing as a workflow in which a result is normally available after the component jobs finish and their outputs are merged. For an exploratory analysis, that delay makes it harder to judge a long-running job while it is still in progress.

#### Simulation introduces a second kind of choice

Detector simulation raises a related software problem. The application needs to specify the detector, identify the particles of interest, and arrange for work at particular points in each event. Different engines can then simulate how particles propagate through materials and fields. The paper presents switching engines as a way to investigate uncertainties attributable to the simulation. That comparison is easier to organize if the application can preserve its own structure and geometry while changing the engine underneath. The paper discusses this arrangement in connection with [Geant4 developments and applications](https://md.research.elamur.ai/free/en/papers/allison-2006-geant4-developments-applications/).

The framework grew out of these scientific and engineering demands. The authors date the start of the project to 1995 and describe its development from a private effort into the officially supported LHC analysis toolkit. Their account concerns ROOT version 5.24.00. They present it as a collection of components that can support different parts of an experiment’s software. A simulation program, a statistical analysis, and a live event display can all use ROOT while drawing on different parts of it.

### The method, step by step

A typical analysis starts with events represented as C++ objects. ROOT records information about the types of those objects and uses it to write the fields into files. An analysis then opens the files, selects the branches it needs, and processes the events. The results may include histograms, lists of selected events, fits, or graphical displays. The same sequence can be run interactively on a sample or distributed when event processing can be divided into independent pieces.

From C++ event records to analysis results in ROOT The steps in order.

#### Describe the objects before writing their data

A C++ class defines the shape of an object to the application that uses it. To write that object into a file, the storage system needs a description it can consult at runtime. ROOT calls this description a *dictionary*. It tells the framework what members the class has, where those members are located in memory, and how their types and sizes affect storage. ROOT supplies dictionaries for its own classes and provides ways for users to generate them for their classes.

The paper calls this runtime type information *reflection*. In the version it describes, ROOT can obtain such information from CINT or from GCCXML in combination with its Reflex library. This step matters because an event does not have to be defined using a fixed set of record types supplied by ROOT. An experiment can describe its events using its own classes. The file-writing layer uses the dictionary to work out how to store an instance of such a class and, when requested, how to divide it into branches.

Writing an object also means accounting for how it refers to other objects. A pointer identifies a location in the memory of a running program. The paper describes converting pointers to indexes in a buffer for storage and restoring the references when the objects are read back. This conversion is often called pointer swizzling. ROOT keeps track of objects it has already written so that a cycle of references can be saved without repeatedly writing the same objects. On reading, it can reconstruct the linked objects and their relationships.

The file contains descriptions of the relevant types as they were when the data were written. When the file is read with a different version of a class, ROOT compares the saved description with the in-memory one. The authors call the resulting support for old and new class layouts *schema evolution*. ROOT can translate many changes automatically. It also provides facilities for user-defined conversions where the application must specify what a change means. This makes the stored type description part of the long-term usability of the data.

#### Choose a layout that serves the intended reads

ROOT’s `TFile` provides the file-level organization. It maintains an index of named contents, the descriptions of stored types, and the data itself. A file can contain directories within directories, so an event tree and the histograms produced from it can be stored in different places within the same file. The paper characterizes the intended use as writing data and then reading them repeatedly, while allowing stored data to be deleted and space to be reused.

The file format is binary and intended to be independent of the machine on which a file was written. ROOT usually compresses the contents other than the header. Compression saves space and reduces the amount of data that has to move through the input and output system. Reading and writing then require some processor time to decode or encode the contents. That tradeoff matters at several points. The data can travel over a remote connection, and the task receiving them may need only a small part of the file.

Inside `TFile`, a `TTree` arranges repeated entries into branches. A branch can hold whole objects, members of objects, or smaller branches. The framework can recursively split a nested object into branches until individual members are separately accessible. It can also split certain containers of objects so that a branch groups values for the same member across elements. The information needed to perform that split comes from the dictionary.

Consider a researcher scanning a collection to count particle types. If the type identifier has its own branch, the scan can obtain those identifiers without fetching the branches containing the other measurements. Each branch has associated buffers, so the reader can fetch a block of values for consecutive entries. The benefit depends on how the researcher expects to use the event. If a task routinely needs every field, the authors say there is no need to split the object for that task. A layout with finer splitting is valuable when future tasks typically read a limited selection of fields.

There are two distinct reasons why grouping values by field can help. The first is that the reader requests only the relevant buffers. The second is that those buffers hold similar kinds of values together. The authors use the example of a particle type identifier, where similar values can recur in the same field. Repeated byte patterns can make the Huffman encoding used in ROOT’s buffer compression more effective. The decision about which fields to read therefore affects data transfer, while the ordering of values within the stored buffers can affect how compactly those fields are represented.

The paper notes a practical consequence of reading a subset of branches. In the C++ object described by the authors, members that are left unread retain the values supplied by the class’s default constructor. A partial read therefore gives the application the requested parts of the stored record. The application must know which parts it has fetched before interpreting a field as a measurement from that event.

Stored type information also makes trees useful when the original application library is unavailable. ROOT can inspect the layout recorded in a tree and generate a C++ header that represents it. The framework can also produce a starting structure for an event-processing routine based on `TSelector`. In combination with interpretation or compilation, these features make the file a starting point for writing an analysis. The stored structure tells the researcher which fields can be read. Interpreting their scientific meaning still depends on knowing how the data were produced.

#### Extend the same tree across files and locations

A physical file can become inconvenient well before an entire collection has been written. ROOT supports distributing a logical tree across files with `TChain`. Each constituent file contains a portion of a tree with the same name and structure. `TChain` inherits the interface of `TTree`, so the event-processing code can use the same operations while ROOT handles the transitions between files. Selective branch access still applies within each part of the chain.

There is a difference between chaining files and merging them. A chain leaves the original files in place and provides a common way to read them. ROOT also supports producing a new, larger file by merging contents. The authors describe recursive merging for compatible collections with matching names and types. A researcher who needs a unified scan can use a chain, while an operation that combines stored summaries or reorganizes files can produce a new physical result.

The paper describes ROOT files on ordinary file systems as well as files accessed through shared storage protocols or over HTTP. When a file is read over HTTP, ROOT can ask for particular ranges of bytes. This makes selective access useful for remote browsing too. The reader needs enough information to locate an object or branch, then requests the ranges that hold the necessary contents. The authors say that basic access of this kind does not require a special ROOT server at the remote end.

Selective reads can still incur delays if each request has to finish before the next one starts. The authors describe an adaptive prefetch mechanism that looks ahead while the application processes data it already has. It takes advantage of a scan that repeatedly reads the same subset of a tree. Selection reduces the amount of data requested, whereas prefetching changes when the data are requested. These are distinct ways to reduce waiting, and their effects can depend on the storage and network conditions.

#### Accumulate summaries or keep observations available

A tree is useful for statistical work that uses individual observations. A histogram is useful when the analysis can group observations into bins, each covering a specified interval or category. The paper places both forms of analysis within ROOT. An event loop can read measurements from a tree and fill a histogram, while a separate analysis can return to the tree to work directly with the recorded values. A histogram summarizes a choice of measurements and bins. Its usefulness depends on which details the subsequent analysis needs.

ROOT’s histogram family is built around `TH1` and supports different storage types for bin contents, multiple dimensions, and weighted entries. A bin has a value and an associated uncertainty. The histogram also records entries outside its defined range and tracks quantities such as the total entries and the integral. Bin widths can be uniform or variable. For a histogram of several variables, projecting onto an axis summarizes one variable across other coordinates, while taking a slice restricts attention to part of the range.

The framework supplies operations that can be applied to an existing histogram. Users can change its binning, perform arithmetic with other histograms or functions, and compare histograms using tests such as chi-square. Profile histograms serve a related purpose. They summarize how the mean and spread of one variable change across bins defined by another variable or set of variables. This is different information from a count of the observations that fall into each bin.

Some data are already organized as points with measured coordinates and associated errors. The paper introduces `TGraph` for this case. A graph can display the points and their uncertainties, and ROOT supplies operations such as fitting or interpolation. A graph and a histogram can appear similar in a finished figure, but their contents differ. The graph stores points, while the histogram represents summaries within a binning scheme. The choice determines what later operations on the object mean.

#### Fit distributions and evaluate statistical questions

For a fit, the user chooses a function with parameters and asks ROOT to find parameter values that best satisfy a chosen criterion for the data. The paper describes fits to both binned and unbinned observations. A function can come from compiled C++ or from an expression handled by `TFormula`. ROOT also provides pre-defined choices, such as Gaussian and exponential functions. The interactive fit panel lets researchers specify the starting parameter values, choose fitting options, and inspect how the fit criterion behaves as parameters vary.

The paper describes the software interfaces for objectives and minimizers in prose. It gives no single fitting equation that defines a ROOT analysis. A least-squares objective and a likelihood objective are examples of problems the framework can handle, and the appropriate objective depends on the analysis. The common minimizer interface in MathCore gives different numerical implementations a way to receive a problem. The descriptions of these implementations explain the kinds of problems they address, without selecting one method as the default choice for every analysis.

The distinction between numerical infrastructure and scientific interpretation runs through the statistical packages. MathCore provides functions for evaluating distributions as well as interfaces for operations such as integration and minimization. MathMore extends the available functions and numerical methods with implementations that use the GNU Scientific Library. The general matrix library offers operations such as solving systems and finding eigenvalues. `SMatrix` targets small matrices and vectors whose dimensions are fixed, using C++ expression templates to reduce allocation during computations.

RooFit allows researchers to describe distributions used in their analyses, fit those distributions, present them graphically, and generate simulated samples for statistical studies. RooStats builds on RooFit’s descriptions of densities and likelihoods. The tasks the paper lists for RooStats include constructing confidence intervals, assessing hypotheses, and combining analyses from separate channels. This arrangement allows an inference procedure to use a statistical description already available to the fitting software.

When the question is whether an event resembles signal or background, the paper points to TMVA. Signal is the type of event an analysis seeks, and background consists of other events that can contribute to the observations. The toolkit supports processing and evaluating multiple classification techniques. The data preparation, choice of input variables, and criteria for assessing a classifier belong to a particular application. The paper introduces TMVA as the part of ROOT that brings these techniques into the event workflow. [Machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/)

#### Develop on a sample and compile the expensive work

CINT is the C and C++ interpreter embedded in the version of ROOT discussed in the paper. A researcher can enter instructions at a prompt, develop a macro over several iterations, or run a macro in batch mode without opening graphical windows. When an interpreted statement asks a histogram to draw itself, the implementation of the drawing method can already be compiled in a ROOT library. Running an interpreted analysis therefore does not imply interpreting every operation used by it.

Calls can move in either direction. Interpreted code can invoke compiled routines, and compiled code can ask the interpreter to execute an expression. For calls from the interpreter into compiled functions, the paper describes small intermediary routines known as stubs. These are generated along with the dictionary and give CINT callable entry points. The dictionary infrastructure thus supports both storage and certain interactions between interpreted and compiled code.

ACLiC automates the build of a macro as a library that can be loaded into the ROOT session. This entails generating the dictionary source when needed, compiling the code, linking it, and loading the result. The user can keep the interactive session and use the compiled routines for the work that takes most of the execution time. The authors also describe the option of packaging the analysis as a standalone program. The choice depends partly on whether the work is still being revised interactively or is ready for repeated execution in batch.

The interpreter serves functions beyond an analyst’s prompt. The plugin manager can instantiate a registered implementation at runtime, leaving unused plugins unloaded. In the graphical interface, an action can invoke an expression resolved through the interpreter. The documentation system can run examples and incorporate their output. These uses share a need to choose or evaluate operations after the main program has been built. They illustrate why the paper treats the interpreter as infrastructure for the framework as well as a way to develop an analysis.

#### Assign independent event work to available workers

PROOF extends the analysis to clusters and machines with several processing cores. It distinguishes the client, which submits the work, from the master, which coordinates it, and the workers, which process events. The master receives the request, distributes work, and combines the returned results. The architecture can include several levels of masters. The authors describe such a hierarchy as a way to organize work near storage systems and distribute coordination duties across a larger installation.

For a desktop or laptop, PROOF-Lite places the master role in the client, which controls the workers directly. The setting changes the route through which work is coordinated. It keeps the same underlying requirement that individual event tasks can be performed independently and that the analysis can gather their contributions into a result. PROOF also offers a mode in which an analyst can submit a long query, disconnect, and later reconnect to inspect progress or retrieve results.

The unit assigned to a worker is called a *packet*. A worker requests its next packet after finishing the current one. A component on the master, the packetizer, uses the worker’s observed processing rate to choose the next packet size. In a configuration with subordinate masters, the paper describes a packetizer for each such master. The aim is for workers with different processing capacities or access to data to finish their assigned work at approximately the same time.

The paper describes starting with small packets so that the system can learn how quickly the workers are progressing. It can subsequently assign larger packets to make better use of storage and avoid frequent small reads. The size of a packet therefore influences both how often work can be redistributed and how efficiently the worker can fetch data. The packetizer uses the progress of the actual query to navigate that tradeoff.

To let PROOF control which worker gets each event, the analysis follows the structure of `TSelector`. Its `Begin` stage provides the setup for the job, including relevant parameters and outputs. `Process` carries out the event-level operation and is the part assigned to workers. `Terminate` handles work at the end, such as manipulating the accumulated results. The paper describes setup and termination activity on the client and workers, with event processing on the workers. This structure lets the framework own the event loop while the researcher defines the scientific computation it runs.

#### Merge results and make them inspectable

When workers finish, they send named result objects back to their master. How those results are combined depends on their types. A histogram has a natural combination rule when workers produce compatible versions of the same histogram. Its bins collect contributions from separate subsets of events, and adding the partial histograms gives the aggregate the paper describes for processing the full collection. Event lists can also be combined. For objects without a suitable merge operation, PROOF returns the separate worker outputs in a collection.

This arrangement makes the choice of worker output part of the parallel analysis. A histogram can summarize many events in a form the master knows how to merge. A user-defined class can participate through ROOT’s aggregation interface if it supplies an appropriate operation. An object that cannot be combined automatically can still be returned, leaving the application to interpret the set of contributions. The paper gives no universal aggregation formula, since the operation is determined by what the output represents.

While a query is running, the analyst can view progress information such as processed events, processed files, and an estimate of the remaining time. PROOF can also update displayed histograms if they were registered when the analysis began. A progress indicator shows how much work has completed, while a changing histogram shows what the completed work has produced so far. This distinction is part of the motivation for interactive processing of large collections.

ROOT’s graphical system represents a window or output area as a `TCanvas`. The canvas can contain smaller drawing regions called pads. When an object is added to a pad, ROOT retains it in a display list and paints the corresponding graphics when needed. This allows a histogram whose contents have changed to be displayed again without reconstructing every visual element by hand. An analyst can also edit visible elements interactively through the canvas interface.

The output format depends on how the result will be used. ROOT can save publication graphics as vectors, produce a bitmap image, or save C++ statements that recreate the canvas and its contents inside ROOT. The macro option retains a route to editing the display. It captures the state of the graphical result described in the paper. The preceding computation still determines the contents of the objects displayed on that canvas.

#### Produce simulated events and inspect detector geometry

ROOT’s Virtual Monte Carlo interface provides a route to generating events that can enter the same storage and analysis workflow. The application defines activities such as constructing the geometry and carrying out work at the start or end of an event. A concrete transport engine can be chosen at runtime. The authors describe this approach as a way to use a common application when comparing simulation engines.

The simulation begins with definitions of the particles, their possible interactions, and the detector. A particle is traced through detector volumes in steps. At a step, the simulation identifies the material and can use a pseudorandom draw to choose an interaction. An interaction can change the particle’s energy, and tracking continues until the particle leaves, stops, or disappears through a process such as decay. Read-out simulation addresses another part of the problem by turning energy deposited in detector locations into responses that account for the electronics and finite resolution.

The geometry package represents the detector as volumes within other volumes. Each placement is defined relative to its containing volume, and the outermost volume supplies the common reference frame. More complex shapes can be assembled from simpler solids using operations such as joining or subtracting them. The resulting geometry can be saved and loaded through ROOT, and it can serve both tracking and visualization. The same representation can therefore help a researcher relate a simulated trajectory to the part of the detector it passes through.

EVE, ROOT’s event visualization environment, brings together this geometry with simulated or reconstructed event objects. It can display localized detector signals, groups of signals, and particle trajectories, and can produce projected views of the scene. This part of the framework serves a different question from a statistical fit. Looking at the shape of a distribution across many events helps characterize a population. An event display shows how observations and reconstructed objects are arranged within a particular detector event.

### Experiments and results

#### A selective scan of a file hosted at CERN

The clearest numerical example concerns input and output. The authors describe an analysis of a 280 MB data file hosted at CERN, whose network connection is reported as 100 Mbit/sec. The task reads 6.6 MB. This is an example of scanning a dataset using a selection of the fields available in its file. The paper does not give the event count, the field names, or a named benchmark dataset for this scan. The reported values give the size of the physical file and the amount read by the analysis.

The full-file size is a reference for the amount of data involved in fetching the entire file. The paper does not report a measured full-file transfer for the same task. The chart compares data volumes for those two scopes. Its smaller value describes what the selective analysis reads. It should be interpreted separately from elapsed time, which depends on how the requests are issued and how the connection responds.

Full file size and selective read volume for the CERN-hosted analysis The selective analysis reads only part of the file.

**The numbers**

| System or setting | MB |
| --- | --- |
| Entire file | 280 |
| ROOT selective analysis (this paper) | 6.6 |

The authors use this analysis to discuss cache behavior and network latency. The cache example compares analysis duration under different access conditions. As they explain it, the bandwidth reported for a connection is the smallest bandwidth along its path. They argue that bandwidth on its own does not account for the observed behavior when the connection is lightly occupied. A workload that asks for its next piece of data only after finishing with the current one can spend appreciable time waiting for requests, even if the connection has capacity to carry more data.

Prefetching addresses that waiting by bringing reading and processing into overlap. The paper reports that this can make analyses practical even over ADSL, a connection type it cites in its discussion of high latency. The numerical file and read sizes establish that the example is a selective workload. They do not specify the improvement in execution time, the contribution from compression, or how much of the file traffic is attributable to any particular choice of branch splitting. In particular, the data-volume comparison cannot be used as a timing comparison.

There is no separately timed relational database baseline in the paper’s account of this workload. Row-wise storage provides a conceptual comparison that explains why the amount read can change with the layout. The cache comparison addresses a different performance question, concerning when requests are issued while the analysis is running. A reader can use the example to see why independent branch access and read-ahead both matter without attributing the entire behavior of a remote scan to either feature alone.

#### What the installation benchmarks report

The paper includes a test-run description alongside the architecture. It shows an example output of 1120.18 ROOTMARKS for `benchmarks.C`, a tutorial macro used to check that the installed framework runs successfully. ROOTMARKS is the performance score printed by the program. The example establishes the form of the output a user can expect when running the benchmark. The paper gives no breakdown of that score by the individual operations included in the macro.

A separate example comes from the standalone `stress` program, which reports 859.2 ROOTMARKS and identifies its ROOT version as `Root5.23/03`. The authors describe other standalone tests that exercise areas such as graphics and geometry. The macro and the stress program are distinct workloads. Their displayed scores therefore do not establish a ranking of versions, machines, execution modes, or implementations. There is no matched account of the environments and tasks that would make their numerical values a controlled comparison.

The tests serve a narrower role than a measurement of the framework’s overall speed. The tutorial example checks that a standard analysis macro can run and report a result. The standalone example shows that a different path through the software can also exercise the installation and report a score. A reader evaluating a particular application would need a benchmark of that application’s access pattern, computation, and output. The paper’s examples describe how ROOT users can test an installation without claiming that either score predicts a scientific workload.

#### Use at scale and inside experiments

The authors report an estimate of up to 50 petabytes of data stored using ROOT, based on a survey of computing coordinators for experiments. This is an estimate of data stored using the framework across deployments. The paper separately describes typical individual files ranging from a few kilobytes to several gigabytes. Those observations explain why chaining files is a central part of the design. A collection can grow across files while analysis code retains the interface of a single tree.

The estimate describes storage in use. The paper does not present a scan of all that data, a dataset of that size used as a benchmark, or a runtime for an analysis at that scale. The claim has practical significance because it concerns the volume handled in existing use. Its scope is different from the remote scan, which shows what happens when a particular analysis uses a small part of a particular file. Together the examples describe deployment scale and a concrete pattern of access without converting either into a measure of maximum throughput.

Detector geometry provides another demonstration of breadth. The paper says that the standard ROOT test suite uses particle tracking with 35 large detector geometries. The number counts detector geometries involved in that test activity. It does not give a tracking error, a pass rate, or a time per track. The authors also name AliROOT and FAIRROOT as examples of applications of the Virtual Monte Carlo interface. These examples show where applications adopted the common simulation interface, while the article leaves measurements of agreement between simulation engines to the analyses that would perform those comparisons.

For event visualization, the paper shows a simulated proton-proton event as displayed for the ALICE detector. The image distinguishes reconstructed trajectories from measured particle passage points. It illustrates how event objects can be viewed in relation to the detector instead of describing the performance of the reconstruction itself. The authors identify AliEVE as the standard display in ALICE and describe EVE as the toolkit underlying the CMS display, cmsShow. They report that both are also used in online data-quality monitoring.

The statistical packages and parallel scheduler receive a different kind of treatment. The paper identifies available fitting, inference, and classification methods and describes how an analysis can invoke them. It gives no classifier accuracy on a set of labeled events or comparison of uncertainty estimates on a common statistical task. The PROOF discussion specifies how workers receive and return work, but the paper gives no throughput curve as worker count increases. These parts of the article describe implemented facilities and their intended workloads, while the reported quantitative examples concentrate on file access, storage in use, and test programs.

### What the ablations show

The paper reports no formal ablation study in which successive ROOT components are removed from an otherwise fixed setup. It does offer a comparison involving the tree cache, an analysis of selective and whole-object access, and explanations of the tradeoffs behind splitting, compression, and work distribution.

The tree cache comparison is the closest to an experiment that isolates a feature of normal analysis. It uses a remote read to examine how fetching data in advance affects the duration of a selective scan. Reduced waiting is the mechanism proposed by the authors. The task needs a subset of the file in either case, so the cache comparison addresses a separate question from the chart’s comparison of file size and read volume. It shows why minimizing the number of bytes involved can leave another source of delay that the I/O layer can address.

The comparison of row-wise storage with branch-based storage is a structural analysis. If a reader needs a limited selection of fields, independent branch buffers create an opportunity to leave other fields on disk. If a reader needs the entire object, that opportunity diminishes, and the paper says that splitting is unnecessary for such a workload. The authors explain the relevance of access patterns without publishing a sweep of splitting settings under fixed conditions. They also give a reason for why field grouping can help compression, without reporting a measurement that separates that effect from the effect of reading fewer branches.

The discussion of interpreted and compiled execution identifies where each can be used in the same application. According to the paper, interpretation reduces the steps needed to revise and rerun code, while compilation improves execution speed. ROOT lets a researcher explore an analysis interactively and call compiled code for the work that dominates runtime. The benchmark outputs do not compare the same macro under both execution modes, so they cannot establish the size of the benefit. The contribution described here is the ability to move work between modes while keeping the surrounding application in C++.

For PROOF, the analysis concerns how work is divided. Small initial packets provide observations of worker speed. Larger subsequent packets can give better storage access. Issuing new packets on request lets the system adapt the remaining assignments as workers finish. These choices address recognizable sources of uneven progress, but the paper provides no matched comparison with a fixed assignment policy. The analysis explains why adaptive scheduling is appropriate for the workload described. It leaves the magnitude of any improvement dependent on the workers, storage arrangements, and event-processing task.

### Limitations

#### Limits the authors identify

The authors tie the benefits of splitting to the access pattern. Separate branches are useful when an analysis reads a small selection of an object’s members. If the whole object is needed, the paper says that splitting is unnecessary. They also describe compression as a tradeoff between a smaller volume of stored or transferred data and additional CPU work. The relevant cost therefore depends on how the analysis accesses the file and which resource is limiting its speed.

The paper describes XML storage as a way to inspect the layout and says that its performance and disk use make it unsuitable as a production storage format. The binary format is the focus of the storage design. The authors also distinguish automatic schema evolution, which handles many changes, from a conversion defined by the user. The latter is available when the way to interpret older data requires application-specific knowledge.

CINT has limitations in its handling of C++, including templates. The authors explain that using a full compiler through ACLiC can bring both execution speed and more complete language support. The framework in the paper combines interpretation with external compilation and loading. The costs of the different execution paths depend on how much work the analyst performs in the interpreter and how much resides in compiled routines.

PROOF’s stated scope is work that can be divided into independent subtasks. It depends on the framework controlling the event loop, which is why an analysis follows the selector structure. The output has its own constraint. ROOT can combine partial results only when there is a suitable operation for their type. The authors describe returning objects separately when such an operation is unavailable. These are limits of the kind of parallel analysis and aggregation the paper discusses.

#### Limits of the evidence in the paper

The remote file example gives a concrete scale for selective reading, but its choice of file and workload limits how broadly the result can be applied. The amount read depends on the fields requested and how their contents are grouped into buffers. An analysis that needs whole records, selects different fields at different points, or spends most of its time fitting instead of reading can have different costs. The example also reflects a remote connection. It cannot establish the effect of the same changes when reading from a local disk or another shared storage arrangement.

The survey estimate and the performance examples answer different questions. The storage estimate describes reported deployment. It cannot show how quickly the framework processes that total volume. The ROOTMARKS scores are example outputs from distinct programs, so they cannot show how reliably a score predicts the runtime of a specific analysis. The paper reports no common workload and environment for a ranking against another framework. Its performance evidence is strongest when interpreted together with the specific operation or setup each example describes.

Several proposed advantages are explained by the design with little direct measurement in the paper. Branch grouping can improve compression when a field exhibits recurring values, but the authors do not report compression results across different field types or levels of splitting. The packetizer can react to differences in worker rates, but the article gives no scaling measurements that establish which part of a distributed job becomes limiting first. The discussion of compiler support explains what happens when a macro is compiled, without a benchmark that holds the macro and data fixed across modes.

The statistical tools likewise describe what an analyst can do. Their presence does not demonstrate the quality of a particular fit, the accuracy of a classification, or the reliability of an interval for a given scientific question. Those outcomes require a specified dataset, analysis procedure, and way of checking the result. The same distinction applies to simulation. Sharing an application between engines creates the conditions for a comparison. The paper reports no numerical estimate of simulation uncertainty from such a comparison.

Finally, the paper’s scope is a particular state of the framework. Its accounts of type information, interpreters, build systems, and graphical backends describe the implementation at the version named by the authors. The longer-lived design ideas can be understood from this account, but it cannot establish the behavior of later versions or the implementation status of changes the authors were considering.

### What came after

The paper records prospective changes to ROOT but documents no subsequent research that implemented or evaluated them. One proposal concerned the transition from CINT to compiled execution. The authors were considering whether just-in-time compilation, potentially using LLVM, could compile code during the session without invoking the external build tools used by ACLiC. The prospective change addressed how ROOT moved code into compiled execution, while preserving the interactive workflow that motivated that transition.

The authors also describe ongoing work to use OpenGL for flat screen graphics as well as spatial views. OpenGL already served in their account as a renderer for surfaces and detector geometry. Extending its role would bring both kinds of display through a common rendering interface. As with the compilation proposal, the paper establishes the intended direction and the reason for pursuing it. It gives no later implementation result or measurement for either change.

## Cite

Cite as Ilka Antcheva, M. Ballintijn, Bertrand Bellenot, M. Biskup, R. Brun, R. Brun, N. Buncic, Philippe Canal, D. Casadei, Olivier Couet, Valery Fine, L. Franconi, G. Ganis, A. Gheaţă, David Gonzalez Maline, M. Goto, J. Iwaszkiewicz, Anna Kreshuk, D. Marcos Segura, R. Maunder, L. Moneta, A. Naumann, E. A. J. M. Offermann, V. A. Onuchin, S. Panacek, Fons Rademakers, P. Russo and Matevž Tadel. 2009. ROOT — A C++ framework for petabyte data storage, statistical analysis and visualization. Computer Physics Communications.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.cpc.2009.08.005](https://doi.org/10.1016/j.cpc.2009.08.005) · [arXiv 1508.07749](https://arxiv.org/abs/1508.07749)

```bibtex
@inproceedings{antcheva2009root,
  title = {{ROOT — A C++ framework for petabyte data storage, statistical analysis and visualization}},
  author = {Ilka Antcheva, M. Ballintijn, Bertrand Bellenot, M. Biskup, R. Brun, R. Brun, N. Buncic, Philippe Canal, D. Casadei, Olivier Couet, Valery Fine, L. Franconi, G. Ganis, A. Gheaţă, David Gonzalez Maline, M. Goto, J. Iwaszkiewicz, Anna Kreshuk, D. Marcos Segura, R. Maunder, L. Moneta, A. Naumann, E. A. J. M. Offermann, V. A. Onuchin, S. Panacek, Fons Rademakers, P. Russo and Matevž Tadel},
  booktitle = {Computer Physics Communications},
  year = {2009},
  doi = {10.1016/j.cpc.2009.08.005},
  eprint = {1508.07749},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.cpc.2009.08.005}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
