BaseSchema#
- class coffea.nanoevents.BaseSchema(base_form, *args, **kwargs)[source]#
Bases:
objectBase schema builder
The basic schema is essentially unchanged from the original ROOT file. A top-level
base.NanoEventsobject is returned, where each original branch form is accessible as a direct descendant.Attributes Summary
Awkward form of this schema (dict)
Methods Summary
behavior()Behaviors necessary to implement this schema (dict)
uproot_writeable(events)Converting BaseSchema events into something that is uproot writeable.
Attributes Documentation
- form#
Awkward form of this schema (dict)
Methods Documentation
- classmethod uproot_writeable(events)[source]#
Converting BaseSchema events into something that is uproot writeable. BaseSchema leaves every original branch as a top-level field, so this just packs each uproot-compatible field into a dict ready for
uproot.WritableDirectory.mktree.Subclasses that apply non-trivial zipping during construction should override this with a schema-specific inverse.
- Parameters:
events (
NanoEvents) – The BaseSchema events to be turned into something uproot-writeable- Returns:
out – An uproot-writeable dictionary representing the same information as the input events
- Return type: