Skip to main content
QUICK REVIEW

[Paper Review] SUSY Les Houches Accord 2 I/O made easy

Thomas Hahn|ArXiv.org|May 4, 2006
Mathematics, Computing, and Information ProcessingComputer Science7 citations
TL;DR

This paper presents a Fortran 77 library that simplifies reading and writing SLHA2 format files for supersymmetric (SUSY) particle physics calculations. It uses a single double complex array accessed via preprocessor macros to streamline data handling, enabling easy integration with spectrum calculators and event generators while maintaining backward compatibility with SLHALib 1 and supporting complex parameters in SLHA2.

ABSTRACT

A library for reading and writing data in the SUSY Les Houches Accord 2 format is presented. The implementation is in native Fortran 77. The data are contained in a single array conveniently indexed by preprocessor statements.

Motivation & Objective

  • To simplify the input/output of SUSY Les Houches Accord 2 (SLHA2) formatted data in high-energy physics applications.
  • To provide a lightweight, portable Fortran 77 library that handles SLHA2 file reading and writing without modifying physical parameters.
  • To maintain backward compatibility with SLHALib 1 while supporting complex parameters introduced in SLHA2.
  • To reduce programming complexity by replacing manual array indexing with preprocessor-defined symbolic names for SLHA blocks and decay tables.
  • To enable seamless integration between spectrum calculators and Monte Carlo event generators through standardized, human-readable SLHA2 I/O.

Proposed method

  • The library uses a single double complex array, `slhadata`, as the central data container for all SLHA2 input and output.
  • Preprocessor macros (defined in `SLHA.h`) map symbolic names to array indices, eliminating the need for users to memorize or calculate offsets.
  • SLHA blocks (e.g., SMInputs, MinPar) are accessed via macros like `BlockSMInputs(i)` with automatic indexing based on the SLHA2 specification.
  • Decay information is managed through dedicated subroutines: `SLHANewDecay`, `SLHAAddDecay`, `SLHAGetDecay`, and `SLHADecayTable`, enabling dynamic decay table construction.
  • The library supports complex parameters via a double complex data type, distinguishing it from the real-only `SLHALib 1`.
  • A `SLHAInfo` subroutine is used to add metadata such as program name and version, replacing the previous hard-coded arguments in `SLHAWrite`.

Experimental results

Research questions

  • RQ1How can SLHA2 I/O be made more accessible and less error-prone for Fortran-based SUSY software developers?
  • RQ2What is the most efficient way to represent and access SLHA2 data structures in a portable, backward-compatible Fortran 77 library?
  • RQ3How can complex parameters in SLHA2 be natively supported in a legacy Fortran 77 environment?
  • RQ4What interface design minimizes the learning curve and coding errors when integrating SLHA2 into existing spectrum and event generator workflows?
  • RQ5Can a single array abstraction with preprocessor macros effectively replace complex data structures while maintaining performance and correctness?

Key findings

  • The library successfully decouples SLHA2 data access from low-level array indexing by using preprocessor macros, significantly reducing coding errors and improving maintainability.
  • The transition from real to complex data via `double complex slhadata` enables full support for SLHA2’s complex parameters, including those in the MSSM and its extensions.
  • The `SLHAExist` function now returns an integer indicating the presence of real, complex, or invalid entries, enhancing type safety and error detection.
  • The `SLHAInfo` subroutine allows flexible metadata injection (e.g., program name, version) without modifying the `SLHAWrite` interface, improving extensibility.
  • The library maintains backward compatibility with SLHALib 1, requiring minimal code changes when upgrading from SLHA1 to SLHA2 workflows.
  • The build process is straightforward, with `./configure && make` supporting common Fortran compilers, and source code is freely available under the GNU LGPL at http://www.feynarts.de/slha.

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.