1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//! # Root-io //! This crate provides a way to retrieve data saved in the //! [ROOT](https://root.cern.ch/) binary format commonly used in //! particle physics experiments. This library provides the basic //! means to inspect and process the contents of arbitrary ROOT //! files. `Root-io` provides a simple mean to read //! data stored in so-called `TTrees`. The goal of this library is //! primarily to make the data [published](http://opendata.cern.ch/) //! by the ALICE collaboration accessible in pure Rust. An example of //! its usage for that purpose is demonstrated as an [example //! analysis](https://github.com/cbourjau/alice-rs/tree/master/simple-analysis). //! //! The API surface is deliberately small to make the processing of said //! files as easy as possible. If you are looking for a particular //! parser chances have it that it exists but it is not marked as `pub`. #![recursion_limit="256"] #[macro_use] extern crate bitflags; #[macro_use] extern crate nom; #[macro_use] extern crate quote; #[macro_use] extern crate failure; extern crate flate2; extern crate xz2; // pub mod core_types; pub mod core; mod code_gen; pub mod tree_reader; mod tests; pub use core::{RootFile, FileItem}; /// Offset when using Context; should be in `Context`, maybe? const MAP_OFFSET: u64 = 2;