Sign inSign up

matthewfeickert/pythia-python

By matthewfeickert

Updated over 3 years ago

Image
0

2.8K

matthewfeickert/pythia-python repository overview

PYTHIA 8 Docker image with Python 3

PYTHIA is a program for the generation of high-energy physics events, i.e. for the description of collisions at high energies between elementary particles such as e+, e-, p and pbar in various combinations.

PYTHIA 8's source is distributed on GitLab and is a product of the PYTHIA development team.

Installation

docker pull matthewfeickert/pythia-python:pythia8.301-python3.7

Use

You can either use the image as "PYTHIA as a service", as demoed here with the test script in the repo using the Python bindings

docker run --rm -v $PWD:$PWD -w $PWD matthewfeickert/pythia-python:pythia8.301-python3.7 \
  -c "python tests/main01.py > main01_out_py.txt"

or the original C++

docker run --rm -v $PWD:$PWD -w $PWD matthewfeickert/pythia-python:pythia8.301-python3.7 \
  -c "g++ tests/main01.cc -o tests/main01 -lpythia8 -ldl; ./tests/main01 > main01_out_cpp.txt"

or you can run interactively

docker run --rm -it matthewfeickert/pythia-python:latest

Tag summary

Content type

Image

Digest

sha256:226896668

Size

508.2 MB

Last updated

over 3 years ago

docker pull matthewfeickert/pythia-python