ASP2018
Lesson on Geant4 and MC at African School of Fundamental Physics and Applications, Windhoek (Namibia) 3rd July 2018
Indico event of the first lesson
Indico event of the second lesson
Slides
Tutorial
Useful links
- Third Geant4 International User Conference
- Geant4 web page
- Reference Physics Lists
- Physics lists use cases
- A course on Geant4
- Geant4 doxygen
- Virtual Machine with Geant4 installed
Examples:
- An integral with MC
- Estimation of π with MC
- Geant4 example (modified version of examples/extended/analysis/AnaEx01)
- C++ example (inheritance and polymorphism)
How to download and run the python examples
scl enable python27 bash
pip2.7 install matplotlib --user
mkdir example
cd example
wget http://www.roma1.infn.it/~mancinit/Teaching/ASP2018/integral.py
python2.7 integral.py
wget http://www.roma1.infn.it/~mancinit/Teaching/ASP2018/calculatepi.py
python2.7 calculatepi.py
How to download, compile and run the Geant4 example
source /opt/geant/geant4.10.04.p01-install/bin/geant4.sh
git clone https://github.com/carlomt/AnaEx01.git
mkdir anaEx01build
cd anaEx01build
cmake -DGeant4_DIR=/opt/geant/geant4.10.04.p01-install ../AnaEx01
make
Suggestions on how to install Geant4
Search
Server Time
- Fri 13 December 2024
- 02:57:28
- Timezone: Europe/Rome