MPI/Examples : exMPI02
Description
An example of dosimetry in a water phantom.
Configuration:
- Geometry : water phantom
- Primary : broad beam (200 MeV proton)
- Physics List : FTFP_BERT
- Analysis : ROOT histogramming
The environment variables, G4LEDATA, G4LEVELGAMMADATA and G4SAIDXSDATA are required for data files.
The enviromnet variable, ROOTSYS, is set to the root path of the ROOT package.
Features:
- Score dose distribution in a water phantom.
- Learn how to paralleized your applications.
- Create a ROOT file containing histograms/trees in each node. Each slave node generate a ROOT file, whose file name is different from each other.
How to build
Use CMake on Geant4 library installed with CMake build.
Check CMakeList.txt, especially the following two variables
should be taken care to match your MPI library.
eg.
set(CMAKE_CXX_COMPILER mpicxx)
# set(CMAKE_CXX_INCLUDE_PATH ) set if necessary
Follow these commands,
> mkdir build
> cd build
> cmake -DGeant4_DIR=<your Geant4 install path>/lib64/Geant4-V.m.n ..
(V.m.n is the version of Geant4, eg. Geant4-9.6.0)
> make
> make install