Skip to content

ATWD/FADC charge distribution peaks using numba#36

Open
mjlarson wants to merge 24 commits intomainfrom
mlarson/fadc_charge_updates
Open

ATWD/FADC charge distribution peaks using numba#36
mjlarson wants to merge 24 commits intomainfrom
mlarson/fadc_charge_updates

Conversation

@mjlarson
Copy link
Copy Markdown

@mjlarson mjlarson commented Feb 17, 2026

Update the charge checks to use a njit function on a np.asarray(I3RecoPulseSeriesMap) to speed up the full detector extraction.

There's some wasted space here since I need to put everything into an ndarray using string/om indexing. I'm using a shape=(87, 61, 200) array here for both ATWD and FADC. This leaves us with some wasted space with string/om=0, but makes indexing a bit easier to keep track of and only gives us (87+61-1) * (200 bins) = 117 kb waste with np.float32.

There are two plotting scripts included here that give a bit of code for making the ATWD and FADC charge histograms for a single run and the percent difference between the two as a function of either time or run number. Three partial-run test files are included for the plotting demo.

@mjlarson mjlarson requested a review from briedel February 17, 2026 06:25
@mjlarson mjlarson marked this pull request as ready for review February 17, 2026 06:25
@mjlarson
Copy link
Copy Markdown
Author

mjlarson commented Feb 17, 2026

image

Example of the kind of plot that can be made for future monitoring.

@mjlarson mjlarson force-pushed the mlarson/fadc_charge_updates branch from a9c6ab3 to 016ccff Compare February 18, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants