Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

legend-simflow

legend-simflow logo

PyPI GitHub tag (latest by date) GitHub Workflow Status pre-commit Codecov Read the Docs GitHub issues GitHub pull requests License DOI

End-to-end Snakemake workflow to run Monte Carlo simulations of signal and background signatures in the LEGEND experiment and produce probability-density functions (pdfs). Configuration metadata (e.g. rules for generating simulation macros or post-processing settings) is stored at legend-simflow-config.

Features

  • Tier-based Snakemake workflow taking Geant4 (remage) Monte Carlo events all the way to analysis-ready pdfs.
  • Simulated statistics weighted by the livetime of a user-selected list of data taking runs (run partitioning).
  • Fully metadata-driven: a production is configured by editing a single YAML file, no code required. Runs locally or on HPC sites through ready-made Snakemake profiles.

Detector response models

Physics and detector models tuned to real LEGEND-200 data and applied during post-processing:

  • HPGe energy: per-detector energy scale and measured energy resolution FWHM(E) used to smear the simulated energy.
  • HPGe active volume: dead-layer / active-volume model from detector geometry and metadata.
  • HPGe pulse shape and PSD: Extraction of the A/E PSD observables based on drift-time maps and ideal pulse-shape libraries computed with SolidStateDetectors.jl. This is combined with an electronics-response model's fitted to data waveforms.
  • Liquid-argon scintillation and SiPMs: scintillation photon generation, photoelectron detection sampled from optical maps, per-photoelectron amplitude resolution, and time clustering reproducing the SiPM time response.
  • Detector status: per-run usability and PSD-usability flags.
  • Event building: time-coincidence maps (TCM) across detectors to group hits into physics events.

Documentation

Full documentation is hosted at legend-simflow.readthedocs.io. Good entry points:

Metadata

Release files for legend-simflow 1.5.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for legend-simflow 1.5.0a1
File Size Uploaded Provenance Actions
legend_simflow-1.5.0a1.tar.gz 490.9 kB With provenance Details for legend_simflow-1.5.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for legend-simflow 1.5.0a1
File Interpreter ABI Platform Actions
legend_simflow-1.5.0a1-py3-none-any.whl Python 3 none any Details for legend_simflow-1.5.0a1-py3-none-any.whl

Total release size: 729.1 kB

Release files / legend_simflow-1.5.0a1.tar.gz

Download URL legend_simflow-1.5.0a1.tar.gz
Size 490.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3b769d95511796e1c97a833f4d270c0632952d36e6989f0d39e6343c0097bded
BLAKE2b-256 checksum
How to use checksums
7a0af07bc29fcb3b097af2fcab469352b63f30c1b76dd655de8b48462e336fc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / legend_simflow-1.5.0a1-py3-none-any.whl

Download URL legend_simflow-1.5.0a1-py3-none-any.whl
Size 238.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab7c9d4ff09b7ce32f26219a6b55d6cb280c31cfb5b88d9bb6f885cf50995af4
BLAKE2b-256 checksum
How to use checksums
b992f98fb6eef6f0f670dd3f3c5b5f50f66da55863e2a62aaeff69248785d538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for legend-simflow 1.5.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for legend_simflow-1.5.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page