Added instruction for rhel8

This commit is contained in:
Zaher Salman 2024-02-06 09:34:33 +00:00
parent 31689d60f4
commit ff2a5599d8

View File

@ -17,11 +17,27 @@ Compile and install Geant4, we recommend the use of the following cmake flags
cmake -DCMAKE_INSTALL_PREFIX=/path/to/installation /path/to/source -DGEANT4_USE_QT=ON -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON
Set the correct environment variable for Geant4. We recommend that you add the following to your .bashrc
export G4INSTALL="/path/to/installation"
export G4NEUTRONHPDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4NDL4.6"
export G4LEDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4EMLOW8.0"
export G4LEVELGAMMADATA="$G4INSTALL/share/Geant4-11.0.3/data/PhotonEvaporation5.7"
export G4RADIOACTIVEDATA="$G4INSTALL/share/Geant4-11.0.3/data/RadioactiveDecay5.6"
export G4PARTICLEXSDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4PARTICLEXS4.0"
export G4PIIDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4PII1.3"
export G4REALSURFACEDATA="$G4INSTALL/share/Geant4-11.0.3/data/RealSurface2.2"
export G4SAIDXSDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4SAIDDATA2.0"
export G4ABLADATA="$G4INSTALL/share/Geant4-11.0.3/data/G4ABLA3.1"
export G4INCLDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4INCL1.0"
export G4ENSDFSTATEDATA="$G4INSTALL/share/Geant4-11.0.3/data/G4ENSDFSTATE2.3"
export G4VRMLFILE_VIEWER="/path/to/your/vrmlviewer";
Clone the musrSim repository
git clone https://zaher-salman@bitbucket.org/zaher-salman/musrsim.git
then
then (see below for RedHat or other old systems)
cd musrsim
mkdir build
@ -38,6 +54,11 @@ Prepare a file, `finlename.mac`, with your beamline and spectrometer design foll
musrSim filename.mac
### RedHat and old systems ###
Compilation on RedHat systems that has an old defaul GCC compiler should be done using the follwoing command. Make sure that the `gcc-toolset-13` package is installed.
scl enable gcc-toolset-13 'make -j8'
### Contact ###