Files
geant4/examples/extended/medical/dna/mfp
2025-03-24 16:45:22 +01:00
..
2024-06-28 13:08:51 +02:00
2024-12-06 11:11:40 +01:00
2018-12-07 15:15:39 +01:00
2024-06-28 13:08:51 +02:00
2024-12-06 11:11:40 +01:00
2024-06-28 13:08:51 +02:00
2024-06-28 13:08:51 +02:00
2025-03-24 16:45:22 +01:00
2024-12-06 11:11:40 +01:00
2024-12-06 11:11:40 +01:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
     =========================================================
 		  Geant4 - mfp example
     =========================================================

                                README file
                          ----------------------

                           CORRESPONDING AUTHOR

S. Incerti et al. (a, *)
a. LP2i, IN2P3 / CNRS / Bordeaux University, 33175 Gradignan, France
* e-mail: incerti@lp2ib.in2p3.fr

---->0. INTRODUCTION.

The mfp example shows how to calculate mean free path of particles
in liquid water using the Geant4-DNA physics processes and models.

It has been adapted from the spower and TestEm14 examples.

This example is provided by the Geant4-DNA collaboration.

The Geant4-DNA processes and models are further described at:
http://geant4-dna.org

Any report or published results obtained using the Geant4-DNA software shall
cite the following Geant4-DNA collaboration publications:
Med. Phys. 51 (2024) 58735889
Med. Phys. 45 (2018) e722-e739
Phys. Med. 31 (2015) 861-874
Med. Phys. 37 (2010) 4692-4708
Int. J. Model. Simul. Sci. Comput. 1 (2010) 157178

---->1. GEOMETRY SET-UP.

The geometry is a 1 m radius sphere of liquid water (G4_WATER
material). Particles are shot along x from the sphere centre.

Radius of the sphere, physics constructor, primary particle type and
energy can be controlled by the mfp.in macro file.

---->2. SET-UP

Make sure G4LEDATA points to the low energy electromagnetic data files.

The code can be compiled with cmake.

It works in MT mode.

---->3. HOW TO RUN THE EXAMPLE

Use:

./mfp mfp.in

The mfp.in macro allows a full control of the simulation.

The computation of MFP and other quantities is performed in the
SteppingAction::UserSteppingAction method.

The histo.in macro shows how to display several quantities
(energy spectrum, scattering angle along x) of primary and secondaries.

---->4. PHYSICS

G4EmDNAPhysics* constructors are used.

---->5. SIMULATION OUTPUT AND RESULT ANALYSIS

The output results consist in a text file (mfp.txt), containing:
- energy of incident particles (in eV)
- mfp (in nm)
- rms (i.e. standard deviation) on mfp (in nm)

Otherwise you may use histo.in to generate ROOT histograms of the
other quantities.