average_bias_of_charge_resolution#

protopipe.benchmarks.average_bias_of_charge_resolution(x_bin_edges, y_bin_edges, hist, min_phe=50, max_phe=500)[source]#

Calculate the average bias of charge resolution.

Default limits are in true photoelectrons and chosen to be safely away from saturation and NSB noise.

Parameters
x_bin_edges1D array

Bin edges in true photoelectrons.

y_bin_edges1D array

Bin edges in reconstructed/true photoelectrons.

hist2D array

The full histogram of reconstructed/true against true photoelectrons.

Returns
biasfloat

Average bias of charge resolution from 50 to 500 true photoelectrons.