From 2cdd60cb9d723a978ac6698cc999710116e052b5 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Fri, 24 May 2019 11:27:56 -0400 Subject: don't do fast fit during quick minimization phase When plotting the likelihood function I realized that the fast likelihood calculation was *very* noisy due to the way I calculated the shower and delta ray charge. Although it works well for single particles, it is not suitable for distinguishing which seed is the best when doing multi particle fits. Eventually I may be able to fix this, but for now we just do the normal likelihood calculation. I also decreased the number of shower points from 100 -> 10 to speed things up. --- src/fit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fit.c b/src/fit.c index 2e2fee3..f070792 100644 --- a/src/fit.c +++ b/src/fit.c @@ -5336,8 +5336,8 @@ int fit_event2(event *ev, double *xopt, double *fmin, int *id, size_t n, double /* First we do a set of "quick" minimizations to try and start the * minimizer close to the minimum. */ fpars.dx = 1.0; - fpars.ns = 100; - fpars.fast = 1; + fpars.ns = 10; + fpars.fast = 0; fpars.hit_only = 0; fpars.print = 0; fpars.charge_only = 0; -- cgit