Monoenergetic photon pencil beam

From UCL HEP PBT Wiki

Jump to: navigation, search
m
Line 351: Line 351:
'''Change the number of slices'''
'''Change the number of slices'''
-
You can change the number of slices. The default number is 20. Keep in mind that  
+
You can change the number of slices. The default number is 40. Keep in mind that  
if you want to have bigger number of slices you need to modify the file DetectorConstruction.hh in
if you want to have bigger number of slices you need to modify the file DetectorConstruction.hh in
/PhotonPB_source/include/.
/PhotonPB_source/include/.
-
In DetectorConstruction.hh set MaxLayer to a value which is bigger then the number of your slices. The default number is MaxLayer=30. For example, if you want your box to be divided to 35 slices you need to set the value of MaxLayer to ,for example, 40 then in gamma.mac you need to change the number of slices:
+
In DetectorConstruction.hh set MaxLayer to a value which is bigger then the number of your slices. The default number is MaxLayer=50. For example, if you want your box to be divided to 60 slices you need to set the value of MaxLayer to ,for example, 65 then in gamma.mac you need to change the number of slices:
<pre style="color: #800000; background-color: #dcdcdc">
<pre style="color: #800000; background-color: #dcdcdc">
-
/photonPB/det/sliceNumber 35
+
/photonPB/det/sliceNumber 60
</pre>
</pre>

Revision as of 15:13, 24 August 2014

Personal tools