Monoenergetic photon pencil beam
From UCL HEP PBT Wiki
m |
m |
||
Line 13: | Line 13: | ||
cd /home/username/ | cd /home/username/ | ||
- | mkdir | + | mkdir PhotonPBFolder |
cd PhotonPB | cd PhotonPB | ||
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 the folder |
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> | ||
- | cp -r /unix/pbt/tutorials/basic/PhotonPB | + | cp -r /unix/pbt/tutorials/basic/PhotonPB . |
+ | mv PhotonPB 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/ | + | ; Inside /home/username/PhotonPBFolder/ create a directory |
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> | ||
Line 46: | Line 47: | ||
cd PhotonPB_build | cd PhotonPB_build | ||
- | cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ | + | cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/PhotonPBFolder/PhotonPB_source |
make | make |