Monoenergetic photon pencil beam

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 69: Line 69:
=== <span style="color:#000080"> Text files </span> ===
=== <span style="color:#000080"> Text files </span> ===
-
This is output from '''DoseFile.txt''' with physics process '''emstandard_opt0''' and incident photon energy of '''20 MeV'''.
+
This is output from '''DoseFile.txt''' with physics process '''emstandard_opt0''' and incident photon energy of '''20 MeV'''. Use your favorite editor '''pico''', '''vi''', '''emacs''' etc to open text files. For example, use editor pico:
 +
 
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
pico DoseFile.txt
 +
</pre>
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
Line 104: Line 108:
</pre>
</pre>
-
This is '''PlotDose.txt'''. These values can be directly imported in MATLAB.
+
This is '''PlotDose.txt'''. These values can be analyzed with MATLAB and ROOT .
<pre style="color: #800000; background-color: #dcdcdc">   
<pre style="color: #800000; background-color: #dcdcdc">   
Line 144: Line 148:
   
   
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/PhotonPB/Edep_PhotonB.png  
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/PhotonPB/Edep_PhotonB.png  
 +
 +
To exit the ROOT terminal type
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
.q
 +
</pre>
You can plot the dose deposition along the depth of the absorber ('''PlotDose.txt''') using script '''PlotSimulation.C''' from folder '''PhotonPB_source'''. Copy this script to your current '''PhotonPB_build''' directory:
You can plot the dose deposition along the depth of the absorber ('''PlotDose.txt''') using script '''PlotSimulation.C''' from folder '''PhotonPB_source'''. Copy this script to your current '''PhotonPB_build''' directory:
Line 157: Line 167:
.x PlotSimulation.C
.x PlotSimulation.C
 +
</pre>
</pre>
Line 176: Line 187:
You can change the physics process, incident photon energy, phantom material, number of slices etc. by
You can change the physics process, incident photon energy, phantom material, number of slices etc. by
-
modifying the macro gamma.mac. Use your favorite editor '''pico''', '''vi''', '''emacs''' etc. For example open the macro with editor pico:
+
modifying the macro gamma.mac. Open the macro with editor pico:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">

Revision as of 19:23, 29 July 2014

Personal tools