Aligned polarimetry field of the Λc → p π K decay
This repository contains the source code for “$\Lambda_c^+$ polarimetry using the dominant hadronic mode” (2023) by the LHCb Collaboration (10.1007/JHEP07(2023)228). It uses ampform-dpd to formulate symbolic amplitude models for the decay $\Lambda^+_c \to p \pi^+ K^-$ that are aligned with Dalitz-plot decomposition. The aligned amplitudes are used to compute polarimeter vector field $\vec\alpha$ over the Dalitz plane. Helicity couplings and other parameter values are taken from a recent study by the LHCb Collaboration1 and its supplementary material.
Installation
All the dependencies required to work on this Repository are managed by Pixi. If you have installed Pixi, you can simply start developing by activating the environment with:
pixi shell
This will install uv for managing Python and its dependencies as well as Julia. Then it activates the environment and you can start developing.
Common checks are defined under pixi.toml and can be listed with
pixi task list
For example, you build the documentation with executed notebooks with
pixi run docnb
Style checks are enforced with Pre-commit. You should install this system-wide once, for instance through uv:
uv tool install --with pre-commit-uv pre-commit
You can then install the Git hooks for this repository, so that the checks are run automatically before each commit:
pre-commit install
This repository also contains Julia source code and Pluto notebooks. Julia can be downloaded here. You then have to activate and instantiated the Julia environment provided in the julia folder. This can be done as follows from the root directory:
julia --project=./julia -e 'import Pkg; Pkg.instantiate()'
Documentation dependencies
To build the documentation, you need to install LaTeX and some additional fonts. In Ubuntu, this can be done with:
sudo apt-get install -y cm-super dvipng texlive-latex-extra
In addition, for building the documentation as a single PDF file, you need to install XeTeX:
sudo apt-get install -y inkscape latexmk make texlive-fonts-extra texlive-xetex xindy
Building the documentation
Having installed the Python environment, you can build the documentation with:2
pixi run docnb
This will run all Jupyter notebooks and convert the output to static webpages (view the output under docs/_build/html/index.html). Running all notebooks from scratch (without any available cache) should take around one hour.
If you have installed Julia and instantiated the Julia environment, you can embed the Pluto notebooks as static pages in the documentation with:
pixi run docnb-pluto
or, alternatively, by executing all Jupyter and Pluto notebooks (ignoring any existing caches):
pixi run docnb-pluto-force
The above commands result in a static HTML webpage. It's also possible to render the notebook as a single PDF file. This can be done as follows:
pixi run pdf
Just as above, cell output can be rendered by appending nb:
pixi run pdfnb
-
Amplitude analysis of the $\Lambda^+_c \to p K^- \pi^+$ decay and $\Lambda^+_c$ baryon polarization measurement in semileptonic beauty hadron decays (2022) [link] ↩
-
It's also possible have a look at the documentation without cell output (just as a check for the links). This can be done with:
pixi run doc
↩
Metadata
Release files for polarimetry-lc2pkpi 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polarimetry_lc2pkpi-0.1.1.tar.gz | 973.2 kB | With provenance | Details for polarimetry_lc2pkpi-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polarimetry_lc2pkpi-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for polarimetry_lc2pkpi-0.1.1-py3-none-any.whl |
Total release size: 1.0 MB
Release files / polarimetry_lc2pkpi-0.1.1.tar.gz
| Download URL | polarimetry_lc2pkpi-0.1.1.tar.gz |
|---|---|
| Size | 973.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e74171d0681d8fac9b60b6cb7e871ae6d1feba3dac031a40b80ff67820edfa6c
|
|
BLAKE2b-256 checksum How to use checksums |
35ee0e1cf51a685a17bc17af2ae4d199ee2f784ef90e6199472b20194dde3be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 2, 2026.
Transparency logRelease files / polarimetry_lc2pkpi-0.1.1-py3-none-any.whl
| Download URL | polarimetry_lc2pkpi-0.1.1-py3-none-any.whl |
|---|---|
| Size | 42.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
879e065bac6f9c214c6ac01770540ec30371fa871634722e2c1fdf08f919be23
|
|
BLAKE2b-256 checksum How to use checksums |
fd8d4f974c35251f3338ac109536faa93675265fb3d39c1fee5389f104bb1b2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 2, 2026.
Transparency logSecurity for polarimetry-lc2pkpi 0.1.1
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.
Attestation for polarimetry_lc2pkpi-0.1.1.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 Mar 2, 2026.
Transparency logA 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.