Skip to content
Snippets Groups Projects
Select Git revision
  • 8613627d1923e489bd21083ea7abd493e06883e6
  • master default
  • removeCLHEP-dep
  • master-EMECVariants
  • deprecate-custom-shape-bundle
  • master-wrappers-removeCLHEP
  • 1.1.0
  • 1.0.0
8 results

GeoModelG4

  • Clone with SSH
  • Clone with HTTPS
  • Clone with KRB5
  • GeoModelG4

    GeoModelG4 contains tools to interface GeoModel with the Geant4 detector simulation toolkit.

    cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelG4/
    make
    make install

    NOTE: If you experience issues with CMake not finding Geant4 properly, try to pass the Geant4 lib installation dir to CMake, to let it correctly find the Geant4Config.cmake file:

    cmake -DGeant4_DIR=<path_to_geant4_install_dir>/lib/Geant4-10.5.0/ -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelG4/

    Alternatively, you can source the Geant4 setup, before running cmake:

    source <path_to_geant4_install_dir>/bin/geant4.sh
    cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=RelWithDebInfo ../GeoModelG4