Electron beam using phase-space files
From UCL HEP PBT Wiki
for
Electron beam using phase-space files
Jump to:
navigation
,
search
== <span style="color:#000080"> Introduction </span> == 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''' [http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ElectronPHSP/phase-spacedata.txt phase-space data] files. You can find more information about phase-space data at the [https://www-nds.iaea.org/phsp/phsp.htmlx IAEA website]. [https://www-nds.iaea.org/phsp/electron1/VarianClinac_2100CD-readme.pdf 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. == <span style="color:#000080"> How to run the tutorial </span> == ; Connect to the HEP cluster and create folder ElectronPHSPFolder in your area <pre style="color: #800000; background-color: #dcdcdc"> 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 </pre> ; Setup your environment <pre style="color: #800000; background-color: #dcdcdc"> [username@plus1 ElectronPHSPFolder]$ source /unix/pbt/software/dev/bin/pbt-dev.sh </pre> ; Copy the code to your working directory and rename it <pre style="color: #800000; background-color: #dcdcdc"> [username@plus1 ElectronPHSPFolder]$ cp -r /unix/pbt/tutorials/basic/ElectronPHSP . [username@plus1 ElectronPHSPFolder]$ mv ElectronPHS ElectronPHSP_source </pre> ; Inside /home/username/ElectronPHSPFolder/ create a directory <pre style="color: #800000; background-color: #dcdcdc"> [username@plus1 ElectronPHSPFolder]$ mkdir ElectronPHSP_build </pre> ; To compile the code enter this directory and run cmake and make <pre style="color: #800000; background-color: #dcdcdc"> [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 </pre> ; Run macro gamma.mac <pre style="color: #800000; background-color: #dcdcdc"> [username@plus1 ElectronPHSP_build]$ ./electronPHSP electron.mac </pre> == <span style="color:#000080"> How to analyze data </span> == === <span style="color:#000080"> Text files </span> === === <span style="color:#000080"> Run with different settings </span> === === <span style="color:#000080"> Visualisation </span> === == <span style="color:#000080"> Files </span> ==
Return to
Electron beam using phase-space files
.
Views
Page
Discussion
View source
History
Personal tools
Log in
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages