Files
Jungfraujoch/docs/JUNGFRAUJOCH.md
leonarski_f a9d5367013
Build Packages / Create release (push) Successful in 26s
Build Packages / Build documentation (push) Successful in 1m43s
Build Packages / build:portable:macos-arm64:nocuda (push) Successful in 5m7s
Build Packages / build:portable:linux-x86_64:nocuda (push) Successful in 11m48s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 7m22s
Build Packages / build:portable:linux-x86_64:cuda (push) Successful in 12m24s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 25m30s
Build Packages / build:portable:windows-x86_64:nocuda (push) Successful in 25m29s
Build Packages / build:portable:windows-x86_64:cuda (push) Successful in 29m41s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 21m44s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 24m41s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 26m9s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 26m3s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 28m28s
Build Packages / Generate python client (push) Successful in 27s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 31m16s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 20m44s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 26m27s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 22m52s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 27m44s
Build Packages / Unit tests (push) Successful in 1h46m55s
Build Packages / Validation Battery (push) Successful in 52m50s
v1.0.0-rc.181 (#92)
* Rugnux: Several rotation sweeps of one crystal are merged as one dataset (`rugnux a_master.h5 b_master.h5`), on a common indexing and cell, with a non-isomorphous sweep left out and reported; `--sweeps separate` processes each sweep on its own. Bruker `.sfrm` frames and imgCIF files with a full goniometer axis chain are read.
* Rugnux: More robust rotation processing - a retry with a more sensitive spot finder when no lattice is found, a self-consistent detector distance, long axes and doubled cells tested as hypotheses, a `-C` supercell multiple stepped down, and each ice ring merged, down-weighted or rejected on its own.
* Rugnux: Serial stills are merged with a partiality-aware error model, reported as `ERROR_MODEL_A/B/C` with no ISa or R_merge/R_meas/R_pim; runs without `-S` have an overall intensity scale about 0.86-0.88 times that of earlier versions, with unchanged statistics. A second crystal form is left out of the merge and reported, the indexing ambiguity is resolved more reliably, and `--model` no longer influences processing.
* Rugnux: The reported CC1/2 is the standard unweighted one, which can be lower than before on sweeps with weak frames; ISa comes with a 95% interval (`ISA_LOW`/`ISA_HIGH`).
* Rugnux: Model refinement adds anisotropic/TLS, local NCS and twin refinement where R-free supports them; building waters and relabelling ions is now off by default (`--refine-solvent` turns it on).
* NXmx: A detector of several modules is written as `module_0` ... `module_N` only, so DIALS reads each module as its own panel.
* Other: JPEG previews use a bundled encoder (libjpeg-turbo no longer needed), Rugnux prints how to cite it, and the release archives contain the HTML documentation.

Reviewed-on: #92
Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
2026-11-02 12:05:20 +01:00

4.7 KiB

Jungfraujoch: data acquisition

Jungfraujoch is the data-acquisition and real-time analysis system for the PSI JUNGFRAU and EIGER detectors, and, through their detector control unit, for DECTRIS detectors. It takes the detector's frames at the full frame rate, builds and analyses the images on the fly, and streams them out for writing, with a web interface and a REST API for the beamline. It is the streaming half of the software; Rugnux is the processing half (see Naming).

What runs where

Program Role
jfjoch_broker The central service: configures the detector and the FPGA cards, builds images from their output, runs the real-time analysis (masking, summation, spot finding, azimuthal and ROI integration, indexing on the GPU, compression), streams the images over ZeroMQ or TCP, and serves the HTTP/REST interface and the web frontend.
jfjoch_writer Receives the image stream and writes NeXus/NXmx HDF5 files; usually on a separate machine with the file system.
FPGA smartNIC AMD Alveo U55C cards with the Jungfraujoch firmware, one per few JUNGFRAU modules; they receive the detector's UDP stream and run the first stages of the analysis in hardware. The DECTRIS path has no FPGA: the stream from the detector control unit goes through the same analysis on the CPU and GPU.
Web frontend The browser interface served by the broker: detector state, live preview, plots of the on-line quality metrics, and the controls, including Rugnux live mode, which processes a rotation sweep while it is being collected.
Python client pip install jfjoch-client: the REST API as a generated Python package, for beamline control software.
Viewer Optional: the desktop viewer follows a live collection from the broker over HTTP.

The detectors, firmware and slsDetectorPackage versions the system is built against are in Supported detectors; the server, FPGA, GPU and switch it needs are in Hardware requirements.

Installing

Jungfraujoch runs on Linux servers: RHEL / Rocky 8 and 9 are the supported platforms, Ubuntu 22.04 / 24.04 experimental (Software requirements).

  • Packages. The package repositories carry jfjoch (broker, frontend, FPGA and detector tools), jfjoch-driver-dkms (the PCIe kernel module), jfjoch-writer and jfjoch-viewer, in CUDA and non-CUDA variants and per slsDetectorPackage version. The writer's .rpm / .deb are also attached to every release, for a file-writing machine without the rest.
  • FPGA firmware. The .mcs images are attached to every release; the card is flashed once with xbflash.qspi and keeps its image across software upgrades.
  • From source. cmake and make from the repository, with every dependency fetched during the first configure; the frontend is built separately with make frontend.

Deployment is the step-by-step guide: packages or source, flashing the cards, the kernel driver, the network switch, the broker's configuration file and running the services. Release contents says what each package contains and what it needs on the machine.

Reading the output

The broker streams images as CBOR messages compatible with the DECTRIS Stream2 protocol (Data streams, CBOR messages); the writer turns them into NXmx HDF5 (HDF5 / NeXus data format). Which downstream programs read which of the three HDF5 layouts, and the XDS plugin, are in Integration with MX software. The command-line tools shipped beside the services are listed in Tools.

How to cite

The primary citation for Jungfraujoch is F. Leonarski et al., "Jungfraujoch: hardware-accelerated data-acquisition system for kilohertz pixel-array X-ray detectors" (2023), J. Synchrotron Rad. 30, 227-234 doi:10.1107/S1600577522010268. For real-time serial crystallography and live indexing feedback cite also J. Duan et al., "Jungfraujoch: 38 GB s⁻¹ real-time serial crystallography – data acquisition and live indexing feedback" (2026), J. Appl. Cryst. 59, 1668-1677 doi:10.1107/S1600576726008083. The files jfjoch_writer writes from Rugnux live mode name both Jungfraujoch and Rugnux; cite the Rugnux paper too when you use them. All papers are on the Publications page.