e15190.utilities.root6.infer_tree_name¶
- e15190.utilities.root6.infer_tree_name(path: str | pathlib.Path | Sequence[str | pathlib.Path]) str¶
- Parameters
path (str or pathlib.Path, or sequence of str or pathlib.Path) – Path(s) to the ROOT file(s) of interest.
- Returns
tree_name – Name of the tree.
- Return type
str
- Raises
ValueError – One of the following causes: - No tree name found in the given path(s). - Paths contain different tree names. - Cannot infer tree name from the given path(s), e.g. no ROOT file found, multiple trees, etc.