Photon beam using phase space files


Revision as of 12:25, 11 September 2014 by IlinaMediaWiki (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



This example shows the dose distribution in water along the incident photon beam. The volume of the water cube is divided into slices perpendicular to the incident beam. At each slice the deposited dose and energy is computed.

The slices are created using class G4PVReplica. The energy and dose are scored using classes G4UserSteppingAction and G4UserRunAction. Photons are generated using phase-space data files. You can find more information about phase-space data here. There is an option to chose among several EM physics lists.

How to run the tutorial

Connect to the HEP cluster and create folder PhotonPHSFolder in your area
ssh -X's password: type your password here
[username@plus1 ~]$ mkdir PhotonPHSFolder 

[username@plus1 ~]$ cd PhotonPHSFolder  
Setup your environment
[username@plus1 PhotonPHSFolder]$ source /unix/pbt/software/dev/bin/  
Copy the code to your working directory and rename it
[username@plus1 PhotonPHSFolder]$ cp -r /unix/pbt/tutorials/basic/PhotonPHS .
[username@plus1 PhotonPHSFolder]$ mv PhotonPHS PhotonPHS_source
Inside /home/username/PhotonPHSFolder/ create a directory
[username@plus1 PhotonPHSFolder]$ mkdir PhotonPHS_build  
To compile the code enter this directory and run cmake and make
[username@plus1 PhotonPHSFolder]$ cd PhotonPHS_build 

[username@plus1 PhotonPHS_build]$ cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/PhotonPHSFolder/PhotonPHS_source 

[username@plus1 PhotonPHS_build]$ make  
Run macro gamma.mac
[username@plus1 PhotonPHS_build]$ ./photonPHS gamma.mac

How to analyze data

Text files

Run with different settings



Personal tools