Software/Geant4/Tutorials/Basic/Electron Beam Using Phase-Space Files

From PBTWiki
< Software‎ | Geant4‎ | Tutorials‎ | Basic
Revision as of 17:50, 5 October 2016 by SimonJolly (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This example shows the dose distribution in water along the incident electron 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. The electron beam is generated using Varian Clinac 2100 C/D phase-space data files. You can find more information about phase-space data at the IAEA website. Here you can read more about the Varian Clinac 2100 C/D electron beam. There is an option to chose among several EM physics lists.

How to run the tutorial

Connect to the HEP cluster and create folder ElectronPHSPFolder 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 ElectronPHSPFolder 

[username@plus1 ~]$ cd ElectronPHSPFolder  
Setup your environment
[username@plus1 ElectronPHSPFolder]$ source /unix/pbt/software/scripts/pbt.sh
Copy the code to your working directory and rename it
[username@plus1 ElectronPHSPFolder]$ cp -r /unix/pbt/tutorials/basic/ElectronPHSP .
  
[username@plus1 ElectronPHSPFolder]$ mv ElectronPHS ElectronPHSP_source
Inside /home/username/ElectronPHSPFolder/ create a directory
[username@plus1 ElectronPHSPFolder]$ mkdir ElectronPHSP_build  
To compile the code enter this directory and run cmake and make
[username@plus1 ElectronPHSPFolder]$ cd ElectronPHSP_build 

[username@plus1 ElectronPHSP_build]$ cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ElectronPHSPFolder 
/ElectronPHSP_source 

[username@plus1 ElectronPHSP_build]$ make  
Run macro electron.mac
[username@plus1 ElectronPHSP_build]$ ./electronPHSP electron.mac

How to analyze data

Text files

Run with different settings

Visualisation

Files