Skip to main content

read_root

Function read_root 

Source
pub fn read_root(
    path: Bound<'_, PyAny>,
    tree: Option<String>,
    p4s: Option<Vec<String>>,
    aux: Option<Vec<String>>,
    aliases: Option<Bound<'_, PyDict>>,
) -> PyResult<PyDataset>
Expand description

Read a Dataset from a ROOT file using the oxyroot backend.

§Examples

import laddu.io as ldio # doctest: +SKIP dataset = ldio.read_root( # doctest: +SKIP … ‘events.root’, … tree=‘kin’, … p4s=[‘beam’, ‘proton’], … aux=[‘pol_magnitude’, ‘pol_angle’], … ) dataset.aux_names # doctest: +SKIP [‘pol_magnitude’, ‘pol_angle’]