Proton beam with realistic geometry

From UCL HEP PBT Wiki

Jump to: navigation, search
m (Created page with "== Gaussian beam profile == === Introduction === === Setting up the environment === === How to get the code === === How to run the code === === How to analyze data === === Compa...")
m
Line 1: Line 1:
-
== Gaussian beam profile ==
+
== <span style="color:#000080"> Introduction </span> ==
-
=== Introduction ===
+
This example shows the dose distribution in water along the incident proton beam. The difference with the MonoenergeticProtonPencilBeam example is that the beam is defined with realistic geometry. Instead of particle gun we use general particle source for the generation of the proton beam. For more details on general particle source look [https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s07.html here]. 
-
=== Setting up the environment ===
+
-
=== How to get the code ===
+
-
=== How to run the code ===
+
-
=== How to analyze data ===
+
-
=== Comparison with data from The Clatterbridge Cancer Centre ===
+
-
== Beam profile from phase space files ==
+
== <span style="color:#000080"> Setting up the environment </span> ==  
-
=== Introduction ===
+
; Connect to HEP cluster and create folder ProtonGBFolder in your area
-
=== Setting up the environment ===
+
 
-
=== How to get the code ===
+
<pre style="color: #800000; background-color: #dcdcdc">
-
=== How to run the code ===
+
ssh username@plus1.hep.ucl.ac.uk
-
=== How to analyze data ===
+
 
-
=== Comparison with data from The Clatterbridge Cancer Centre ===
+
password: type your password here
 +
 
 +
cd /home/username/
 +
 
 +
mkdir ProtonGBFolder
 +
 
 +
cd ProtonGBFolder 
 +
</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 and rename it
 +
 
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
cp -r /unix/pbt/tutorials/basic/ProtonGB .
 +
 
 +
mv ProtonGB ProtonGB_source
 +
</pre>
 +
 
 +
== <span style="color:#000080"> How to run the code </span> ==  
 +
 
 +
; Inside /home/username/ProtonGBFolder/ create a directory
 +
 
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
mkdir ProtonGB_build 
 +
</pre>
 +
 
 +
; To compile the code enter this directory and run cmake and make
 +
 
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
cd ProtonGB_build
 +
 
 +
cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonGBFolder/ProtonGB_source
 +
 
 +
make 
 +
</pre>
 +
 
 +
; Run macro proton.mac.
 +
 
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
./protonGB proton.mac
 +
</pre>
 +
 
 +
 
 +
== <span style="color:#000080"> How to analyze data </span> ==

Revision as of 14:02, 18 July 2014

Personal tools