Software for design optimization: Difference between revisions
Line 8: | Line 8: | ||
=== Generating the geometry === | === Generating the geometry === | ||
To generate the geometry files to run in Gate, a Python script is supplied. | To generate the geometry files to run in Gate, a Python script is supplied. | ||
It is located within the ''gate/python'' subfolder. | |||
$ python gate/python/makeGeometryDTC.py | $ python gate/python/makeGeometryDTC.py | ||
[[File:GATE geometry builder.PNG||500px]] | |||
GATE geometry builder.PNG|GATE | |||
< | Choose the wanted characteristics of the detector, and use ''write files'' in order to create the Module.mac file, which is automatically included in Main.mac. | ||
=== GATE simulations === | |||
==== Creating the full simulations files for a range-energy look-up-table ==== | |||
* Edit Module.mac to direct to readout_full.mac | |||
* Comment out such that the ..._Full_... filename is in use | |||
To loop through different energy degrader thicknesses, run the script ''runDegrader.sh'': | |||
$ sh runDegrader.sh <absorber thickness> <degraderthickness from> <degraderthickness stepsize> <degraderthickness to> | |||
For example, with a 3 mm degrader, and simulating a 250 MeV beam passing through a phantom of 50, 55, 60, 65 and 70 mm water: | |||
$ sh runDegrader.sh 3 50 5 70 | |||
==== Creating the chip-only readout simulation files for analysis ==== |
Revision as of 14:12, 22 February 2017
Simulation software
In order to run the software to generate the geomtry, Monte Carlo data and do full simulations, you need the following software:
- ROOT
- Geant4
- Gate
- DTC toolkit (Helge's code)
Generating the geometry
To generate the geometry files to run in Gate, a Python script is supplied. It is located within the gate/python subfolder.
$ python gate/python/makeGeometryDTC.py
Choose the wanted characteristics of the detector, and use write files in order to create the Module.mac file, which is automatically included in Main.mac.
GATE simulations
Creating the full simulations files for a range-energy look-up-table
- Edit Module.mac to direct to readout_full.mac
- Comment out such that the ..._Full_... filename is in use
To loop through different energy degrader thicknesses, run the script runDegrader.sh:
$ sh runDegrader.sh <absorber thickness> <degraderthickness from> <degraderthickness stepsize> <degraderthickness to>
For example, with a 3 mm degrader, and simulating a 250 MeV beam passing through a phantom of 50, 55, 60, 65 and 70 mm water:
$ sh runDegrader.sh 3 50 5 70