Monoenergetic photon pencil beam
From UCL HEP PBT Wiki
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 | + | 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= | + | 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 | + | /photonPB/det/sliceNumber 60 |
</pre> | </pre> | ||