Monoenergetic photon pencil beam
From UCL HEP PBT Wiki
Line 149: | Line 149: | ||
</pre> | </pre> | ||
- | Keep in mind that the primary particle generation is done at / | + | Keep in mind that the primary particle generation is done at /PhotonPB_source/src/PrimaryGeneratorAction.cc |
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> | ||
Line 206: | Line 206: | ||
You can change the number of water box slices. The default number is 20. Keep in mind that | You can change the number of water box slices. The default number is 20. Keep in mind that | ||
if you want to have bigger number of slices you should also modify the DetectorConstruction.hh file in | if you want to have bigger number of slices you should also modify the DetectorConstruction.hh file in | ||
- | / | + | /PhotonPB_source/include/. |
Change the MaxLayer into your desired value. | Change the MaxLayer into your desired value. | ||
Line 221: | Line 221: | ||
Since you modified your code (by changing the file DetectorConstruction.hh) you should | Since you modified your code (by changing the file DetectorConstruction.hh) you should | ||
- | compile the code. In your PhotonPB_build | + | compile the code. In your PhotonPB_build directory do |
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> | ||
make | make | ||
</pre> | </pre> |