View on GitHub

GEARS | 齿轮组

Geant4 Example Application with Rich features and Small footprints

Download this project as a .zip file Download this project as a tar.gz file

Geant4 image Dockerfile

This folder contains a Dockerfile to demonstrate the possibility of compiling Geant4 in the latest Fedora Docker container with Qt and GDML enabled. It is not used to generate any image because there is already an official image of Geant4 on Docker hub: https://hub.docker.com/r/geant4/geant4, which has even more features enabled. For people who want to experience the full power of Geant4, please use the official image. The second service listed in gears/docker-compose.yml demonstrates the usage of the official image:

cd /path/to/gears
# pull and run https://hub.docker.com/r/geant4/geant4
docker-compose run geant4
# compile gears
root@8704najvr:~/gears $ mkdir build
root@8704najvr:~/gears $ cd build
root@8704najvr:~/gears/build $ ccmake ..
root@8704najvr:~/gears/build $ make
# run gears
root@8704najvr:~/gears/build $ gears

Warning The official Geant4 image is huge due to its rich feature. Be prepared for a looong downloading time.

If you only need the basic functionality of Geant4, please try the much smaller GEARS Docker image: https://hub.docker.com/r/physino/gears. For more information about the GEARS image, please check ../../Docker/.