Photon beam using phase space files

From UCL HEP PBT Wiki

Jump to: navigation, search

Contents

Introduction

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 PhotonPHSPFolder in your area
ssh -X username@plus1.hep.ucl.ac.uk 

username@plus1.hep.ucl.ac.uk's password: type your password here
 
[username@plus1 ~]$ mkdir PhotonPHSPFolder 

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

[username@plus1 PhotonPHSP_build]$ cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/PhotonPHSPFolder/PhotonPHSP_source 

[username@plus1 PhotonPHSP_build]$ make  
Run macro gamma.mac
[username@plus1 PhotonPHSP_build]$ ./photonPHSP gamma.mac

How to analyze data

Text files

Run with different settings

Visualisation

Files

Personal tools