Skip to content

Commit

Permalink
Make sure CDF goes to 1 smoothly
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningSE committed Sep 12, 2024
1 parent c3ad03f commit d4b8841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuse/plugins/pmt_and_daq/pmt_response_and_daq.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def init_pmt_current_templates(self):

# Interpolate on cdf ensures that each spe pulse would sum up to 1 pe*sample duration^-1
pe_pulse_function = interp1d(
self.pe_pulse_ts, np.cumsum(self.pe_pulse_ys), bounds_error=False, fill_value=(0, 1)
self.pe_pulse_ts, np.cumsum(self.pe_pulse_ys)/np.sum(self.pe_pulse_ys), bounds_error=False, fill_value=(0, 1)
)

# Samples are always multiples of sample_duration
Expand Down

0 comments on commit d4b8841

Please sign in to comment.