EDM4HEPSchema#

class coffea.nanoevents.EDM4HEPSchema(base_form, *args, **kwargs)[source]#

Bases: BaseSchema

Schema-builder for EDM4HEP root file structure. EDM4HEPSchema for edm4hep version 00.99.01

Attributes Summary

Methods Summary

behavior()

Behaviors necessary to implement this schema

uproot_writeable(events)

Converting BaseSchema events into something that is uproot writeable.

version([ver])

Choose a version of EDM4HEPSchema to use.

Attributes Documentation

edm4hep_version = '00-99-01'#
extra_mixins = {'*idx': 'ObjectID'}#

Methods Documentation

classmethod behavior()[source]#

Behaviors necessary to implement this schema

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:

dict

classmethod version(ver='latest')[source]#

Choose a version of EDM4HEPSchema to use.

Parameters:

ver (str, optional) –

Version of edm4hep.yaml. Allowed values:

  • ”latest” (default): corresponds to 00.99.01 version of edm4hep.yaml

  • ”00.99.01”: corresponds to 00.99.01 version of edm4hep.yaml

  • ”00.99.00”: corresponds to 00.99.00 version of edm4hep.yaml

  • ”00.10.05”: corresponds to 00.10.05 version of edm4hep.yaml

  • ”00.10.04”: corresponds to 00.10.04 version of edm4hep.yaml

  • ”00.10.03”: corresponds to 00.10.03 version of edm4hep.yaml

  • ”00.10.02”: corresponds to 00.10.02 version of edm4hep.yaml

  • ”00.10.01”: corresponds to 00.10.01 version of edm4hep.yaml