-
Notifications
You must be signed in to change notification settings - Fork 265
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
Implement a shower processor #1675
Implement a shower processor #1675
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1675 +/- ##
==========================================
+ Coverage 90.83% 90.87% +0.03%
==========================================
Files 183 185 +2
Lines 14299 14370 +71
==========================================
+ Hits 12989 13059 +70
- Misses 1310 1311 +1
Continue to review full report at Codecov.
|
@kosack, yes that was what I was essentially also proposing above. Building the hillas dict like:
|
Before we do that I would prefer to collect some use cases to see what another pipeline would really want to override. The current private API is in my opinion not really designed for that purpose, so just making it public is not the best design. |
@HealthyPear I think we can go ahead here independent of that and talk about what needs to be adapted / changed to have a more fine-grained public API later / when I will continue with trying to port the full LST analysis to vanilla ctapipe. |
Sure for me it's also fine, I do not have preferences. I do not have further modifications unless you or Karl have other comments. |
This pull request implements a
ShowerProcessor
, similar to the previously implementedImageProcessor
.Shower geometry reconstruction is performed with
HillasReconstructor
onlyIt could be generalized in principle to all
Reconstructor
-based classes, but that class needs to upgraded accordingly and it will probably trigger a different discussion related to e.g. the relation between something likeHillasReconstructor
andImPACT
.I am open to integrate this PR with something like a
reconstructor_type
attribute toShowerProcessor
(likeimage_cleaner_type
forImageProcessor
), but this would require at least to makectapipe.reco.ImPACTReconstructor
not a class based onReconstructor
.ShowerProcessor
as the name says is supposed to process the shower interpreted as an eventCurrently when
ShowerProcessor
is called the shower geometry is always reconstructed, being the minimum operation we can do on parametrized images.It will be also possible to reconstruct energy and particle type, so for the moment, I added them as dummy functions that raises a
NotImplementedError
.Unit-test
The unit-test tests for the following cases: