Awkward Array (HEP)

•
3
•

Manages complex, variable-length nested arrays in Python for High Energy Physics analysis using NumPy-like idioms.

The Awkward Array skill provides domain-specific guidance for handling jagged data structures common in High Energy Physics (HEP) workflows. It assists users in adopting Awkward 2.x API patterns, enabling the efficient construction of event records, filtering of nested collections, and execution of complex combinatorics like Cartesian products. By enforcing best practices for handling OptionTypes, broadcasting weights, and managing cross-library interop, this skill ensures robust data processing while facilitating seamless integration with tools like Uproot, Vector, and Coffea.

Key Features

01Specialized support for Awkward 2.x API patterns and syntax
02Expert guidance for nested array filtering and combinatorics
03Efficient building of physics-object records using ak.zip
04Advanced broadcasting of per-event weights to per-object arrays
05Robust handling of OptionType and None-padding debugging
063 GitHub stars

Use Cases

01Computing invariant mass and deltaR for unique particle pairs
02Processing physics events from ROOT files via Uproot
03Preparing ragged datasets for histogram filling and NumPy interop