Skip to content

Conversation

@PetrilloAtWork
Copy link
Member

The algorithm creating readout buffers (future raw::OpDetWaveform) from the continuous readout was written expecting (and asserting) that a trigger primitive can't be at the first tick of the enable gate. This was a reasonable assumption when the trigger algorithm looked for a transition from the previous tick from below to above threshold. Now an alternative algorithm is also available which considers just the value of the sample compared to the threshold, so that expectation is violated and the assertion failed. A small change in the algorithm makes it robust to that rare occurrence.

Thanks to @gputnam for the perfect report (code version, input file, input configuration, error message). As a punishment, he gets to review the change.

The algorithm creating readout buffers (future `raw::OpDetWaveform`) from the continuous readout was written expecting (and asserting) that a trigger primitive can't be at the first tick of the enable gate.
This was a reasonable assumption when the trigger algorithm looked for a transition from the previous tick from below to above threshold.
Now an alternative algorithm is also available which considers just the value of the sample compared to the threshold, so that expectation is violated and the assertion failed.
A small change in the algorithm makes it robust to that rare occurrence.
@PetrilloAtWork PetrilloAtWork added the bug Something isn't working label Apr 25, 2023
@PetrilloAtWork PetrilloAtWork requested a review from gputnam April 25, 2023 18:46
Copy link
Contributor

@gputnam gputnam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this PR and can confirm that it works as intended.

@mmrosenberg mmrosenberg changed the base branch from develop to release/SBN2023A April 26, 2023 16:33
@mmrosenberg
Copy link
Contributor

trigger build LArSoft/lar*@LARSOFT_SUITE_v09_72_00 SBNSoftware/sbncode@v09_72_00 SBNSoftware/sbnanaobj@v09_20_06 SBNSoftware/sbndaq_artdaq_core@v1_06_00of0 SBNSoftware/sbnobj@v09_16_00 SBNSoftware/icarus_signal_processing@v09_63_00_02 SBNSoftware/icarusalg@v09_72_00 SBNSoftware/icarusutil@v09_66_02

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for c7:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

✔️ CI build for LArSoft Succeeded on slf7 for e20:prof -- details available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for ICARUS Warning at phase ci_tests ICARUS on slf7 for c7:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild
Copy link
Collaborator

⚠️ CI build for ICARUS Warning at phase ci_tests ICARUS on slf7 for e20:prof -- details available through the CI dashboard

🚨 For more details about the warning phase, check the ci_tests ICARUS phase logs

parent CI build details are available through the CI dashboard

@mmrosenberg mmrosenberg merged commit 482a51b into SBNSoftware:release/SBN2023A Apr 27, 2023
@PetrilloAtWork PetrilloAtWork deleted the feature/gp_fixPMTdetSim branch April 2, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants