Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy Grid in ronswanson #12

Open
parsotat opened this issue Oct 4, 2023 · 1 comment
Open

Energy Grid in ronswanson #12

parsotat opened this issue Oct 4, 2023 · 1 comment

Comments

@parsotat
Copy link

parsotat commented Oct 4, 2023

  • ronswanson version: 0.3.1
  • Python version: 3.8
  • Operating System: MacOS

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
Copy link

cayley38 commented Oct 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants