Monoenergetic proton pencil beam
From UCL HEP PBT Wiki
m |
m |
||
Line 1: | Line 1: | ||
- | == Introduction == | + | == <span style="color:#000080"> Introduction </span> == |
- | + | This example shows the dose distribution in water along the incident proton beam. The beam hits the water cube surface and deposits a dose under the surface of the water. The volume of the water cube is divided into slices perpendicular to the incident beam. The dose and energy deposited from the pencil beams at each slice is computed. | |
- | |||
- | == How to run the code == | + | == <span style="color:#000080"> Setting up the environment </span> == |
+ | |||
+ | ; Connect to HEP cluster and create folder ProtonPB in your area | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | ssh username@plus1.hep.ucl.ac.uk | ||
+ | |||
+ | cd /home/username/ | ||
+ | |||
+ | mkdir ProtonPB | ||
+ | |||
+ | cd ProtonPB | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ; Setup GEANT4 environment | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | source /unix/pbt/software/dev/bin/pbt-dev.sh | ||
+ | </pre> | ||
+ | |||
+ | == <span style="color:#000080"> How to get the code </span> == | ||
+ | |||
+ | ; Copy the code to your working directory | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | cp -r /unix/pbt/tutorials/basic/ProtonPB /home/username/.../ProtonPB_source | ||
+ | </pre> | ||
+ | |||
+ | == <span style="color:#000080"> How to run the code </span> == | ||
+ | |||
+ | ; Inside /home/username/.../ create a directory | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | mkdir ProtonPB_build | ||
+ | </pre> | ||
+ | |||
+ | ; To compile the code enter this directory and run cmake and make | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | cd ProtonPB_build | ||
+ | |||
+ | cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/.../ProtonPB_source | ||
+ | |||
+ | make | ||
+ | </pre> | ||
+ | |||
+ | ; Run the macro gamma.mac. The macro generates 10000 events. | ||
+ | |||
+ | <pre style="color: #800000; background-color: #dcdcdc"> | ||
+ | ./protonPB proton.mac | ||
+ | </pre> | ||
== How to analyze data == | == How to analyze data == | ||
== Comparison with data from The Clatterbridge Cancer Centre == | == Comparison with data from The Clatterbridge Cancer Centre == |