Module root_io::tree_reader [] [src]

A convenience wrapper and needed parsers to work with ROOT's TTrees. A Tree may be thought of as a table where each row represents a particle collision. Each column may contain one or several elements per collision. This module provides two Iterator structs in order to iterate over these columns (TBranches in ROOT lingo).

Structs

ColumnFixedIntoIter

Iterator over the data of a column (TBranch) with a single element per entry

ColumnVarIntoIter

Iterator over the data of a column (TBranch) with a variable number of elements per entry. See the file read_esd.rs in the repository for a comprehensive example

Tree

A Tree is the default "container" for datasets in Root files The data is oranized in so-called branches. This type is exposed only for the purpose of creating ColumnFixedIntoIter and ColumnVarIntoIter objects from it.

Functions

ttree

Parse a Tree from the given buffer. Usually used through FileItem::parse_with.