Sign inSign up

physino/gears

By physino

•Updated over 2 years ago
Archived

Pre-compiled Geant4 libraries + a tiny application, GEARS

Image
0

709

physino/gears repository overview

NOTE: This is replaced by https://hub.docker.com/r/physino/geant4⁠

These images contain Geant4⁠ libraries pre-compiled on amd64 Linux. GEARS⁠, a tiny Geant4 application (341 kB) is included in the image to verify the contained Geant4⁠ libraries. Geant4 datasets⁠ are not included in the container to reduce its size. Dockerfile⁠s used to create these images can be found in https://github.com/jintonic/gears/tree/master/INSTALL/Docker⁠.

⁠Tags

  • physino/gears:latest contains Geant4.11.2.0
  • physino/gears:11.1.2 contains Geant4.11.1.2

⁠Usage

  1. Download and run Docker Desktop⁠.
  2. Download GEARS⁠, and then
cd /path/to/gears
docker-compose run --rm gears
root@Geant4:~/gears $

where you can use geant4-config to list enabled Geant4⁠ features:

root@Geant4:~/gears $ geant4-config --help
Usage: geant4-config [OPTION...]
  --prefix                output installation prefix of Geant4
  --version               output version for Geant4
  --cxxstd                C++ Standard compiled against
  --tls-model             Thread Local Storage model used
  --libs                  output all linker flags
  --cflags                output all preprocessor
                          and compiler flags

  --libs-without-gui      output linker flags without
                          GUI components
  --cflags-without-gui    output preprocessor and compiler
                          flags without GUI components

  --has-feature FEATURE   output yes if FEATURE is supported,
                          or no if not supported

  --datasets              output dataset name, environment variable
                          and path, with one line per dataset

  --check-datasets        output dataset name, installation status and
                          expected installation location, with one line
                          per dataset

  --install-datasets      download and install any missing datasets,
                          requires a network connection and for the dataset
                          path to be user writable

Known Features:
 staticlibs[no]
 multithreading[yes]
 smartstack[no]
 php_as_hp[no]
 clhep[yes]
 expat[no]
 zlib[yes]
 gdml[no]
 ptl[yes]
 usolids[no]
 freetype[no]
 hdf5[no]
 g3tog4[no]
 qt[no]
 motif[no]
 raytracer-x11[no]
 opengl-x11[yes]
 openinventor[no]
vtk[no]

Help options:
  -?, --help              show this help message
  --usage                 display brief usage message

You can also use it to install Geant4⁠ datasets⁠ in gears/INSTALL/Geant4/data⁠:

root@Geant4:~/gears $ geant4-config --install-datasets

Once the datasets are installed, you can launch gears to get into an interactive Geant4⁠ session:

root@Geant4:~/gears $ gears

**************************************************************
 Geant4 version Name: geant4-11-02 [MT]   (8-December-2023)
                       Copyright : Geant4 Collaboration
                      References : NIM A 506 (2003), 250-303
                                 : IEEE-TNS 53 (2006), 270-278
                                 : NIM A 835 (2016), 186-225
                             WWW : http://geant4.org/
**************************************************************

Available UI session types: [ tcsh, csh ]
PreInit>

or run a macro file in batch mode:

root@Geant4:~/gears $ cd tutorials/detector/visualization
root@Geant4:~/gears/tutorials/detector/visualization $ gears HepRepFile.mac

Tag summary

Content type

Image

Digest

sha256:b0963a4c6…

Size

344.4 MB

Last updated

over 2 years ago

docker pull physino/gears