TBranch
TBranch is a class in the ROOT data analysis framework that represents a branch in a TTree. A TTree is a hierarchical container used to organize large datasets, and each branch stores data for a subset of variables or objects, often corresponding to a specific physical quantity or data structure. Within a branch, leaves (TLeaf) describe the data items and their types, and branches can contain primitive types, arrays, or user-defined objects.
Branches are created when filling a TTree, typically via TTree::Branch, where the branch name, the address of
Root I/O and performance are closely tied to branching. Splitting controls how complex objects are stored across
TBranch interacts with other ROOT components, including TTree for organization, TFile for storage, and TLeaf/TBranchElement for