grburgess / ronswanson

Ron Swanson builds tables for 3ML
http://jmichaelburgess.com/ronswanson/index.html
Other
4 stars 2 forks source link

Energy Grid in ronswanson #12

Open parsotat opened 12 months ago

parsotat commented 12 months ago

Description

The energy grid is not clear in relation to how spectra are constructed from models. In the example given, the BandSimulation class evaluates the Band function at the energies provided in the energy grid. For Monte Carlo models, I need to specify a energy bin for which I collect photons in. How is this handled in ronswanson and therefore in future fitting using 3ML.

cayley38 commented 11 months ago

Hi Taylor. This is not handled in ronswanson: it should be handled on your side. Consider the center of your energy bin as the energy of the photon grid, if you see what I mean. This will lead to a small error in the order of delta energy, but this is not too bad if your sampling is sufficiently thin. Let me know if this answers your question, if not I can try to expand what I mean. Damien