Installation
These instructions assume that your operating system is Ubuntu.
1. Install ROOT
This is most easily accomplished with the command: sudo apt-get install root-system
2. Install GEANT4
Follow the installation instructions from the official GEANT4 website.
3. Install VeikonKone
-
Install
git
. It is most likely already installed. Rungit --version
to check. If it is not installed, runsudo apt-get install git cmake
-
Get CMake:
sudo apt-get install cmake
-
Add your ssh key to you gitlab profile
- (if you already have a ssh key skip this):
ssh-keygen -t rsa -C "<your_email>"
- Copy the output:
cat ~/.ssh/id_rsa.pub
- Insert it here: https://gitlab.au.dk/profile/keys
- (if you already have a ssh key skip this):
-
Download VeikonKone:
git clone git@git.kern.phys.au.dk:oliskir/VeikonKone.git
-
cd into the program directory:
cd VeikonKone
-
Open the script
docmake.sh
using your preferred editor (e.g. gedit) and modify the linecmake -DCMAKE_BUILD_TYPE=DEBUG -DGeant4_DIR=/home/oliskir/src/geant4/geant4.10.2-install/lib/Geant4-10.2.0 $pwd -DCMAKE_BUILD_TYPE=DEBUG
so it reflects the actual location of your GEANT4 installation -
Build a makefile by running the script:
./docmake.sh
-
Build VeikonKone:
make -jN
(whereN
is the number of cores on your computer)