aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-08-28 10:39:36 -0500
committertlatorre <tlatorre@uchicago.edu>2018-08-28 10:39:36 -0500
commitebc95aa65925b06ce06c9db2791d8143448f2643 (patch)
treec1f602a360e8d770500241b3848a6e1a494317b2 /src/test.c
parentac721f37eb1b14ec91dbb14450752cb240a721cf (diff)
downloadsddm-ebc95aa65925b06ce06c9db2791d8143448f2643.tar.gz
sddm-ebc95aa65925b06ce06c9db2791d8143448f2643.tar.bz2
sddm-ebc95aa65925b06ce06c9db2791d8143448f2643.zip
add path to the likelihood fit
This commit updates the likelihood fit to use the KL path expansion. Currently, I'm just using one coefficient for the path in both x and y.
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index 3ef6531..baf0914 100644
--- a/src/test.c
+++ b/src/test.c
@@ -342,6 +342,7 @@ int test_path(char *err)
double pos[3], dir[3];
double E, mom, beta;
double s;
+ double theta0;
T0 = 1.0;
range = 1.0;
@@ -371,7 +372,7 @@ int test_path(char *err)
t_expected = s/(beta*SPEED_OF_LIGHT);
- path_eval(p,s,pos,dir,&T,&t);
+ path_eval(p,s,pos,dir,&T,&t,&theta0);
for (k = 0; k < 3; k++) {
if (!isclose(pos[k], pos_expected[k], 1e-9, 1e-9)) {