This module defines behaviors, which are mix-in classes that provide a high-level interface to objects read from ROOT files.
Behaviors do not have a required base class, and they may be used with
To add a behavior for a ROOT class:
Translate the ROOT class name from C++ to Python with uproot.classname_encode. For example,
Create a submodule of
"Model_"prefix. For example,
Include a class in that submodule with the fully encoded name. For example,
When Uproot reads an instance of the class, it would always create a deserialization model if one is not predefined. But if a behavior with the appropriate name exist, the new class will inherit from the behavior, giving the newly created object specialized methods and properties.
See also uproot.models.