The Ultimate Guideto Installing EGSnrcand Geant 4
The Ultimate Guideto Installing EGSnrcand Geant 4
net/publication/284178853
CITATIONS READS
0 1,161
1 author:
E. Ulises Moya-Sanchez
Government of Jalisco
62 PUBLICATIONS 99 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by E. Ulises Moya-Sanchez on 19 November 2015.
We have used the Ubuntu 14.04 or Ubuntu 15.10. Open the terminal and put this
sudo -s
libgl1-mesa-dev-lts-vivid
libgl1-mesa-dev-lts-utopic
libgl1-mesa-dev
2.-Download Geant4
/path/to/geant4.10.01
We refer to this directory as the source directory. The next step is to create a directory in which to
configure and run the build and store the build products. This directory should not be the same as, or
inside, the source directory. In this guide, we create this build directory alongside our source directory:
$ cd /path/to
$ mkdir geant4.10.1-build
$ ls
geant4.10.01 geant4.10.1-build
To configure the build, change into the build directory and run Cmake(Cuidado con la versión que
bajes y recomendamos bajar los DATA Files necesarios para la simulación, los pones en la carpeta
GEANT4_Datasets en la dirección /home/ulisesmoya/geant4.10.1-build
http://geant4.cern.ch/support/download.shtml ):
$ cd /path/to/geant4.10.1-build
$ cmake ../geant4.10.01.p02 -DCMAKE_INSTALL_PREFIX=../geant4-install
-DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON
-DGEANT4_INSTALL_DATA=OFF -DEXPAT_LIBRARY=/usr/lib/x86_64-linux-gnu/libexpat.so
-DGEANT4_BUILD_MULTITHREADED=ON
Here, the CMake Variable CMAKE_INSTALL_PREFIX is used to set the install directory, the
directory under which the Geant4 libraries, headers and support files will be installed. It must be
supplied as an absolute path. The second argument to CMake is the path to the source directory. In this
example, we have used the absolute path to the source directory, but you can also use the relative path
from your build directory to your source directory.
Additional arguments may be passed to CMake to activate optional components of Geant4, such as
visualization drivers, or tune the build and install parameters. See Section 2.3 for details of these
options. If you run CMake and decide afterwards you want to activate additional options, simply rerun
CMake in the build directory, passing it the extra options plus the build directory. For example, after
running CMake as above, you may wish to activate the installation of Geant4's datasets, so you would
run
cat /proc/cpuinfo | grep proc (optional to know howmany processor ypu could
set)
where N is the number of parallel jobs you require (e.g. if your machine has a dual core processor, you
could set N to 2)
$time make -j N
$make install
Add the following environment sttings, look your specific direction!!! for instance in this case
/home/moyel/ for other user change !
export Geant4_DIR=/home/ulisesmoya/geant4.10.01.p02-install
$ gedit ~/.bashrc
2.1 Anggie
Anggie is a very nice program to generate code using a graphic gui
python Anggie.py
EGS instalation
$ chmod +x egs_install_Linux_self.exe
$ ./egs_install_Linux_self.exe
Follow instalation guiade and make sure that your enviroment settings will be update (look the bashrc
command in the Geant4 section)
$ gedit ~/.bashrc
Isntalar BEAM
download http://www.nrc-cnrc.gc.ca/eng/solutions/advisory/beam/download_beam.html
$ chmod +x beam_install_Linux_self.exe
$ ./beam_install_Linux_self.exe
$ gedit ~/.bashrc
******************************************************************
******************************************************************
This command will be useful to update your environment settings (optional)
. /home/ulisesmoya/HEN_HOUSE/scripts/beamnrc_bashrc_additions