read_branches
Read selected branches from a ROOT TTree or RNTuple with optional cut expressions and row bounds to extract data without modifying the file.
Instructions
Read selected branches from a ROOT TTree or RNTuple, optionally with a cut expression. Set entry_start/entry_stop to bound rows; prefer get_branch_stats or histograms for large datasets. Does not modify files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| limit | No | Maximum rows to return (alternative to entry_stop) | |
| offset | No | Rows to skip (alternative to entry_start) | |
| defines | No | Derived branch names mapped to expressions | |
| flatten | No | Flatten jagged arrays; loses event boundaries | |
| branches | Yes | ||
| selection | No | Optional cut expression | |
| tree_name | Yes | Tree name | |
| entry_stop | No | Exclusive stop entry | |
| entry_start | No | Start entry |