<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?feed=atom&amp;target=78.146.154.109&amp;title=Special%3AContributions%2F78.146.154.109</id>
		<title>UCL HEP PBT Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?feed=atom&amp;target=78.146.154.109&amp;title=Special%3AContributions%2F78.146.154.109"/>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Special:Contributions/78.146.154.109"/>
		<updated>2026-04-29T01:22:15Z</updated>
		<subtitle>From UCL HEP PBT Wiki</subtitle>
		<generator>MediaWiki 1.16.5</generator>

	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Proton_beam_with_realistic_geometry</id>
		<title>Proton beam with realistic geometry</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/index.php?title=Proton_beam_with_realistic_geometry"/>
				<updated>2014-08-24T07:45:59Z</updated>
		
		<summary type="html">&lt;p&gt;78.146.154.109: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Introduction &amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This example shows the dose distribution in water along the incident proton beam. This example is very similar to the monoenergetic proton pencil beam example. The difference is that the beam is defined with realistic geometry. For the generation of the proton beam instead of particle gun, we use general particle source. For more details about '''G4GeneralParticleSource''' class look [https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s07.html here]. &lt;br /&gt;
&lt;br /&gt;
The volume of the water cube is divided into slices perpendicular to the incident beam. The slices are created using class '''G4PVReplica'''. The energy and dose are scored using classes '''G4UserSteppingAction''' and '''G4UserRunAction'''. Alternatively, the energy and dose are scored using class '''G4ScoringManager''' by defining scoring mesh. There is an option to chose among several EM and '''QGSP_BIC_EMY''' physics lists.  &lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Setting up the environment &amp;lt;/span&amp;gt; == &lt;br /&gt;
&lt;br /&gt;
; Connect to HEP cluster and create folder ProtonGBFolder in your area&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
ssh -X username@plus1.hep.ucl.ac.uk &lt;br /&gt;
&lt;br /&gt;
password: type your password here&lt;br /&gt;
&lt;br /&gt;
cd /home/username/ &lt;br /&gt;
&lt;br /&gt;
mkdir ProtonGBFolder &lt;br /&gt;
&lt;br /&gt;
cd ProtonGBFolder  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Setup your environment&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
source /unix/pbt/software/dev/bin/pbt-dev.sh  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; How to get the code &amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
; Copy the code to your working directory and rename it&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
cp -r /unix/pbt/tutorials/basic/ProtonGB .&lt;br /&gt;
  &lt;br /&gt;
mv ProtonGB ProtonGB_source&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; How to run the code &amp;lt;/span&amp;gt; == &lt;br /&gt;
&lt;br /&gt;
; Inside /home/username/ProtonGBFolder/ create a directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
mkdir ProtonGB_build  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; To compile the code enter this directory and run cmake and make &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
cd ProtonGB_build &lt;br /&gt;
&lt;br /&gt;
cmake -DGeant4_DIR=/unix/pbt/software/dev /home/username/ProtonGBFolder/ProtonGB_source &lt;br /&gt;
&lt;br /&gt;
make  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Run macro proton.mac. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
./protonGB proton.mac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; How to analyze data &amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The macro produces a root file '''Proton.root''' with two histograms. The first histogram shows the energy deposition in water box along the beam line, the second histogram shows zoomed energy deposition around the peak. The macro also produces several text files. &lt;br /&gt;
&lt;br /&gt;
* The data in files '''DoseFile.txt''' and '''PlotDose.txt''' was created using classes '''G4UserSteppingAction''' and '''G4UserRunAction'''. The file '''DoseFile.txt''' contains energy and dose deposition for every layer. The file '''PlotDose.txt''' contains only depth vs dose for each layer. These text files can be analyzed with MATLAB or ROOT.&lt;br /&gt;
&lt;br /&gt;
* The files '''DoseLongitudinalMesh.txt''', '''EnergyLongitudinalMesh.txt''', '''DoseLateralMesh.txt''' and '''EnergyLateralMesh.txt''' contain information about the dose and energy deposition in voxels in longitudinal and lateral direction of the beam. The data was created using class '''G4ScoringManager''' and commands '''/score/''' in proton.mac. These text files can be analyzed with MATLAB or ROOT.&lt;br /&gt;
&lt;br /&gt;
* The two ways to record data should give similar result.   &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Text files &amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
This is an example output for '''DoseFile.txt''' with physics process '''QGSP_BIC_EMY''' and incident proton energy of '''62 MeV'''.&lt;br /&gt;
Use your favorite editor '''pico''', '''vi''', '''emacs''' etc. to open text files. Now, open the text file '''DoseFile.txt''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
pico DoseFile.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
 Layers 	 x[mm]   Edep  	  Edep/Ebeam[%]   Dose 	     Dose/MaxDose[%]&lt;br /&gt;
 layer 1: 	1.33333	8.80235 GeV	2.366	1.058e-05 Gy	21.8	&lt;br /&gt;
 layer 2: 	2.667	8.898 GeV	2.392	1.069e-05 Gy	22.03	&lt;br /&gt;
 layer 3: 	4	9.213 GeV	2.476	1.107e-05 Gy	22.81	&lt;br /&gt;
 layer 4: 	5.333	9.374 GeV	2.52	1.126e-05 Gy	23.21	&lt;br /&gt;
 layer 5: 	6.667	9.594 GeV	2.579	1.153e-05 Gy	23.76	&lt;br /&gt;
 layer 6: 	8	9.91 GeV	2.664	1.191e-05 Gy	24.54	&lt;br /&gt;
 layer 7: 	9.333	10.07 GeV	2.708	1.211e-05 Gy	24.95	&lt;br /&gt;
 layer 8: 	10.67	10.26 GeV	2.758	1.233e-05 Gy	25.41	&lt;br /&gt;
 layer 9: 	12	10.55 GeV	2.835	1.267e-05 Gy	26.11	&lt;br /&gt;
 layer 10: 	13.33	10.88 GeV	2.925	1.308e-05 Gy	26.95	&lt;br /&gt;
 layer 11: 	14.67	11.21 GeV	3.012	1.347e-05 Gy	27.75	&lt;br /&gt;
 layer 12: 	16	11.64 GeV	3.13	1.399e-05 Gy	28.83	&lt;br /&gt;
 layer 13: 	17.33	11.96 GeV	3.215	1.437e-05 Gy	29.62	&lt;br /&gt;
 layer 14: 	18.67	12.5 GeV	3.361	1.502e-05 Gy	30.96	&lt;br /&gt;
 layer 15: 	20	12.99 GeV	3.492	1.561e-05 Gy	32.17	&lt;br /&gt;
 layer 16: 	21.33	13.71 GeV	3.686	1.648e-05 Gy	33.95	&lt;br /&gt;
 layer 17: 	22.67	14.5 GeV	3.899	1.743e-05 Gy	35.91	&lt;br /&gt;
 layer 18: 	24	15.37 GeV	4.131	1.847e-05 Gy	38.06	&lt;br /&gt;
 layer 19: 	25.33	16.58 GeV	4.457	1.993e-05 Gy	41.06	&lt;br /&gt;
 layer 20: 	26.67	18.18 GeV	4.887	2.185e-05 Gy	45.02	&lt;br /&gt;
 layer 21: 	28	20.45 GeV	5.496	2.457e-05 Gy	50.63	&lt;br /&gt;
 layer 22: 	29.33	24.39 GeV	6.555	2.93e-05 Gy	60.38	&lt;br /&gt;
 layer 23: 	30.67	32.75 GeV	8.803	3.935e-05 Gy	81.09	&lt;br /&gt;
 layer 24: 	32	40.39 GeV	10.86	4.853e-05 Gy	100	&lt;br /&gt;
 layer 25: 	33.33	3.931 GeV	1.057	4.724e-06 Gy	9.734	&lt;br /&gt;
 layer 26: 	34.67	1.427 MeV	0.0003836	1.715e-09 Gy	0.003534	&lt;br /&gt;
 layer 27: 	36	903.1 keV	0.0002427	1.085e-09 Gy	0.002236	&lt;br /&gt;
 layer 28: 	37.33	7.17 MeV	0.001927	8.616e-09 Gy	0.01775	&lt;br /&gt;
 layer 29: 	38.67	972.7 keV	0.0002615	1.169e-09 Gy	0.002408	&lt;br /&gt;
 layer 30: 	40	0 eV 	0	0 Gy	0	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 The run consists of 6000  protons of 62 MeV through 4 cm  of Water (density: 1 g/cm3 ) divided into 30 slices.&lt;br /&gt;
&lt;br /&gt;
 Edep is the deposited energy in every slice.&lt;br /&gt;
 Total incident energy(Ebeam)= 372 GeV&lt;br /&gt;
 Total energy deposit= 366.7 GeV&lt;br /&gt;
 Dose is the deposited dose in every slice.&lt;br /&gt;
 MaxDose is the highest dose value from all slices.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The corresponding '''PlotDose.txt''' is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
1.33333	21.7953	&lt;br /&gt;
2.66667	22.033	&lt;br /&gt;
4	22.8122	&lt;br /&gt;
5.33333	23.2101	&lt;br /&gt;
6.66667	23.7561	&lt;br /&gt;
8	24.5372	&lt;br /&gt;
9.33333	24.9451	&lt;br /&gt;
10.6667	25.4071	&lt;br /&gt;
12	26.114	&lt;br /&gt;
13.3333	26.9454	&lt;br /&gt;
14.6667	27.7468	&lt;br /&gt;
16	28.8325	&lt;br /&gt;
17.3333	29.6189	&lt;br /&gt;
18.6667	30.9594	&lt;br /&gt;
20	32.1666	&lt;br /&gt;
21.3333	33.9549	&lt;br /&gt;
22.6667	35.9146	&lt;br /&gt;
24	38.0563	&lt;br /&gt;
25.3333	41.0607	&lt;br /&gt;
26.6667	45.0231	&lt;br /&gt;
28	50.6268	&lt;br /&gt;
29.3333	60.3833	&lt;br /&gt;
30.6667	81.0937	&lt;br /&gt;
32	100	&lt;br /&gt;
33.3333	9.73398	&lt;br /&gt;
34.6667	0.00353384	&lt;br /&gt;
36	0.00223614	&lt;br /&gt;
37.3333	0.0177538	&lt;br /&gt;
38.6667	0.00240845	&lt;br /&gt;
40	0	&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/DoseLongitudinalMesh.txt '''DoseLongitudinalMesh.txt'''] and [http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/EnergyLongitudinalMesh.txt '''EnergyLongitudinalMesh.txt'''] contain information about the dose and energy deposition in 30 voxels along the beam.  &lt;br /&gt;
&lt;br /&gt;
[http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/DoseLateralMesh.txt '''DoseLateralMesh.txt'''] and [http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/EnergyLateralMesh.txt '''EnergyLateralMesh.txt'''] contain information about the dose and energy deposition in 30 voxels in direction perpendicular to the beam at its peak location along the beam. &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Root file &amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Open the '''Proton.root''' file in the following way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
root -l Proton.root&lt;br /&gt;
&lt;br /&gt;
new TBrowser&lt;br /&gt;
&lt;br /&gt;
Select ROOT Files and Proton.root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; '''This is the energy deposition along the beam in the absorber:''' &amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/BraggPeak_GB.png &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; '''This is the energy deposition along the beam in the absorber, zoomed around the peak:''' &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/BraggPeak_GBzoom.png  &lt;br /&gt;
&lt;br /&gt;
You can use script '''PlotSimulation.C''' from folder '''RootScripts''' to plot the dose deposition along the absorber. This script uses '''PlotDose.txt'''. Copy the script from '''/ProtonGB_source/RootScripts/''' to your build directory as it was done in the '''Monoenergetic proton pencil beam''' tutorial and run it: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
root -l &lt;br /&gt;
&lt;br /&gt;
.x PlotSimulation.C&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create root file with the following plot:&lt;br /&gt;
&lt;br /&gt;
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/Simulation.png  &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Changes in proton.mac &amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
You can change the physics process, incident proton energy and number of slices by&lt;br /&gt;
modifying the macro proton.mac. In addition, you can configure the particle source by using '''/gps/''' commands. The beam characteristics used in this macro are similar to the ones used at the Laboratori Nazionali del Sud (INFN) in Catania, Italy and the Clatterbridge Cancer Center(energy distribution is similar). The proton beam has Guassian energy distribution. [https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s07.html Here] you can learn more about the different /gps/ commands. &lt;br /&gt;
&lt;br /&gt;
Open the macro proton.mac:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
pico proton.mac&lt;br /&gt;
&amp;lt;/pre&amp;gt;   &lt;br /&gt;
&lt;br /&gt;
You will see:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color: #800000; background-color: #dcdcdc&amp;quot;&amp;gt;&lt;br /&gt;
# proton.mac&lt;br /&gt;
#&lt;br /&gt;
/control/verbose 2&lt;br /&gt;
/run/verbose 2&lt;br /&gt;
/tracking/verbose 0&lt;br /&gt;
/run/particle/verbose 1&lt;br /&gt;
/run/particle/dumpList&lt;br /&gt;
#&lt;br /&gt;
# set geometry &lt;br /&gt;
/protonGB/det/setSizeX  4 cm&lt;br /&gt;
/protonGB/det/setSizeYZ 4 cm&lt;br /&gt;
/protonGB/det/setSliceSizeYZ 1 cm&lt;br /&gt;
/protonGB/det/sliceNumber 30 &lt;br /&gt;
#&lt;br /&gt;
# define longitudinal scoring mesh&lt;br /&gt;
# along the beam&lt;br /&gt;
/score/create/boxMesh waterMeshlongitudinal&lt;br /&gt;
/score/mesh/boxSize 2. 2. 2. cm&lt;br /&gt;
/score/mesh/nBin 30 1 1&lt;br /&gt;
/score/mesh/translate/xyz 0. 0. 0. cm&lt;br /&gt;
/score/quantity/energyDeposit energyDeposit &lt;br /&gt;
/score/quantity/doseDeposit doseDeposit&lt;br /&gt;
/score/close&lt;br /&gt;
#&lt;br /&gt;
# define lateral scoring mesh&lt;br /&gt;
# centered at the Bragg peak&lt;br /&gt;
/score/create/boxMesh waterMeshlateral&lt;br /&gt;
/score/mesh/boxSize 1. 2. 2. cm&lt;br /&gt;
/score/mesh/nBin 1 30 1&lt;br /&gt;
/score/mesh/translate/xyz 1.2 0. 0. cm&lt;br /&gt;
/score/quantity/energyDeposit energyDeposit &lt;br /&gt;
/score/quantity/doseDeposit doseDeposit&lt;br /&gt;
/score/close&lt;br /&gt;
#&lt;br /&gt;
# set physics process&lt;br /&gt;
/protonGB/phys/addPhysics QGSP_BIC_EMY&lt;br /&gt;
#/protonGB/phys/addPhysics emlivermore&lt;br /&gt;
#/protonGB/phys/addPhysics empenelope&lt;br /&gt;
#&lt;br /&gt;
# production tresholds (recommended range &lt;br /&gt;
#cut off not bigger than 10% of slice thickness)&lt;br /&gt;
/protonGB/phys/setCuts 0.2 mm&lt;br /&gt;
#/protonGB/phys/setGCut 1 um&lt;br /&gt;
#/protonGB/phys/setECut 1 um&lt;br /&gt;
#/protonGB/phys/setPCut 1 um&lt;br /&gt;
#&lt;br /&gt;
# initialize&lt;br /&gt;
/run/initialize&lt;br /&gt;
# General particle source&lt;br /&gt;
# proton circle source  &lt;br /&gt;
/gps/pos/shape Circle&lt;br /&gt;
/gps/pos/centre -4. 0. 0. cm&lt;br /&gt;
/gps/pos/radius 0. mm&lt;br /&gt;
/gps/pos/sigma_r 2. mm&lt;br /&gt;
/gps/particle proton&lt;br /&gt;
/gps/pos/type Beam&lt;br /&gt;
#&lt;br /&gt;
# the incident surface is in the y-z plane&lt;br /&gt;
/gps/pos/rot1 0 1 0&lt;br /&gt;
/gps/pos/rot2 0 0 1&lt;br /&gt;
#&lt;br /&gt;
# the beam is travelling along the x-axis without any angular &lt;br /&gt;
#dispersion (angular despersion set to 0.0)&lt;br /&gt;
/gps/ang/rot1 0 0 1&lt;br /&gt;
/gps/ang/rot2 0 1 0 &lt;br /&gt;
/gps/ang/type beam1d &lt;br /&gt;
/gps/ang/sigma_r 0. deg&lt;br /&gt;
#&lt;br /&gt;
# the beam energy is in gaussian profile&lt;br /&gt;
/gps/ene/type Gauss&lt;br /&gt;
/gps/ene/mono 62 MeV&lt;br /&gt;
/gps/ene/sigma 0.3 MeV&lt;br /&gt;
#&lt;br /&gt;
# step limit (recommended not bigger than 5% of &lt;br /&gt;
# slice thickness)&lt;br /&gt;
/protonGB/stepMax 0.1 mm&lt;br /&gt;
#&lt;br /&gt;
/protonGB/event/printModulo 50&lt;br /&gt;
#&lt;br /&gt;
# output file&lt;br /&gt;
/analysis/setFileName Proton&lt;br /&gt;
# &lt;br /&gt;
/analysis/h1/set 2 50 25 35 mm&lt;br /&gt;
# number of events&lt;br /&gt;
/run/beamOn 6000&lt;br /&gt;
#&lt;br /&gt;
# dump scores to a file&lt;br /&gt;
/score/dumpQuantityToFile waterMeshlongitudinal doseDeposit DoseLongitudinalMesh.txt&lt;br /&gt;
/score/dumpQuantityToFile waterMeshlongitudinal energyDeposit EnergyLongitudinalMesh.txt&lt;br /&gt;
/score/dumpQuantityToFile waterMeshlateral doseDeposit DoseLateralMesh.txt&lt;br /&gt;
/score/dumpQuantityToFile waterMeshlateral energyDeposit EnergyLateralMesh.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can modify '''proton.mac''' as it is done in the tutorial '''Monoenergetic proton pencil beam'''.  &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Visualisation &amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Under construction (problems with OpenGL installed on plus1)&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Comparison with data from The Clatterbridge Cancer Centre &amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Compare simulation with data using ROOT macros in folder '''RootScripts'''. These scripts are similar to the ones used in the tutorial '''Monoenergetic proton pencil beam'''. For example, by using '''PlotDataAndSim.C''' you can compare proton data from Clatterbridge with simulation (PlotDose.txt).&lt;br /&gt;
&lt;br /&gt;
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/ProtonGB/ClatterbridgeSimulation.png   &lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#000080&amp;quot;&amp;gt; Files &amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
[[List of proton beam with realistic geometry files with brief description]]&lt;/div&gt;</summary>
		<author><name>78.146.154.109</name></author>	</entry>

	</feed>