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

Add observables with amplitude corrected by baseline #152

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

JPorron
Copy link
Contributor

@JPorron JPorron commented Jan 27, 2025

JPorron Ok: 41 Powered by Pull Request Badge

Up to this, the PeaksFinderProcess uses the ADC amplitude of the peaks, but does not correct it substracting the baseline. Some changes are made to keep track of the baseline of each signal and substract it to the peak´s amplitude in order to better reconstruct the energy deposited.

Before:

image
image
Fig 1: Observables for a given event before the change.

Now, the event is unaltered, but 2 new observables are added ("peaksAmplitudeBaseLineCorrectedADC" and "peaksAmplitudeBaseLineCorrectedADCSum"):

image
Fig 2: Observables after the change.

These new observables take into account the baseline of each signal, calculated as the PeaksFinderProcess does for other capabilities:

image
Fig 3: Calculation of the baseline for each signal.

As we can see, the "peaksAmplitudeBaseLineCorrectedADC" substracts the corresponding baseline:
3578-254=3324
3262-250=3012

Also, the "peaksEnergy", that uses the calibration factor, is now calculated with the corrected amplitude.

@JPorron JPorron requested a review from mariajmz January 27, 2025 13:59
@JPorron JPorron merged commit e0645dc into master Jan 31, 2025
64 checks passed
@JPorron JPorron deleted the jporron-PeaksFinder-addBaseLineCorrectedPeak branch January 31, 2025 09:59
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