From f93d19b96093cdd498639868700e0f722b7eb9b0 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 28 Nov 2018 09:46:52 -0600 Subject: update sno_charge.c This commit adds lots of comments to sno_charge.c and makes a couple of other changes: - use interp1d() instead of the GSL interpolation routines - increase MAX_PE to 100 I increased MAX_PE because I determined that it had a rather large impact on the likelihood function for 500 MeV electrons. This unfortunately slows down the initialization by a lot. I think I could speed this up by convolving the single PE charge distribution with a gaussian *before* convolving the charge distributions to compute the charge distributions for multiple PE. --- src/fit.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/fit.c') diff --git a/src/fit.c b/src/fit.c index 23eab74..0634116 100644 --- a/src/fit.c +++ b/src/fit.c @@ -5619,7 +5619,6 @@ int main(int argc, char **argv) end: free_interpolation(); - free_charge(); pmt_response_free(); db_free(db); @@ -5632,7 +5631,6 @@ end: err: free_interpolation(); - free_charge(); pmt_response_free(); db_free(db); -- cgit