Monoenergetic photon pencil beam
From UCL HEP PBT Wiki
| Line 193: | Line 193: | ||
<pre style="color: #800000; background-color: #dcdcdc"> | <pre style="color: #800000; background-color: #dcdcdc"> | ||
./photonPB gamma.mac | ./photonPB gamma.mac | ||
| + | </pre> | ||
| + | |||
| + | === Change the number of slices === | ||
| + | |||
| + | 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 | ||
| + | /PhotonPB/include/. | ||
| + | |||
| + | Change the MaxLayer into your desired value. | ||
| + | |||
| + | <pre style="color: #800000; background-color: #dcdcdc"> | ||
| + | const G4int MaxLayer = 20; | ||
| + | </pre> | ||
| + | |||
| + | In gamma.mac you should change the number of slices | ||
| + | |||
| + | <pre style="color: #800000; background-color: #dcdcdc"> | ||
| + | /photonPB/det/sliceNumber 20 cm | ||
| + | </pre> | ||
| + | |||
| + | Since you modified your code (by changing the file DetectorConstruction.hh) you should | ||
| + | compile the code. In your PhotonPB_build director do | ||
| + | |||
| + | <pre style="color: #800000; background-color: #dcdcdc"> | ||
| + | make | ||
</pre> | </pre> | ||