oxyroot
Another attempt to make library reading of .root binary files which are commonly used in particle physics
Inspiration
To make this library :
- inspiration taken from groot for reading root file, even the code organisation
- inspiration taken from uproot to provide branch interface (for reading basket buffer)
Getting started
Example: Iter over a branch tree containing i32 values
use RootFile;
let s = "examples/from_uproot/data/HZZ.root";
let tree = open.unwrap.get_tree.unwrap;
let NJet = tree.branch.unwrap.;
NJet.for_each;
Example: Iter over a branch tree containing Vec<i32> (aka std::vector<int32_t>) values
use RootFile;
let s = "tests/stl_containers/stl_containers.root";
let tree = open.unwrap.get_tree.unwrap;
let vector_int32 = tree.branch
.unwrap.
. ;
assert_eq!;