Skip to content

mohamedelashri/hep-tools

v0.2.2MIT

Reusable HEP/Python development skills and generic read-only HEP MCP tools.

pylhe

Use when reading or writing Les Houches Event (LHE) files in Python: reading parton-level events from MadGraph, Powheg, Sherpa, Pythia, or Whizard generators, iterating over initial- and final-state parton four-vectors, accessing event weights and scale/PDF reweighting blocks, counting events efficiently, writing modified LHE files back to disk, visualising event topologies with graphviz, or converting events to awkward arrays for vectorized analysis. Also use when the user mentions LHEFile, LHEEvent, LHEParticle, or parsing .lhe / .lhe.gz files.

Read SKILL.md at the source

Pinned to revision 0bc82bc909b9, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.