You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package provides functionality to fit probability distribution functions to histograms.
4
+
5
+
This package is part of the [LegendJuliaRegistry](https://github.com/legend-exp/LegendJuliaRegistry), meaning that you can download the package as follows:
fixed_position::Bool=true, fit_func::Symbol=:gamma_def, uncertainty::Bool=true) where T<:Unitful.Energy{<:Real}
41
+
28
42
Get the AoE cut value for a given `dep` and `window` size while performing a peak fit with fixed position. The AoE cut value is determined by finding the cut value for which the number of counts after the cut is equal to `dep_sf` times the number of counts before the cut.
29
43
The algorhithm utilizes a root search algorithm to find the cut value with a relative tolerance of `rtol`.
44
+
45
+
# Arguments
46
+
* `aoe`: A/E
47
+
* `e`: Calibrated energies
48
+
49
+
# Keywords
50
+
* `dep`: DEP energies
51
+
* `window`: Data window in energy
52
+
* `dep_sf`: Survival fraction of DEP energies
53
+
* `rtol`: Relative tolerance
54
+
* `maxiters`: Maximum iterations
55
+
* `sigma_high_sided`: Fixed upper limit cut
56
+
* `cut_search_interval`: Data interval to search for a cut value
57
+
* `bin_width_window`: Specified window around the peak in which the bin algorithm is applied
Get the survival fraction of a peak after a AoE cut value `aoe_cut` for a given `peak` and `window` size while performing a peak fit with fixed position.
130
+
131
+
# Arguments
132
+
* `aoe`: A/E
133
+
* `e`: Calibrated energies
134
+
* `peaks`: Data range of several peaks
135
+
* `peak_names`: Name of the peak
136
+
* `windows`: Energy data window
137
+
* `aoe_cut`: A/E cut value
138
+
139
+
# Keywords
140
+
* `uncertainty`: Uncertainty
141
+
* `inverted_mode`: If set to false: A/E analysis. If True: LQ analysis
142
+
* `bin_width_window`: Specified window around the peak where the binning algorithm is applied to
uncertainty::Bool=true, inverted_mode::Bool=false, bin_width_window::T=2.0u"keV", sigma_high_sided::Unitful.RealOrRealQuantity=Inf*unit(first(aoe)), fit_func::Symbol=:gamma_def) where T<:Unitful.Energy{<:Real}
180
+
uncertainty::Bool=true, inverted_mode::Bool=false, bin_width_window::T=2.0u"keV", sigma_high_sided::Unitful.RealOrRealQuantity=Inf*unit(first(aoe)), fit_func::Symbol=:gamma_def) where T<:Unitful.Energy{<:Real}
129
181
130
182
Get the survival fraction of a peak after a AoE cut value `aoe_cut` for a given `peak` and `window` size while performing a peak fit with fixed position.
131
183
184
+
# Arguments
185
+
* `aoe`: A/E
186
+
* `e`: Calibrated energies
187
+
* `peak`: Peak position
188
+
* `window`: Data window in energy
189
+
* `aoe_cut`: A/E cut value
190
+
191
+
# Keywords
192
+
* `Uncertainty`: Uncertainty
193
+
* `lq_mode`: Inverts the cut logic
194
+
* `low_e_tail`: Low energy tail
195
+
* `bin_width_window`: Specified window around the peak to apply the binning algorithm
0 commit comments