Skip to content

feat: replace loop with map lookup - #1323

Merged
baltzell merged 4 commits into
developmentfrom
decodering-lookups-4
Jul 9, 2026
Merged

feat: replace loop with map lookup#1323
baltzell merged 4 commits into
developmentfrom
decodering-lookups-4

Conversation

@baltzell

@baltzell baltzell commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

and breakout into smaller methods

@baltzell baltzell changed the title replace loop with map lookup feat: replace loop with map lookup Jun 18, 2026
@baltzell baltzell added the speed label Jun 18, 2026
@baltzell
baltzell marked this pull request as ready for review June 18, 2026 22:56
@baltzell
baltzell marked this pull request as draft June 18, 2026 23:11
@baltzell
baltzell removed the request for review from raffaelladevita June 18, 2026 23:11
@baltzell
baltzell marked this pull request as ready for review June 21, 2026 01:40
@baltzell
baltzell force-pushed the decodering-lookups-4 branch 3 times, most recently from a565be7 to a18e9e9 Compare June 25, 2026 23:26
@baltzell
baltzell force-pushed the decodering-lookups-4 branch 3 times, most recently from cad5e11 to ae6bc4f Compare July 6, 2026 17:24
@baltzell
baltzell force-pushed the decodering-lookups-4 branch from 44b2622 to 4aacfdb Compare July 8, 2026 16:34
@baltzell
baltzell requested a review from raffaelladevita July 8, 2026 16:34
@baltzell
baltzell merged commit b70b7f0 into development Jul 9, 2026
22 checks passed
@baltzell
baltzell deleted the decodering-lookups-4 branch July 9, 2026 21:25
c-dilks pushed a commit that referenced this pull request Jul 23, 2026
…/fadc config (#1358)

PR #1323 replaced the per-detector `fitterTables` loop in
`DetectorEventDecoder.fitPulses` with a direct table lookup and, in doing so,
dropped the `hasEntryByHash(hash)` guard that previously protected the
`nsa`/`nsb`/`tet`/`pedestal` reads. Because `IndexedTable.getIntValueByHash`
does not null-check its internal map lookup, a decoded ADC hit whose
`(crate,slot,channel)` is present in `/daq/tt/<det>` but absent from the
corresponding `/daq/fadc/<det>` table now unboxes a null `Integer` and throws
`NullPointerException` on every such hit.

Restore the guard: skip channels that have no FADC config entry, matching the
pre-#1323 (14.1.1) behavior.

Reproduced on RG-L run 23061: `/daq/tt/ltcc` maps ADC channel
(crate 19, slot 18, chan 150) to LTCC sector 4, but `/daq/fadc/ltcc` has no
row for it, so 1999/2000 decoded events threw NPE with 14.1.2. With the guard
restored the same 2000 events decode cleanly (0 NPE).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants