Skip to content

egs_phd multiple spectrum scoring #1050

Answered by rtownson
onrdm asked this question in Questions
Aug 15, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

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 whole simulateSingleShower function, and outputResponse. You'll need to duplicate the spectrum 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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@onrdm
Comment options

@rtownson
Comment options

@onrdm
Comment options

@rtownson
Comment options

@onrdm
Comment options

Answer selected by onrdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants