From f06d6c8c5a16f1305a855e640a784983ab2a2474 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 4 Sep 2018 15:48:09 -0500 Subject: update fit to guess energy, direction, and t0 This commit updates the initial guess for the energy using a simple heuristic of ~6 hits/MeV. I also updated the initial phase where we do a bunch of "quick" minimizations to loop over a series of starting positions and automatically calculate the approximate direction and t0 for the event. --- src/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/path.c') diff --git a/src/path.c b/src/path.c index a15cba6..80bba50 100644 --- a/src/path.c +++ b/src/path.c @@ -8,7 +8,7 @@ #include /* for malloc(), calloc(), etc. */ #include "misc.h" -#define N 100 +#define N 1000 static double foo(double s, double range, double theta0, int k) { -- cgit