Skip to content

matthewfeickert/pythia-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYTHIA 8 Docker image with Python 3 and HEP simulation stack

Docker Pulls Docker Image Size (tag) Binder

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.

Distributed Software

The Docker image contains:

Installation

docker pull matthewfeickert/pythia-python:pythia8.308

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 \
  --user $(id -u $USER):$(id -g $USER) \
  --volume $PWD:/home/docker/work \
  matthewfeickert/pythia-python:pythia8.308 \
  'python tests/main01.py > main01_out_py.txt'

or the original C++

docker run \
  --rm \
  --user $(id -u $USER):$(id -g $USER) \
  --volume $PWD:/home/docker/work \
  matthewfeickert/pythia-python:pythia8.308 \
  'g++ tests/main01.cc -pthread -o tests/main01 $(pythia8-config --cxxflags --ldflags); ./tests/main01 > main01_out_cpp.txt'

or you can run interactively

docker run \
  --rm \
  -ti \
  --publish 8888:8888 \
  --user $(id -u $USER):$(id -g $USER) \
  --volume $PWD:/home/docker/work \
  matthewfeickert/pythia-python:pythia8.308