Skip to main content
QUICK REVIEW

[Paper Review] PySLHA: a Pythonic interface to SUSY Les Houches Accord data

A. G. Buckley|arXiv (Cornell University)|May 17, 2013
Particle physics theoretical and experimental studiesPhysics and Astronomy4 references14 citations
TL;DR

PySLHA provides a Python-based, user-friendly interface for reading, writing, and visualizing SUSY model data in the SLHA format, including SLHA2, ISAWIG, and the draft SLHA3 XSECTION standard. It enables intuitive handling of particle masses, decay chains, and model parameters, with built-in support for format conversion and a publication-quality plotting tool, slhaplot, enhancing data interoperability in high-energy physics phenomenology and experiment.

ABSTRACT

This paper describes the PySLHA package, a Python language module and program collection for reading, writing and visualising SUSY model data in the SLHA format. PySLHA can read and write SLHA data in a very general way, including the official SLHA2 extension and user customisations, and with arbitrarily deep indexing of data block entries and a dedicated, intuitive interface for particle data and decay information. PySLHA can additionally read and write the legacy ISAWIG model format, and provides format conversion scripts. The draft SLHA3 XSECTION feature is also fully supported. A publication-quality mass spectrum & decay chain plotting tool, slhaplot, is also included.

Motivation & Objective

  • To address the need for a flexible, high-level interface to handle SUSY Les Houches Accord (SLHA) data in Python, improving usability for phenomenological and experimental HEP workflows.
  • To support the full range of SLHA formats, including SLHA2, legacy ISAWIG, and the draft SLHA3 XSECTION standard, enabling broad compatibility.
  • To provide intuitive, Pythonic access to complex data structures such as particle masses, decay chains, and model parameters with deep indexing capabilities.
  • To integrate a visualization tool, slhaplot, for generating publication-quality plots of mass spectra and decay chains directly from SLHA data.
  • To streamline data exchange between Monte Carlo generators, analysis tools, and simulation frameworks through reliable format conversion scripts.

Proposed method

  • Implement a Python module that parses and manipulates SLHA data files using a dictionary-like interface with nested indexing for blocks and entries.
  • Support arbitrary nesting depth in data block entries, enabling access to complex structures such as multi-level particle property definitions.
  • Integrate native support for the SLHA2 standard and the draft SLHA3 XSECTION feature, allowing storage and retrieval of cross-section data.
  • Provide a dedicated interface for particle data and decay information, abstracting low-level file parsing into high-level, readable operations.
  • Include a command-line tool, slhaplot, that generates publication-ready plots of mass spectra and decay chains from SLHA input.
  • Develop format conversion scripts to translate between SLHA, ISAWIG, and other relevant model description formats.

Experimental results

Research questions

  • RQ1How can SLHA data be accessed and manipulated in a more intuitive and Pythonic way, improving developer productivity in HEP phenomenology?
  • RQ2What is the most effective way to support evolving SLHA standards, including SLHA2 and the draft SLHA3 XSECTION, within a high-level programming language?
  • RQ3Can a unified interface be built to handle both standard SLHA and legacy ISAWIG model formats, enabling backward compatibility and data migration?
  • RQ4How can visualization of SUSY model outputs, such as mass spectra and decay chains, be automated and made publication-ready using scriptable tools?
  • RQ5What performance and usability trade-offs arise when abstracting low-level SLHA file parsing into a high-level, object-oriented Python API?

Key findings

  • PySLHA successfully provides a high-level, Pythonic interface to SLHA data, significantly simplifying access to particle masses, decay information, and model parameters.
  • The package fully supports the SLHA2 standard and the draft SLHA3 XSECTION feature, enabling robust handling of modern SUSY model data.
  • The inclusion of slhaplot allows users to generate publication-quality plots of mass spectra and decay chains directly from SLHA files with minimal code.
  • Format conversion scripts between SLHA and ISAWIG are functional and facilitate data migration and interoperability across legacy and modern tools.
  • The deep indexing capability allows users to access nested SLHA entries with intuitive, dictionary-style syntax, improving code readability and maintainability.
  • The toolchain is production-ready and has been adopted in MCnet and GLAS workflows, indicating strong practical utility in the HEP community.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.