software:install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:install [2020/05/12 13:02] – himuser | software:install [2023/02/10 15:56] (current) – himuser | ||
---|---|---|---|
Line 12: | Line 12: | ||
libglu1-mesa-dev libgl1-mesa-dev \ | libglu1-mesa-dev libgl1-mesa-dev \ | ||
libncurses5-dev curl libcurl4-openssl-dev bzip2 libbz2-dev gzip unzip tar \ | libncurses5-dev curl libcurl4-openssl-dev bzip2 libbz2-dev gzip unzip tar \ | ||
- | subversion git xutils-dev flex bison lsb-release | + | subversion git xutils-dev flex bison lsb-release |
libc6-dev-i386 libxml2-dev wget libssl-dev libkrb5-dev \ | libc6-dev-i386 libxml2-dev wget libssl-dev libkrb5-dev \ | ||
automake autoconf libtool | automake autoconf libtool | ||
+ | </ | ||
+ | < | ||
+ | sudo apt-get install libxi-dev | ||
</ | </ | ||
Line 28: | Line 31: | ||
Checking connectivity... done. | Checking connectivity... done. | ||
+ | </ | ||
+ | |||
+ | == Switch to the May18p1 tag: == | ||
+ | < | ||
$ cd fairsoft_may18 | $ cd fairsoft_may18 | ||
+ | $ git checkout tags/ | ||
</ | </ | ||
- | **Launch the ./ | + | **Launch the ./ |
+ | |||
+ | < | ||
+ | #export PYTHIA8_LOCATION=" | ||
+ | export PYTHIA8_LOCATION=" | ||
+ | |||
+ | #export GEANT4_LOCATION=" | ||
+ | export GEANT4_LOCATION=" | ||
+ | </ | ||
+ | ))**\\ | ||
and answer to the questions as the following: | and answer to the questions as the following: | ||
- GCC (Linux) | - GCC (Linux) | ||
Line 39: | Line 56: | ||
- Would you like to install Simulation engines and event generators? - Yes | - Would you like to install Simulation engines and event generators? - Yes | ||
- Would you like to install the additionally available data files the GEANT4 package? - Internet | - Would you like to install the additionally available data files the GEANT4 package? - Internet | ||
- | - Would you like to install the python bindings for Geant4 and Root? - No | + | - Would you like to install the python bindings for Geant4 and Root? - Yes |
- Please define a directory for the installation of the external packages. - ''/ | - Please define a directory for the installation of the external packages. - ''/ | ||
- Is / | - Is / | ||
Line 87: | Line 104: | ||
+ | === Execute geant4 simulation === | ||
+ | < | ||
+ | geant4$ primag4sim primag4sim.conf | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === Rootmacros === | ||
+ | In order to execute rootmacros, the include paths need to be set.\\ | ||
+ | This can be done automatically with a '' | ||
+ | Create the rootlogon.C file: | ||
+ | < | ||
+ | $ cd ~/ | ||
+ | $ mkdir .rootlogon | ||
+ | $ geany .rootlogon/ | ||
+ | </ | ||
+ | |||
+ | Enter the following lines to your rootlogon.C file: | ||
+ | < | ||
+ | // This is the file rootlogon.C | ||
+ | { | ||
+ | printf(" | ||
+ | |||
+ | gROOT-> | ||
+ | gSystem-> | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Here, '' | ||
+ | |||
+ | Now root needs to know where to find the rootlogon.C file. Therefore in '' | ||
+ | |||
+ | < | ||
+ | Rint.Logon: | ||
+ | </ | ||
+ | |||
+ | to: | ||
+ | |||
+ | < | ||
+ | Rint.Logon: | ||
+ | </ | ||
+ | |||
+ | |||
+ | Now you can execute the rootmacro: | ||
+ | < | ||
+ | /geant4$ root -l rootmacros/ | ||
+ | </ |
software/install.1589288532.txt.gz · Last modified: 2022/01/14 18:44 (external edit)