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:
Get the number of counts after a AoE cut value `aoe_cut` for a given `peak` and `window` size while performing a peak fit with fixed position. The number of counts is determined by fitting the peak with a pseudo prior for the peak position.
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.
75
114
The algorhithm utilizes a root search algorithm to find the cut value with a relative tolerance of `rtol`.
115
+
116
+
# Arguments
117
+
* 'aoe': A/E
118
+
* 'e': Calibrated energies
119
+
120
+
# Keywords
121
+
* 'dep': DEP energies
122
+
* 'window': Data window in energy
123
+
* 'dep_sf': Surrival fraction of DEP energies
124
+
* 'cut_search_interval': Data interval to search for a cut value
125
+
* 'rtol': Relative tolerance
126
+
* 'bin_width_window': Specified window around the peak in which the bin algorithm is applied
Get the surrival 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.
163
+
164
+
# Arguments
165
+
* 'aoe': A/E
166
+
* 'e': Calibrated energies
167
+
* 'peaks': Data range of several peaks
168
+
* 'peak_names': Name of the peak
169
+
* 'windows': Energy data window
170
+
* 'aoe_cut': A/E cut value
171
+
172
+
# Keywords
173
+
* 'Uncertainty':
174
+
* 'bin_width_window': Specified window around the peak where the binning algorithm is applied to
Get the surrival 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.
142
213
214
+
# Arguments
215
+
* 'aoe': A/E
216
+
* 'e': Calibrated energies
217
+
* 'peak': Peak name
218
+
* 'window': Data window in energy
219
+
* 'aoe_cut': A/E cut value
220
+
221
+
# Keywords
222
+
* 'Uncertainty': Uncertainty
223
+
* 'lq_mode': Inverts the cut logic
224
+
* 'low_e_tail': Low energy tail
225
+
* 'bin_width_window': Specified window around the peak to apply the binning algorithm
Perform a fit of the peakshape to the data in `h` using the initial values in `ps` while using the `f_aoe_compton` function consisting of a gaussian SSE peak and a step like background for MSE events.
158
173
174
+
# Arguments
175
+
* 'h': Histogram data
176
+
* 'ps': peak statistics
177
+
178
+
# Keywords
179
+
* 'uncertainty': Fit uncertainty
180
+
* 'pseudo_prior': Initial guess for histogram parameters
181
+
* 'fit_func': Fit function name
182
+
* 'background_center': Center of background fit curve
183
+
* 'fixed_position':
184
+
159
185
# Returns
160
186
* `result`: NamedTuple of the fit results containing values and errors
161
187
* `report`: NamedTuple of the fit report which can be plotted
0 commit comments