-
Notifications
You must be signed in to change notification settings - Fork 78
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
Allow using custom energy dependent cuts (e.g. based on sensitivity optimization) for IRFs and DL3 #1348
base: main
Are you sure you want to change the base?
Conversation
… in the irf and dl3 creation tools.
Hi @gabemery, thanks for the implementation, I think it makes sense to support this. Maybe have a look at how it was recently done in ctapipe, so here we use similar naming and so on (cta-observatory/ctapipe#2473). Specifically, they implement: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1348 +/- ##
==========================================
+ Coverage 72.86% 72.99% +0.12%
==========================================
Files 137 137
Lines 14515 14583 +68
==========================================
+ Hits 10577 10645 +68
Misses 3938 3938 ☔ View full report in Codecov by Sentry. |
@morcuended Thanks for bringing the ctapipe version to my attention. I will have a look and see what can be implemented without re-writing the full tool. |
After having a look, there is nothing to directly implement from the ctapipe irf production into this PR since the pipelines are very different. |
@morcuended can you approve? I had a quick look and it seems ok to me, but probably you know this better. |
Let me have a look first |
Currently, IRF and DL3 creation tools only allow for global or energy-dependent gammaness, theta or alpha cuts calculated based on MC gamma-ray efficiency.
These changes introduce the option to provide custom previously calculated energy-dependent cuts on gammaness, theta or alpha during the IRFs creation. And provides associated metadata in the IRFs and DL3 files.
Why is it needed : Allows to provide energy dependent cuts based on criteria different from gamma efficiency. Such as best sensitivity.
Tool usage change with the new implementation :
Removed flags --energy-dependent-gh, --energy-dependent-theta and --energy-dependent-alpha and replaced them by a --cut_strategy-{gh, theta, alpha} which receives the technique used as a string input.
The implementation is near complete and can be reviewed, but some points need discussion/further work.
To do before merging :