-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add function to transform from energy dispersion to energy migration #48
Comments
So the difference is just in the value of the migration bins? The documentation uses these two terms interchangeably btw: |
Yes, we should make a clear distinction. The difference is the second axis of the IRF, yes. One is the relative change one is absolute reconstructed energy. |
perhaps the associated modification to the docs can be done together with the addition of this function |
Is there an official document, that we could link for that? |
@vuillaut I don't think this has anything to do with full enclosure irfs. |
I don't think so. But there should be code in gammapy that does this transformation. Maybe @adonath can give you a pointer |
This ambiguity is also found in the OGADF website: energy dispersion is defined as the PDF of energy migration |
Don't we want to compute the sensitivity from IRFs at the end? |
Indeed, but I believe this is only important for cut optimizations which are not best-sensitivity (in that case the sensitivity depends on the specific optimized IRF no?) Since we are now optimizing for best-point-source sensitivity, the sensitivity from the IRFs should coincide with that form the optimized cuts. |
Yes, it's a TODO for the sensitivity calculation from IRFs |
This is because the transformation introduces additional bins outside of the "dispersion range" for a given true energy, right? |
Yes, basically you never expect an event to go from 100 GeV to 100 TeV. But if you have a migration matrix with both ranges from 10 GeV to 100 TeV you will have to store also these bins. |
In Gammapy we use the term "energy dispersion" (or @maxnoe In Gammapy we have code to integrate the energy migration PDF in a given reco energy range to compute the RMF matrix. This code is e.g. in
I think this is what you meant? |
But I fully agree we should clarify and agree on the terminology...I'm adding @registerrier to the discussion as well. |
Yes exactly, thanks @adonath As the needed shape is known before hand, you could create the matrix using |
Done in #273 |
Energy dispersion is a better format for storage, as it is less sparse, but for actual computations, one needs energy migration.
We should have a function that transforms the energy dispersion matrix (Bins true energy, reco_energy / true_energy) to migration matrix (bins true_energy, reco_energy).
This is needed to estimate sensitivity from IRFs
The text was updated successfully, but these errors were encountered: