vector-awkward

Enable vectorized 3D/4D kinematics operations on Awkward arrays.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/gordonwatts/skill-test --skill vector-awkward
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vector-awkward
Source: https://github.com/gordonwatts/skill-test/tree/main/.codex/skills/vector-awkward
Command: npx skills add https://github.com/gordonwatts/skill-test --skill vector-awkward

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps Python users build and operate vector-like records using Awkward arrays, removing boilerplate when working with Momentum3D/Momentum4D data.

Core Features & Use Cases

  • Build vector records with standard field names and tagged record types (pt, eta, phi, mass) using ak.zip with with_name Momentum4D.
  • Compute common kinematic quantities such as deltaR and invariant mass, and perform boosts across large datasets.
  • Integrate vector-aware operations into data-analysis workflows for high-energy physics research.

Quick Start

Register vector Awkward support with vector.register_awkward() and create a Momentum4D record using ak.zip, then perform common operations such as deltaR or invariant mass.

Frequently Asked Questions about vector-awkward

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute deltaR and invariant mass for Momentum4D records in Python?

You can compute deltaR and invariant mass by registering Awkward support with vector.register_awkward(), then building Momentum4D records via ak.zip with standard fields like pt, eta, phi, and mass to enable vectorized kinematic operations.

What is the best way to perform vectorized 3D and 4D kinematics operations on Awkward arrays?

Vectorized kinematics operations on Awkward arrays use the vector library to register Momentum3D or Momentum4D record types, enabling direct computation of boosts, invariant masses, and deltaR across large high-energy physics datasets without Python loops.

Do I need to call vector.register_awkward() before creating Momentum4D records with ak.zip?

Yes, calling vector.register_awkward() before using ak.zip to create Momentum4D records is required to activate vector-aware methods on Awkward arrays, enabling operations like deltaR, invariant mass, and boosts.

Can I use Awkward arrays for high-energy physics momentum boosts and kinematic calculations?

Yes, Awkward arrays support high-energy physics momentum boosts and kinematic calculations by constructing Momentum3D or Momentum4D records with standard fields like pt, eta, phi, and mass, then applying vectorized boost operations across large datasets.

What standard field names are required when building Momentum3D or Momentum4D records in Awkward?

Standard field names for Momentum3D or Momentum4D records in Awkward include pt, eta, phi, and mass, assembled using ak.zip with with_name set to Momentum3D or Momentum4D to enable vectorized kinematic operations.