-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implementation of A/E fit background function with two EMGs #77
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #77 +/- ##
==========================================
+ Coverage 15.11% 21.85% +6.73%
==========================================
Files 32 33 +1
Lines 2680 2970 +290
==========================================
+ Hits 405 649 +244
- Misses 2275 2321 +46 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes, then we can merge.
src/peakshapes.jl
Outdated
μ::Real, σ::Real, n::Real, background::Real, δ::Real, | ||
μ2::Real, σ2::Real, background2::Real, δ2::Real | ||
) | ||
return n * gauss_pdf(x, μ, σ) + background * ex_gauss_pdf(-x, -μ, σ, δ) + background2 * ex_gauss_pdf(-x, -μ2, σ2, δ2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's catch also here the case for sigma
= 0.0 similar to the energy peakshape. Otherwise we might run again into numerical instabilites.
changed so far:
p = plot(report, x_label="A/E")
current code to obtain Compton band histogram (when 'filtered_aoe' is the array with all the filtered aoe values of the CBs):
(binsize 0.05 and interval [-20,3] is variable)