Repository navigation
Address high-priority bugs flagged by Claude - #398
Merged
Merged
Conversation
…ger overlap - On a jump to the next file due to LAPPD data, pause all decoders and set NewRawDataEntryAccessed so nothing reprocesses old data or stops. - Reset LAPPDTotalEntries when loading LAPPD data from a new file. - Also fixed in LoadRawData tool. - If no trigger overlap store exists, read the last real CTC entry instead of reusing the previous one.
- A group still open at the end of the buffer had its triggers erased without being saved, losing that group when it spanned two Execute() calls. Now its triggers stay in the buffer and the group is completed on the next pass. - Change the default CosmicTriggerMain from 45 to 36 (matches the cosmic config)
…fix pulse map fill - With a relative threshold, the baseline was added to the threshold in every minibuffer without resetting it, so it kept growing. Now each minibuffer starts from the database threshold. - When a channel was first added to the pulse map, the whole pulse_vec was inserted and later pieces were appended again (duplicates for channels with more than one waveform piece). Now only the current piece is inserted.
…ble, reject single-board events" - queryNearestACCID: log an error and stop the toolchain if no ACC ID is found for the LAPPD manufacturer ID. - Set NewLAPPDDataAvailable only when the event was actually saved, and reset it at the start of each Execute(). - Reject events with an uneven number of boards. - Clear LAPPDLoadedTimeStamps in CleanDataObjects().
Contributor
Author
|
This PR also includes a small LAPPDLoadStore fix so the build passes. The same fix is already in the dual-ACDC event building PR, I hope that is not an issue. |
Collaborator
|
Looks good to me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
This PR contains a subset of fixes addressing high-priority bugs flagged via Andy's Claude. These changes focus on safeguarding data consistency and ensuring reliable processing during the decoder stage.
Documented here: https://annie-docdb.fnal.gov/cgi-bin/sso/ShowDocument?docid=7024
EBLAPPD: Initialise thisRunNum to -1
EBLoadRaw
EBTriggerGrouper
LoadGeometry: Strip trailing '\r' when reading geometry CSV files.
PhaseIIADCHitFinder
LAPPDTreeMaker: Initialise TriggerWordMap to nullptr.
LAPPDLoadStore
Checklist before submitting your PR
newusage, there is a reason the data must be on the heapnewthere is adelete, unless I explicitly know why (e.g. ROOT or a BoostStore takes ownership)Additional Material
Attach any validation or demonstration files here. You may also link to relavant docdb articles.