-
I am using egs_phd to score the pulse height distribution in a region. What I would like to do is to extend this to a set of regions, each having its own spectrum file. I tried to manipulate the input file, but the app generates only one spectrum file. Any guidance on potential approaches to achieve the desired outcome of obtaining separate spectrum files for each individual region? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If it's a short simulation, just write a little python script that runs the simulation many times, changing the region of interest. If this would take a long time because it's a long simulation, you'll have to edit the egs_phd code to add more spectra. Luckily, it's a nice short code that's pretty easy to read. Specifically, look through uses of the If you feel like you've done a good job, feel free to submit the modifications as a pull request! Make sure you are using |
Beta Was this translation helpful? Give feedback.
If it's a short simulation, just write a little python script that runs the simulation many times, changing the region of interest.
If this would take a long time because it's a long simulation, you'll have to edit the egs_phd code to add more spectra. Luckily, it's a nice short code that's pretty easy to read. Specifically, look through uses of the
spectrum
object, the wholesimulateSingleShower
function, andoutputResponse
. You'll need to duplicate thespectrum
object for however many regions you would like. You could hard-code the regions into the code, or add a new input option that assigns each region in the list to a different spectrum file (then create spectra in a vector so that y…