aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-09-04 15:48:09 -0500
committertlatorre <tlatorre@uchicago.edu>2018-09-04 15:48:09 -0500
commitf06d6c8c5a16f1305a855e640a784983ab2a2474 (patch)
treef37b33b02da5aeec2c0688b383e11a0bd97d9798 /src/path.c
parent8dacac2a644394ed529204ca9d22a89cce53ae80 (diff)
downloadsddm-f06d6c8c5a16f1305a855e640a784983ab2a2474.tar.gz
sddm-f06d6c8c5a16f1305a855e640a784983ab2a2474.tar.bz2
sddm-f06d6c8c5a16f1305a855e640a784983ab2a2474.zip
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.
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
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 <stdlib.h> /* for malloc(), calloc(), etc. */
#include "misc.h"
-#define N 100
+#define N 1000
static double foo(double s, double range, double theta0, int k)
{