Monoenergetic photon pencil beam

From UCL HEP PBT Wiki

Jump to: navigation, search
m
Line 419: Line 419:
=== <span style="color:#000080"> Visualisation </span> ===
=== <span style="color:#000080"> Visualisation </span> ===
 +
If you want to use visualisation, in macro '''gamma.mac''' uncomment the line '''/control/execute visualisation.mac'''. This will run macro '''visualisation.mac''' with a specific visualisation setup.
 +
In this example, we use '''DAWN''' event display. Before running the visualisation look at the [http://geant4.slac.stanford.edu/Presentations/vis/G4DAWNTutorial/G4DAWNTutorial.html DAWN tutorial].
 +
 +
To run the visualisation, uncomment line '''/control/execute visualisation.mac''' and run the 
 +
gamma.mac macro
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
./photonPB gamma.mac
 +
</pre>
 +
 +
In addition to the text files the code will create two .prim files, '''g4_00.prim''' and '''g4_01.prim'''. Both files contain detector geometry and particle interactions. While running the gamma.mac you will be asked to open g4_00.prim in DAWN. In the opened window press OK. This will create your first visualisation:
 +
 +
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/PhotonPB/g4_00_6000e.eps
 +
 +
The second file g4_01.prim will not open automatically. It will be created after the running is finished. Open the file in the following way:
 +
 +
<pre style="color: #800000; background-color: #dcdcdc">
 +
dawn g4_01.prim
 +
</pre>
 +
 +
In the opened DAWN display change the polar and azimuthal angles to 0 and 90 degrees, then press OK.  This will create the image:
 +
 +
http://www.hep.ucl.ac.uk/pbt/RadiotherapyWorkbook/skins/common/images/PhotonPB/g4_02_6000e.eps
== <span style="color:#000080"> Files </span> ==
== <span style="color:#000080"> Files </span> ==
[[List of monoenergetic photon pencil beam files with brief description]]
[[List of monoenergetic photon pencil beam files with brief description]]

Revision as of 16:36, 24 August 2014

Personal tools