This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
3.7.0rc1
First version with lazy profiles:
a = uproot.lazyarrays("nanoaod*.root", "Events", profile="cms.nanoaod")
a.electrons # jagged array of electron objects
a.electrons.pt # jagged array of electron pT
a.electrons.photon # jagged, masked array of the photons linked to each electron (if any)
a.electrons.photon.pt # their pT
a.photons.pt # this is different
The profile restructures the lazy array so that—without triggering any reads—it has a physics-friendly nested structure.