Monoenergetic proton pencil beam

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 6: Line 6:
== <span style="color:#000080"> Setting up the environment </span> ==  
== <span style="color:#000080"> Setting up the environment </span> ==  
-
; Connect to HEP cluster and create folder ProtonPB in your area
+
; Connect to HEP cluster and create folder ProtonPBFolder in your area
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
Line 13: Line 13:
cd /home/username/  
cd /home/username/  
-
mkdir ProtonPB
+
mkdir ProtonPBFolder
-
cd ProtonPB  
+
cd ProtonPBFolder  
</pre>
</pre>
Line 27: Line 27:
== <span style="color:#000080"> How to get the code </span> ==
== <span style="color:#000080"> How to get the code </span> ==
-
; Copy the code to your working directory
+
; Copy the code to your working directory and rename it
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
cp -r /unix/pbt/tutorials/basic/ProtonPB /home/username/.../ProtonPB_source 
+
cp -r /unix/pbt/tutorials/basic/ProtonPB .
 +
 
 +
mv ProtonPB PhotonPB_source
</pre>
</pre>
== <span style="color:#000080"> How to run the code </span> ==  
== <span style="color:#000080"> How to run the code </span> ==  
-
; Inside /home/username/.../ create a directory
+
; Inside /home/username/ProtonPBFolder/ create a directory
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
Line 46: Line 48:
cd ProtonPB_build  
cd ProtonPB_build  
-
cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/.../ProtonPB_source  
+
cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonPBFolder/ProtonPB_source  
make   
make   
</pre>
</pre>
-
; Run the macro gamma.mac. The macro generates 10000 events.
+
; Run macro gamma.mac. The macro generates 10000 events.
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
./protonPB proton.mac
+
./protonPB gamma.mac
</pre>
</pre>

Revision as of 11:52, 16 July 2014

Personal tools