Implement Pyrrha functionalities in Irene - #953
Conversation
fb435dd to
b7f45d4
Compare
gonzaponte
left a comment
There was a problem hiding this comment.
I will take a deeper look, but here is a first go.
gonzaponte
left a comment
There was a problem hiding this comment.
A few more comments. I still need to check a few things, but at least you can make some progress while I do that.
50398e0 to
7c42a53
Compare
gonzaponte
left a comment
There was a problem hiding this comment.
I'm happy with this. As discussed, let's rebase and fix the problems that may arise there. After that, some cosmetics and we are done!
Done for backwards compatibility, this function now mirrors that of `calibrate_sipms()` before thresholding was removed.
This is the main controlling function, that decides which type of cut will be applied.
This included the adjustment of the cuts, applying `select_wfs_above_time_integrated_thr()` and the zeroing integration cut before the waveform rebinning.
This is to avoid possible situations where `calibrate_sipms()` is used outwith irene. `thr` is now a keyword argument to ensure that if a threshold is applied it is done so with intent.
Initially this was done over the entire waveforms due to the reordering of the cuts when applied in `build_sipm_responses()`. As suggested by @Ian0sborne, it would be wise to move these cuts out of `compute_and_write_pmaps()`
…eshold outside of `charge_threshold_method()`
…_wfs_below_threshold()` for zeroing waveform entries
f1fddb0 to
249da17
Compare
gonzaponte
left a comment
There was a problem hiding this comment.
This is ready to be merged. Just some cosmetic changes. Please run pyflakes on the files you've modified to verify there aren't unused imports or variables.
gonzaponte
left a comment
There was a problem hiding this comment.
An important addition to the signal reconstruction, allowing for a more efficient and more correct storage of sipm information. Great job!
This PR addresses the data processing issues cause by the SiPM thresholds in Irene. It retains standard Irene functionalities but also implements the new Pyrrha selection methods for SiPMs, which relies on a spatial selection rather than a charge threshold.
The user is free to decide how they would rather process the raw waveforms (using the old Irene or Pyrrha), as the config file allows for either method to be selected.