Repository navigation
auto-hunt: HDDM - 10 fixes (S1 1, S2 1, S3 2, S4 6) - #1245
Conversation
…reads it) `libraries/HDDM/DEventWriterREST.cc`: one line, `tof().setTerr(tofpoints[i]->tErr);`, next to the other TOF point fields. The schema and the reader already carry the value. `patches/master.patch` applies at master and at release 5.9.0 (offset 5 lines). Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-11-rest-tof-point-time-error-dropped/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-11-rest-tof-point-time-error-dropped Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is repeated) Deletes the second, identical ECAL block of `DEventWriterHDDM.cc` (lines 644-685 at master). `patches/master.patch` applies at master and at release 5.9.0. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-32-hddm-writer-ecal-hits-twice/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-32-hddm-writer-ecal-hits-twice Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2025 TOF has 46 paddles per plane `libraries/HDDM/DEventWriterREST.cc` and `libraries/HDDM/DEventSourceREST.cc`: base 47 in place of 45 in the packing and unpacking of the TOF status word (bars 1 to 46 fit). The patch applies to master and to release 5.9.0 (offsets -5 and -8 lines). **This fix changes how the REST TOF status is read back.** REST files of the 2025-01 pass were written by the old code in base 45; read with the patched reader they decode differently (the bars and statuses of most of their TOF points change, not only those on bars 45 and 46). Before merging, the maintainers choose between a format version (a version mark or a new element in the REST file, so the reader takes base 45 for old files and base 47 for new ones) and filing the issue only. The patch shows the minimal correct packing for new files. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-40-rest-tof-status-base-45/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-40-rest-tof-status-base-45 Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ags written by DEventWriterREST is lost on every REST read (wire-based-fit and other-hypothesis tracks show flags 0) `libraries/HDDM/DEventSourceREST.cc`, where `DTrackTimeBased` is built from a REST charged track: the first `trackFlags` element is read into `tra->flags`; a record without one gives `FLAG__GOODFIT`, the value the reader sets today. Two added lines; nothing else changes. The element is read through `begin()` because the element list is const there. The patch applies to release 5.9.0 with an offset of 20 lines (the lines are the same there); it was not built at 5.9.0. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-43-rest-reader-drops-track-flags/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-43-rest-reader-drops-track-flags Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s uninitialised on read - `libraries/HDDM/DEventWriterREST.cc`: two lines add the `tofPaddles` entry to `hitStatistics`, like the seven other counts beside it; the field exists in `rest.xml` and the reader already reads it. - `libraries/HDDM/DEventSourceREST.cc`: one line sets `ecal_blocks = 0` when `DEventHitStatistics` is read from REST, which has no field for it (adding the field to `rest.xml` is a separate schema change, left out). `patches/master.patch` for master; `patches/r5.9.0.patch` for release 5.9.0 (the same lines, 5 and 29 lines earlier). Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-12a-rest-hit-statistics-tof-paddles-missing/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-12a-rest-hit-statistics-tof-paddles-missing Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; matched hits go into a discarded copy - `libraries/HDDM/DEventSourceREST.cc`: `locEvent->Get(locDIRCHits)` moves out of the `RECO_DIRC_CALC_LUT` branch, because the stored match-hit indices refer to these hits in both modes. - A stored index beyond the hit vector is skipped, so a file whose hit list does not match cannot read out of range. `patches/master.patch` applies at master and at release 5.9.0 (offset 20 lines). Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-13-rest-dirc-nolut-hits-empty-crash/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-13-rest-dirc-nolut-hits-empty-crash Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… initialized is set before the members are loaded and read without a lock, so other threads use uscale/vscale, dBCALGeom, psGeom and the tag `libraries/HDDM/DEventSourceHDDM.cc`, `GetObjects`: a static `std::recursive_mutex` is locked before the `initialized` test and released after the block. Other threads wait until the members are filled; the block's own `event->Get` calls re-enter `GetObjects` on the same thread, take the recursive lock again and skip the block (the flag is set first, as today). Five added lines and an unlock. Every call takes the lock once; it is held only for the test after the first event. The file is identical at release 5.9.0 in these lines; the patch applies there unchanged. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-46-hddm-source-init-block-race/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-46-hddm-source-init-block-race Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t creates a new DEventHitStatistics every event, so JANA never deletes it: one object leaks per event in every job that writes REST
`libraries/HDDM/DEventHitStatistics_factory.cc`, `Init`: the `SetFactoryFlag(NOT_OBJECT_OWNER)` call is removed, so
JANA deletes the object the factory creates each event when the event is recycled. One line. The two comment lines
above it ("JANA does not delete the objects ... This factory will manage this memory") stay in the patch as it was
tested and now contradict the code; they should be removed on merge.
The patch applies to release 5.9.0 without offset (the file is the same there).
Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-47-hit-statistics-leak-per-event/index.html
Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-47-hit-statistics-leak-per-event
Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… every CCAL shower read from REST carries zero energy, position and time errors into DNeutralShower and the kinematic fit `Extract_DCCALShower` fills `ExyztCovariance` (5x5, order E, x, y, z, t as the `DCCALShower` accessors read it) with the constant errors that `DCCALShower_factory` assigns to every shower (0.5 GeV, 0.1016 cm, 0.1016 cm, 2.5 cm, 0.2 ns). REST stores no position or covariance error for a CCAL shower, so the reader cannot do better than the reconstruction's constants; this is the smallest change that gives REST-read photons the same errors as freshly reconstructed ones. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-50-rest-ccal-shower-zero-covariance/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-50-rest-ccal-shower-zero-covariance Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sterType and PeakType unset, so they print garbage (event 23: 4 in one run, 0 in another) Three lines in `Extract_DCCALShower`: `ClusterType` and `PeakType` from `type`, exactly as `DCCALShower_factory` sets them. Card: https://pages.jlab.org/halld/auto-hunt/cards/r6-52-rest-ccal-cluster-type-unset/index.html Evidence folder: https://code.jlab.org/halld/auto-hunt/-/tree/main/bughunt/confirmed/hddm/r6-52-rest-ccal-cluster-type-unset Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R6-11 S1 (commit 071fbbb)REST files lose the time error of every TOF pointWhat is wrong. The REST writer saves each TOF point's position, time and energy and skips the time error. REST The code (on GitHub): Fixed: What it does. In a REST file from 1000 events of 2025-01 data, all 6921 TOF points have time error 0; with Plot: BH-89: REST drops the TOF point time error; with the fix every match agrees BH-89. 2761 TOF track matches in the same REST files: the TOF point's time error over the one its match keeps. Top today, bottom fixed; expected 1. Limits: one run. Who is affected.
Who is not. Everything in halld_recon: no code there uses the stored value (it takes fixed or parametrised TOF The fix. Write the value. Files already written can be repaired on reading for almost all points, Grade S1: a value is zero in every REST event with TOF points. It says nothing about physics weight: none was Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-11-rest-tof-point-time-error-dropped/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
|
Build status for this pull request: FAILURE Build log: make_auto-hunt_hddm.log |
R6-32 S2 (commit 911ad57)Every ECAL hit is written twice in converted hit filesWhat is wrong. The code that writes ECAL hits into a converted hit file is pasted twice, so every ECAL hit is The code. The real lines, shortened (on GitHub): What it does (a skim's 88 events, read back; last row: the 2025-01 pass's random-trigger files):
Plot: BH-91: every ECAL hit is written twice, 2138 hits today against 1069 with the fix BH-91. ECAL hits in the file written from 88 skim events of 2025-01 data, today and with the fix. Hatched: exact second copies. Limits: one small skim; per-event numbers in the table. Who is affected.
Who is not. Standard reconstruction from raw data and the reduced (REST) files. The fix. Delete the second copy. Grade S2: the doubling is in the production background files, in every event. Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-32-hddm-writer-ecal-hits-twice/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-40 S3 (commit ea14644)TOF points on paddles 45 and 46 come back from REST files as other paddlesWhat is wrong. A reduced (REST) file packs the two paddle numbers and two statuses of each TOF point into one The code. The writer (on GitHub); the reader divides by the same 45: With the fix, writer and reader use 47: What it does (1000 raw events of a 2025-01 run, written to REST and read back: 6921 TOF points in 918 events):
Plot: BH-537: read back from REST today, no TOF point sits on paddle 45 or 46 BH-537. Paddle 45 comes back as no paddle, 46 as paddle 1. Who is affected.
Who is not. TOF positions, times and energies, the stored track-to-TOF matches, raw-data reconstruction. No The fix. Use 47, with a format mark for old files; their stored positions should allow a repair. Grade S3 (third of four): TOF points read from REST change in 44 of 918 events (4.8%). It says nothing about Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-40-rest-tof-status-base-45/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-43 S3 (commit 678fd44)Tracks read from REST files lose their fit flagWhat is wrong. Each time-based track carries a flag: 0 for a good time-based fit, 1 when the wire-based fit The code. The real lines, shortened (on GitHub): Fixed, two lines added to the reader: What it does. One REST file of run 132404 (2025-01): 918 events, 10342 tracks.
Benchmark reactions: none applies. The benchmark jobs read raw data and never run the REST reader. BH-269. Tracks read from the same REST file today and with the fix, by flag. Who is affected.
Who is not. Reconstruction from raw data, every object the collaboration code builds from REST, and users of the The fix. Read the stored flag back; existing REST files hold it. Grade S3 (third of four levels, S1 the most severe): tracks read from REST change in a minority of events (241 of Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-43-rest-reader-drops-track-flags/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-12a S4 (commit 0d3a667)Reduced (REST) files never store the per-event count of TOF paddle hitsWhat is wrong. Every REST event carries a set of hit counts, one per detector, and the format has a place for the The code. The writer, shortened (on GitHub): Fixed, in the gap: and the reader sets the ECAL count to 0. What it does (REST file of 1000 raw events of a 2025-01 run, 918 events with hit counts): today no event Plot: BH-1052: today 0 of 918 REST events carry the TOF paddle count, with the fix 918 of 918 BH-1052. Limits: one run, 918 events. Who is affected. Anyone who reads the per-event hit counts from REST files, the 2025-01 pass included: the TOF Who is not. Physics quantities: no reconstruction or analysis code uses these two counts. Raw data; no physics The fix. Write the TOF count; set the ECAL count to 0 when reading. Grade S4 (lowest of four): a count absent in every REST event that no code of the reconstruction or simulation Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-12a-rest-hit-statistics-tof-paddles-missing/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-13 S4 (commit b69595c)Reading REST files with stored DIRC results crashes once those files hold DIRC hitsWhat is wrong. When a reduced (REST) file is read, an option chooses whether the DIRC results are recomputed or The code. The real lines, shortened (on GitHub): Fixed: the hits are fetched before the test, and an index past the end of the list is skipped. What it does (REST file of a 2025-01 run, 918 events, holding DIRC match hits): today the reader crashes Plot: BH-1053: today's reader crashes on a file with DIRC match hits; with the fix it reads all 918 events BH-1053. Limits: one file. Who is affected. Analyses that read REST with the DIRC results taken from the file, once REST files hold DIRC Who is not. The default setting (recompute); every REST file written today. No physics benchmark can see it. The fix. Fetch the hits in both modes. It must ship together with the R5-1 fix, or before it. Grade S4 (lowest of four): no file today reaches these lines. If the R5-1 fix ships alone, a job with this Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-13-rest-dirc-nolut-hits-empty-crash/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-46 S4 (commit ef48e31)With several threads, the reader of simulated files shares its first-event setup before it is completeWhat is wrong. The reader of simulated files sets up a few values on the first event it handles: the run number, The code, shortened (on GitHub): Fixed: the other threads wait on a lock until the setup is done: What it does. 1000 simulated events, 16 threads, two runs per side: 1 thread-checker report on these values per BH-1092. Grey: counts outside this defect. Who is affected. Jobs that reconstruct simulated files with several threads: a rare race, with no changed output Who is not. Raw-data reconstruction and REST reading (other readers); one-thread jobs. The fix. Hold the setup under a lock; a first form with a plain lock hung, and this one replaced it. Grade S4 (lowest of four): no output change seen; the worst case, never seen, stops the job. Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-46-hddm-source-init-block-race/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-47 S4 (commit 0c334cb)Every job that writes REST files keeps 144 bytes per event in memory until it ends: the hit-count summary is never freedWhat is wrong. For each event the REST writer asks for a small summary of hit counts per detector, which it writes The code, shortened (on GitHub): Fixed: the flag line goes, so the framework deletes the object after each event. What it does (200 raw events of a 2025-01 run, with a memory checker):
A production-plugin job on 1000 raw events peaks at 4499 MB; the leak of a 100 000-event job is 0.3% of that. BH-267 (version 2). Second row: all memory never freed in the job, for scale. Who is affected. Every reconstruction job that writes REST, production included: a slow growth of memory, Who is not. The contents of REST files and every physics output: no value changes. The fix. Delete the line that disowns the objects. Grade S4 (lowest of four): memory only; no output changes. Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-47-hit-statistics-leak-per-event/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-50 S4 (commit 535e6b2)CCAL photons read from REST files carry zero energy, position and time errorsWhat is wrong. When a CCAL shower is read back from a REST file, the reader copies its energy, position and time The code (shortened; on GitHub): Proposed change: fill it with the reconstruction's constants, in the order the error accessors read it. What it does (one REST file of a 2021 run with the CCAL: 6247 events, 62 CCAL showers in 53 events):
Plot: BH-409: CCAL photon errors read from REST, today and with the fix BH-409. Real data. Limits: one file; the kinematic fit was not run. Who is affected. Analyses of REST files from run periods with the CCAL that use CCAL photons in timing cuts or Who is not. The 2025-01 data (no CCAL); the raw-data reconstruction, which fills the errors itself. The fix. Fill the CCAL error matrix on reading, with the constants the reconstruction's code names. Grade S4 (lowest of four): 53 of 6247 events change, every event with a CCAL shower. No benchmark reaction was Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-50-rest-ccal-shower-zero-covariance/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
R6-52 S4 (commit 1bea97d)CCAL showers read from REST files carry a random cluster type and peak typeWhat is wrong. A CCAL shower has two labels derived from its shower type: whether it sits in a single-peak or The code. The real lines, shortened (on GitHub): The fix derives them as the raw-data reconstruction does: What it does (one REST file of a 2021 run with the CCAL: 6247 events, 62 CCAL showers in 53 events):
Plot: BH-1126: the CCAL cluster and peak type read from REST are leftover memory today BH-1126. Real data. Limits: one file. Who is affected. Anyone who prints CCAL showers from REST or selects on these two labels in their own code. No Who is not. Every result: no reconstruction or analysis step uses the labels. The fix. Set the two labels from the shower type on reading. Grade S4 (lowest of four): 53 of 6247 events change, and only in a printout. No benchmark reaction was found in Full card with plots and the evidence for the code owner: https://pages.jlab.org/halld/auto-hunt/cards/r6-52-rest-ccal-cluster-type-unset/index.html Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
|
These are all real bugs that should be fixed, and the proposed fixes work. I request one change, to R6-40, for backward compatibility with existing REST files. Everything else can go in as it is; I have one optional suggestion for R6-46. What I did. I built this branch on its own, and together with #1235 (R1-18) and the R5-1 commit of #1251, which R6-13 needs. I ran it with frozen CCDB/RCDB copies on three samples:
I compared every result with the in-memory reconstruction of the same events, and with my own independent fixes for the same findings.
R6-40: please change before merging. The reader now decodes A version that needs no format change:
Old files then read exactly as they do now. In new files, only the points on paddles 45 and 46 differ from today's. In the test run, those are 45 of the 6696 points; all 45 come back equal to the reconstruction, and the other 6651 are bit-identical to today's files. R6-46 (optional). The fix is correct, but it takes a process-wide lock on every Not in this PR:
Note: the CI failure above happened before compiling. The test job replaced the Edited: an earlier version of this comment objected to the R6-13 fix. A test with a channel-status table changed after writing showed that the objection was wrong: the reader uses the channel-status table only when |
…or TOF bars 45 and 46 Review of #1245 (requested change): the reader decoded tofStatus in base 47 for every file, so every REST file already written (base 45) read back with wrong paddles or statuses. Now the writer stores exactly today's base-45 value when both bars are <= 44, and 65536 + the base-47 packing otherwise. The largest base-45 value is 44 + 45*44 + 45*45*3 + 45*45*4*3 = 32399, so the reader takes base 47 only for values >= 65536. No format change: old files read as before; in new files only points on bars 45 and 46 differ from today's. Checked by a direct call of the packing: all 35344 combinations (bars 0-46, statuses 0-3) round-trip; all 32400 combinations with bars <= 44 give the same value as today's writer and decode correctly. Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #1245 (optional suggestion): the process-wide static lock was taken on every GetObjects call for the whole job. It is now a member std::recursive_mutex, taken only while a std::atomic<bool> dInitDone is false; the setup block sets dInitDone (release) when it finishes, and later calls skip the lock (acquire). The mutex stays recursive because the block's event->Get calls re-enter GetObjects on the same thread. Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you for the review and the tests. Both changes are now on the branch as two new commits (the earlier commits are unchanged and nothing was force-pushed):
All three changed files pass a syntax-only compile against REST/HDDM headers generated from this branch's schemas. The one remaining error in R6-44, R6-45, R6-14: these were open in our table. We had not built test files for R6-44 and R6-45, and saw no measured effect for R6-14, so they were left out. Your measurements confirm R6-44 and R6-45. If you have commits for them, we would gladly take them, here or in a separate pull request. CI: thanks for the note on Created by Autonomous HallD "auto-hunt" campaign (executed by Claude) |
|
Build status for this pull request: FAILURE Build log: make_auto-hunt_hddm.log |
|
Build status for this pull request: FAILURE Build log: make_auto-hunt_hddm.log |
|
Test status for this pull request: SUCCESS Summary: summary.txt Build log: make_auto-hunt_hddm.log |
|
@DraTeots I just made a small change to the CI scripts for allowing "/" in the PR name |
|
See the temporary branch auto_hunt_working_rtj for what an implementation of the auto_hunt bug fixes would produce, with my recommended amendments. So far I have only propagated the HDDM library fixes. -Richard Jones |
|
Thanks, Dmitry. I reviewed and tested both new commits; both can go in as they are. 0b95f28 R6-40. Tested on the first 1000 events of run 131274, as you suggested:
One small thing: the comment on 5622099 R6-46. The lock with the atomic flag is correct: the setup's writes are visible to every call that sees the flag set, the recursive mutex still covers the block's re-entrant R6-44, R6-45, R6-14. The commits are on the branch
They apply cleanly, in this order, on the current head of this pull request (5622099). In -Richard Jones |
|
A correction to my last comment: please do not add those four commits (6bb42a3, 9172450, bd9f2c7, c1010a1) to this pull request. They are my own changes, not yours, so they should be reviewed on their own. I will open them as a separate pull request after this one is merged, and ask you to review it. That leaves this pull request as it stands (12 commits, head 5622099), and it is ready to merge. I will merge it shortly. -Richard Jones |
rjones30
left a comment
There was a problem hiding this comment.
Approved. All ten fixes are real bugs, and the fixes are correct as they stand on this branch (head 5622099), including the two revisions made after review:
- R6-40: existing REST files read exactly as before, and TOF points on paddles 45 and 46 now survive the round trip.
- R6-46: the first-event setup is locked only until it is complete. Simulated events give identical REST output with 1 and 6 threads.
I built this head and tested it on real data (run 131274), and R6-46 also on simulated events. CI passes.
Thanks, Dmitry.
-Richard Jones
These fixes come from the Hall D bug hunt, an autonomous campaign that read the GlueX software, built a test for every suspect line, and kept only findings confirmed by a measurement: a test run of the program on data or simulation, or a direct call of the code against a known answer. Each commit below fixes one finding and is named by its finding id and grade (S1 most serious, S4 least). Every commit has a comment in this pull request with the finding's card: what is wrong, the code, the measured effect, who is affected and the fix. Full cards with plots are on the campaign pages (JLab login): https://pages.jlab.org/halld/auto-hunt/index.html, by library: https://pages.jlab.org/halld/auto-hunt/libraries.html
Overall gains
10 confirmed bugs fixed in this pull request (S1 1, S2 1, S3 2, S4 6), one commit each, in the order of the commits (most serious first).
How it was tested
Each finding's card says how it was confirmed (a run of the program before and after the fix on the same events, or a direct call of the function). The commits were rebased on the current default branch; every changed source file compiles (syntax check against the release headers). A full build and a physics benchmark of this combination of commits has not been run on the new base.
Created by Autonomous HallD "auto-hunt" campaign (executed by Claude)