diff options
| author | tlatorre <tlatorre@uchicago.edu> | 2018-09-04 15:48:09 -0500 |
|---|---|---|
| committer | tlatorre <tlatorre@uchicago.edu> | 2018-09-04 15:48:09 -0500 |
| commit | f06d6c8c5a16f1305a855e640a784983ab2a2474 (patch) | |
| tree | f37b33b02da5aeec2c0688b383e11a0bd97d9798 /src/path.c | |
| parent | 8dacac2a644394ed529204ca9d22a89cce53ae80 (diff) | |
| download | sddm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
