Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Pedestal Subtraction #4

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Fixed Pedestal Subtraction #4

merged 4 commits into from
Sep 17, 2024

Conversation

aeoranday
Copy link
Member

@aeoranday aeoranday commented Sep 11, 2024

I've added a new pedestal subtraction processor that estimates the pedestal and fixes it. The period for estimation is configurable with start_period and counts the number of time samples before fixing the pedestal (512 ns / tick).

I've also squashed a bug in AVXFrugalPedestalSubtractProcessor.cpp that resulted in a never-decreasing pedestal estimate and solves a problem we were seeing in the TP rates.

To avoid the initial garbage TPs, I've also set the starting pedestal value to the 14-bit max. The first TPs will still be nonsensical, but they will start popping up at a more controlled rate. A delayed TP sending can be implemented in fdreadoutlibs to fully control these bad TPs.

This was tested on a test session and reviewing the resulting TPs' ADC peak.

Related PRs

DUNE-DAQ/appmodel#123

Copy link
Contributor

@glehmannmiotto glehmannmiotto left a comment

Choose a reason for hiding this comment

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

tested on CRP4/5

@eflumerf eflumerf merged commit 8c7e2d7 into develop Sep 17, 2024
2 checks passed
@eflumerf eflumerf deleted the aeo/fixed-pedestal branch September 17, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants