Monoenergetic proton pencil beam

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 210: Line 210:
# particle energy used in Clatterbridge Centre   
# particle energy used in Clatterbridge Centre   
/gun/energy 62 MeV
/gun/energy 62 MeV
 +
#
 +
# beam size
 +
#/protonPB/gun/rndm 3 mm
#
#
# step limit (recommended not bigger than 5% of  
# step limit (recommended not bigger than 5% of  
Line 265: Line 268:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
./protonPB proton.mac
./protonPB proton.mac
 +
</pre>
 +
 +
'''Change the diameter of the beam'''
 +
 +
You can set the diameter of the beam with the command:
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
/protonPB/gun/rndm 3 mm
</pre>
</pre>
Line 273: Line 284:
/ProtonPB_source/include/.
/ProtonPB_source/include/.
-
In DetectorConstruction.hh set MaxLayer to a value which is bigger than the
+
In DetectorConstruction.hh set MaxLayer to value bigger than the number of your slices. The default value is MaxLayer=40. For example, if you want to have 35 slices you do not need to modify MaxLayer. Then, only in proton.mac change the number of slices  
-
number of your slices. The default value is 40. For example, if you want to have 35 slices you do
+
-
not need to modify MaxLayer. Then in proton.mac change the number of slices  
+
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">

Revision as of 17:34, 22 July 2014

Personal tools