Several proton beams with spread out Bragg peaks

From UCL HEP PBT Wiki

(Difference between revisions)
Jump to: navigation, search
m
Line 14: Line 14:
ssh -X username@plus1.hep.ucl.ac.uk  
ssh -X username@plus1.hep.ucl.ac.uk  
-
password: type your password here
+
username@plus1.hep.ucl.ac.uk's password: type your password here
-
cd /home/username/
+
[username@plus1 ~]$ mkdir ProtonSBFolder
-
mkdir ProtonSBFolder
+
[username@plus1 ~]$ cd ProtonSBFolder   
-
 
+
-
cd ProtonSBFolder   
+
</pre>
</pre>
Line 26: Line 24:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
source /unix/pbt/software/dev/bin/pbt-dev.sh   
+
[username@plus1 PhotonSBFolder]$ source /unix/pbt/software/dev/bin/pbt-dev.sh   
</pre>
</pre>
Line 34: Line 32:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
cp -r /unix/pbt/tutorials/basic/ProtonSB .
+
[username@plus1 PhotonSBFolder]$ cp -r /unix/pbt/tutorials/basic/ProtonSB .
    
    
-
mv ProtonSB ProtonSB_source
+
[username@plus1 PhotonSBFolder]$ mv ProtonSB ProtonSB_source
</pre>
</pre>
Line 44: Line 42:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
mkdir ProtonSB_build   
+
[username@plus1 PhotonSBFolder]$ mkdir ProtonSB_build   
</pre>
</pre>
Line 50: Line 48:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
cd ProtonSB_build  
+
[username@plus1 PhotonSBFolder]$ cd ProtonSB_build  
-
cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonSBFolder/ProtonSB_source  
+
[username@plus1 ProtonSB_build]$ cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonSBFolder/ProtonSB_source  
-
make   
+
[username@plus1 ProtonSB_build]$ make   
</pre>
</pre>
Line 60: Line 58:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
./protonSB proton.mac
+
[username@plus1 ProtonSB_build]$ ./protonSB proton.mac
</pre>
</pre>
== <span style="color:#000080"> How to analyze data </span> ==
== <span style="color:#000080"> How to analyze data </span> ==

Revision as of 14:08, 31 August 2014

Contents

Introduction

This tutorial will based on the Hadrontherapy example provided by the Italian INFN Institute. For more information visit the Hadrontherapy website. This totorial produces spread out Bragg peak curve. It is produced by a modulation system that spreads the beam in energy. This system consists of a rotating wheel of different thicknesses. The wheel rotates around an axis parallel to the proton beam axis.

Setting up the environment

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

[username@plus1 ~]$ cd ProtonSBFolder  
Setup your environment
[username@plus1 PhotonSBFolder]$ source /unix/pbt/software/dev/bin/pbt-dev.sh  

How to get the code

Copy the code to your working directory and rename it
[username@plus1 PhotonSBFolder]$ cp -r /unix/pbt/tutorials/basic/ProtonSB .
  
[username@plus1 PhotonSBFolder]$ mv ProtonSB ProtonSB_source

How to run the code

Inside /home/username/ProtonSBFolder/ create a directory
[username@plus1 PhotonSBFolder]$ mkdir ProtonSB_build  
To compile the code enter this directory and run cmake and make
[username@plus1 PhotonSBFolder]$ cd ProtonSB_build 

[username@plus1 ProtonSB_build]$ cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonSBFolder/ProtonSB_source 

[username@plus1 ProtonSB_build]$ make  
Run macro proton.mac.
[username@plus1 ProtonSB_build]$ ./protonSB proton.mac

How to analyze data

Personal tools