Skip to main content

Geometry package for high energy physics (Geant4, Fluka)

Project description

pyg4ometry Copyright (c) Royal Holloway, University of London 2015 - 2022

General Information

Stewart Boogert stewart.boogert@rhul.ac.uk (main contact)
Andrey Abramov andrey.abramov.2012@live.rhul.ac.uk
Laurie Nevay laurie.nevay@rhul.ac.uk
Will Shields william.shields.2010@live.rhul.ac.uk
Stuart Walker Stuart.Walker.2011@live.rhul.ac.uk

Installation Guide

  • Required libraries VTK, CGAL, pybind11, opencascade
  • Optional libraries ROOT, USD
  • Install from pypi (pip install pyg4ometry)
  • Install from source (git clone https://stewartboogert@bitbucket.org/jairhul/pyg4ometry.git; cd pyg4ometry; make install or make develop)
  • Mac ports deps (cgal5, opencascade, boost, cmake, python3X)
  • Mac brew deps (cgal, opencascade, cmake, python3X)
  • Ubuntu deps (cgal, opencascade (V7_5_1) from source and patched, cmake, python3X)

Installation Guide Container

Build the docker container

  • cd pyg4ometry/docker/
  • docker build --build-arg PYG4OMETRY_VER=0 -t centos-pyg4ometry -f Dockerfile-centos-pyg4ometry .

If the pyg4ometry git repository has changed change the value of PYG4OMETRY_VER variable as this will for a clone and install

Run an image (here is my script for Mac and Docker Desktop)

  • export ip=(ifconfig en0 | grep inet | awk '$1 == "inet" {print $2}')
  • xhost +$ip
  • docker run -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v /Users/sboogert/Physics:/tmp/Physics -e DISPLAY=$ip:0 centos-bdsim

Documentation

Main online manual can be found at http://www.pp.rhul.ac.uk/bdsim/pyg4ometry/

To build manual within this repository:

  • cd pyg4ometry/docs/
  • make html
  • open build/html/index.html

Issues, bugs and feature requests

  • For bug reports please use the bitbucket issue trackers

https://bitbucket.org/jairhul/pyg4ometry/issues

Citation and Academic Credit

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

pyg4ometry-1.0.5.tar.gz (95.0 MB view hashes)

Uploaded Source

Built Distributions

pyg4ometry-1.0.5-cp311-cp311-macosx_13_0_x86_64.whl (23.5 MB view hashes)

Uploaded CPython 3.11 macOS 13.0+ x86-64

pyg4ometry-1.0.5-cp311-cp311-macosx_12_0_arm64.whl (25.4 MB view hashes)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pyg4ometry-1.0.5-cp310-cp310-manylinux_2_31_x86_64.whl (123.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

pyg4ometry-1.0.5-cp310-cp310-macosx_13_0_x86_64.whl (23.5 MB view hashes)

Uploaded CPython 3.10 macOS 13.0+ x86-64

pyg4ometry-1.0.5-cp310-cp310-macosx_12_0_arm64.whl (25.4 MB view hashes)

Uploaded CPython 3.10 macOS 12.0+ ARM64

pyg4ometry-1.0.5-cp39-cp39-manylinux_2_31_x86_64.whl (123.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

pyg4ometry-1.0.5-cp39-cp39-macosx_13_0_x86_64.whl (23.5 MB view hashes)

Uploaded CPython 3.9 macOS 13.0+ x86-64

pyg4ometry-1.0.5-cp39-cp39-macosx_12_0_arm64.whl (25.4 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ ARM64

Supported by

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