... | ... | @@ -90,7 +90,7 @@ Visit http://root.cern.ch for more information about ROOT. |
|
|
|
|
|
In order to use Geant4 you need to define the environment variables pointing to the Geant4 datasets locations. This can be done by sourcing the _geant4.sh_ script. For our installation this command is:
|
|
|
|
|
|
`source /usr/local/geant4/11.1.1/bin/geant4.sh`
|
|
|
`source /usr/local/geant4/11.2.0/bin/geant4.sh`
|
|
|
|
|
|
In the git repository you can find the bash script _setup_env.sh_ with setup both for ROOT and Geant4.
|
|
|
|
... | ... | @@ -105,8 +105,8 @@ if [ -x /usr/local/bin/thisroot.sh ]; then |
|
|
fi
|
|
|
|
|
|
# Geant4
|
|
|
if [ -x /usr/local/geant4/11.1.1/bin/geant4.sh ]; then
|
|
|
. /usr/local/geant4/11.1.1/bin/geant4.sh
|
|
|
if [ -x /usr/local/geant4/11.2.0/bin/geant4.sh ]; then
|
|
|
. /usr/local/geant4/11.2.0/bin/geant4.sh
|
|
|
fi
|
|
|
|
|
|
>>>>>
|
... | ... | @@ -127,10 +127,10 @@ You can source this script before starting to work with your Geant4 project or a |
|
|
**N.B.** Before compiling the examples you need setup the environment for geant4:
|
|
|
|
|
|
```plaintext
|
|
|
if [ -x /usr/local/geant4/11.1.1/bin/geant4.sh ]; then
|
|
|
. /usr/local/geant4/11.1.1/bin/geant4.sh
|
|
|
if [ -x /usr/local/geant4/11.2.0/bin/geant4.sh ]; then
|
|
|
. /usr/local/geant4/11.2.0/bin/geant4.sh
|
|
|
# Need this if other Geant4 installed in /usr/local
|
|
|
export CMAKE_PREFIX_PATH=/usr/local/geant4/11.1.1/lib/Geant4-11.1.1
|
|
|
export CMAKE_PREFIX_PATH=/usr/local/geant4/11.2.0/lib/Geant4-11.2.0
|
|
|
fi
|
|
|
```
|
|
|
|
... | ... | @@ -144,7 +144,7 @@ E.g. basic B1 example: |
|
|
$ cd ~/tmp
|
|
|
$ mkdir B1-build
|
|
|
$ cd B1-build
|
|
|
$ cmake /usr/local/geant4/11.1.1/share/Geant4/examples/basic/B1/
|
|
|
$ cmake /usr/local/geant4/11.2.0/share/Geant4/examples/basic/B1/
|
|
|
```
|
|
|
|
|
|
You should see something like the output below. Watch for eventual configuration errors.
|
... | ... | |