PDUNESchema#

class coffea.nanoevents.PDUNESchema(base_form)[source]#

Bases: BaseSchema

Attributes Summary

Methods Summary

behavior()

Behaviors necessary to implement this schema

uproot_writeable(events)

Converting BaseSchema events into something that is uproot writeable.

Attributes Documentation

mixins = {'RecoBeam': 'Beam', 'Showers': 'Showers', 'Tracks': 'Tracks', 'end3D': 'ThreeVector', 'end4D': 'LorentzVector', 'reco_beam': 'RecoBeam', 'reco_daughter_allShower': 'Showers', 'reco_daughter_allTrack': 'Tracks', 'start3D': 'ThreeVector', 'start4D': 'LorentzVector', 'vtx3D': 'ThreeVector'}#
top_objects = {'reco_beam': 'RecoBeam', 'reco_daughter_allShower': 'Showers', 'reco_daughter_allTrack': 'Tracks', 'true_beam': 'TrueBeam'}#

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