Skip to main content

Utilities and API for accessing MCPL (.mcpl) files

Project description

MCPL - Monte Carlo Particle Lists

MCPL files, with extensions .mcpl and .mcpl.gz is a binary format for usage in physics particle simulations. It contains lists of particle state information, and can be used to interchange or reuse particles between various Monte Carlo simulation applications. The format itself is formally described in:

T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012

All MCPL code is provided under the highly liberal open source Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0), and further instructions and documentation can be found at https://mctools.github.io/mcpl/.

The mcpl-core package

The mcpl-core package provides:

  • The mcpltool, a command-line utility for working with MCPL files. For more information about this tool, refer to the https://mctools.github.io/mcpl/usage_cmdline page.
  • The C/C++ API in the form of the mcpl.h header file and associated shared library. For more information about this API, refer to the https://mctools.github.io/mcpl/usage_c page.
  • Configuration utilities for working with the C/C++ API in downstream projects. Specifically, CMake configuration code and the mcpl-config command-line utility are provided.

In addition to the links above, several examples of how to use the C/C++ API, including how to configure a downstream CMake-based project, is provided in the https://github.com/mctools/mcpl/tree/HEAD/examples directory.

Note that it is recommmended for most users to simply install the package named mcpl, rather than referring to the package named mcpl-core directly.

Scientific reference

Copyright 2015-2025 MCPL developers.

This software was mainly developed at the European Spallation Source ERIC (ESS) and the Technical University of Denmark (DTU). This work was supported in part by the European Union's Horizon 2020 research and innovation programme under grant agreement No 676548 (the BrightnESS project).

All MCPL files are distributed under the Apache 2.0 license, available at http://www.apache.org/licenses/LICENSE-2.0, as well as in the LICENSE file found in the source distribution.

A substantial effort went into developing MCPL. If you use it for your work, we would appreciate it if you would use the following reference in your work:

T. Kittelmann, et al., Monte Carlo Particle Lists: MCPL, Computer Physics Communications 218, 17-42 (2017), https://doi.org/10.1016/j.cpc.2017.04.012

Support for specific third party applications

Note that some users might also wish to additionally install the mcpl-extra package, which contains cmdline tools for converting between the binary data files native to some third-party Monte Carlo applications (currently PHITS and MCNP[X/5/6]). Users of Geant4 might wish to install the mcpl-geant4 package, which provides C++ classes (and CMake configuration code) for integrating MCPL I/O into Geant4 simulations. Finally, many Monte Carlo applications have directly integrated support for MCPL I/O into their codes. At the time of writing, the list of applications with known support from MCPL I/O includes:

  • McStas (built in)
  • McXtrace (built in)
  • OpenMC (built in)
  • Cinema/Prompt (built in)
  • VITESS (built in)
  • RESTRAX/SIMRES (built in)
  • McVine (built in)
  • MCNPX, MCNP5, MCNP6 (based on ssw2mcpl/mcpl2ssw from the mcpl-extra package)
  • PHITS (based on phits2mcpl/mcpl2phits from the mcpl-extra package)
  • Geant4 (based on C++/CMake code from the mcpl-geant4 package)

Note that instructions for installation and setup of third-party products like those listed above are beyond the scope of the MCPL project. Please refer to the products own instructions for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpl_core-2.2.0.tar.gz (88.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mcpl_core-2.2.0-py3-none-win_arm64.whl (167.1 kB view details)

Uploaded Python 3Windows ARM64

mcpl_core-2.2.0-py3-none-win_amd64.whl (184.3 kB view details)

Uploaded Python 3Windows x86-64

mcpl_core-2.2.0-py3-none-musllinux_1_2_x86_64.whl (137.8 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

mcpl_core-2.2.0-py3-none-musllinux_1_2_aarch64.whl (137.9 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (133.2 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (135.5 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (129.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (135.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

mcpl_core-2.2.0-py3-none-macosx_11_0_arm64.whl (113.5 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

mcpl_core-2.2.0-py3-none-macosx_10_9_x86_64.whl (119.5 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file mcpl_core-2.2.0.tar.gz.

File metadata

  • Download URL: mcpl_core-2.2.0.tar.gz
  • Upload date:
  • Size: 88.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_core-2.2.0.tar.gz
Algorithm Hash digest
SHA256 0749e19b1d23b447c85302937cc30328e6a50e567a7ec593aa058ad29ca4721f
MD5 c7ff4629e37e82f92400b48237158b35
BLAKE2b-256 4182d47829af8cf675cf32f2253ca867087268edbc3e5a0f7689461877ce96e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0.tar.gz:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: mcpl_core-2.2.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 167.1 kB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_core-2.2.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 0e4e1a722c41371af6cffb964e3905dfe928815f9edfd00e305a497d8200e109
MD5 aad838d3ed2064e498163195dd7e587c
BLAKE2b-256 db078146593d907de9e5c9830a8da349cc13ab7f5fad768200dbfea49320ca10

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-win_arm64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: mcpl_core-2.2.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 184.3 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcpl_core-2.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 240befdd0f084d011240226441db85e2b02b59ec12db0a2b1f3b15e37e6bc28a
MD5 22fe68883bccda82510d294dc613a144
BLAKE2b-256 a45d6155ef11b0d843e733d041250a7bb3aad66260973d838cdb90e5095b9c4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-win_amd64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 46068b16eb2e937a4ba55060e53c00699e572e3deea2a290792286c63fcb98e6
MD5 820c10cf53b66d225106838f3fbf88dd
BLAKE2b-256 4a507753c7f947fe0053d25ebf99d9ec22607f48be1bde5d28569a47876e2af5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-musllinux_1_2_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7256cd6dba94e58ddf3e8427ebf3587f89fda6d876ad51a17d47215f1ab38a03
MD5 9c664728ac363bb2830cf9302f6762f4
BLAKE2b-256 78f520cd72ee3a2ed596e1e2e974261d2ba7b8682fc6ce7bea7d4b84ced479b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-musllinux_1_2_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60355ba35cd9208927146cb3546dba2404a2518b012b7ad6df7c2ee232ac39bc
MD5 e8d0eda81d70d40515ddd80dd630a8af
BLAKE2b-256 aef48e9feab316d59fa4ffb37d6ff8ec8754bc1b8442b326e1f3d3ebd489329a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94ba4d81a0295afb07d0a7a956f6ed034a307e1f231f17edb60b474b2e34d515
MD5 60560e6f9fc9ef2eda795762e42f726f
BLAKE2b-256 2706216b51bed6032f5fc223583c291205f8bf77bfb7f81d6cbe776531f2bed5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3286fb66691c57f3424d140d43c84df3844ee75de9d749c7e6cf649d06a97c35
MD5 afa3e7ff0e02fbc90b8f4bc449e6a0de
BLAKE2b-256 7613b1881e3d19ec63e65bfe69c88d728e60c37a1bd17358f640b623433f8372

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f50a5678c3058f88ad3d9f4bdb069ea8efa258b5305563ec2c6170f074c611c7
MD5 bc18b9c8e6fe2fabfdbc682e2fb12908
BLAKE2b-256 7317e268481d30f1ad749f5b08693e4c81c750cbe71101806164082d93e7a55a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fb46932a8f1e579bc98a57967dfad5072697e4fec792b32bff3a069814a3a54
MD5 9230df0e4b33ac658373ddfcb7ffbc74
BLAKE2b-256 f17191c04cb9870faa8491bad2a4b0a469b1949b00afd24ef2f5d69f3d6e0403

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-macosx_11_0_arm64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcpl_core-2.2.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mcpl_core-2.2.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8f9ffd5cfd405d1b6fae5f1a116784cc0dc91136bb5ecef9889087dc5f23b2e3
MD5 3609fdc41a477618cba8768610963a3f
BLAKE2b-256 e6b4467d7f115362abd301a81ed37dade2b6ff8bf35fb396d61f2a9e47f8a066

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcpl_core-2.2.0-py3-none-macosx_10_9_x86_64.whl:

Publisher: pypi.yml on mctools/mcpl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page