aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-05-24 11:27:56 -0400
committertlatorre <tlatorre@uchicago.edu>2019-05-24 11:27:56 -0400
commit2cdd60cb9d723a978ac6698cc999710116e052b5 (patch)
tree666cdfa3a59c480b2f23daa56159a4d90fb4caed /src
parenta7113f015a2c4ebfff68a9020e8d77ec53be1481 (diff)
downloadsddm-2cdd60cb9d723a978ac6698cc999710116e052b5.tar.gz
sddm-2cdd60cb9d723a978ac6698cc999710116e052b5.tar.bz2
sddm-2cdd60cb9d723a978ac6698cc999710116e052b5.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/fit.c4
1 files changed, 2 insertions, 2 deletions
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;