From 99db8e8e14696bfbf812b655d4a9160500afea11 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Fri, 14 Dec 2018 11:52:09 -0600 Subject: switch to using fit_event2() by default This commit updates the fit to use the fit_event2() function which can fit for multi vertex hypotheses. It also uses the QUAD fitter and the Hough transform of the event to seed the fit so the results for 1 particle fits will be slightly different than before. I also fixed a small bug in combinations_with_replacement(). --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc.c') diff --git a/src/misc.c b/src/misc.c index 88e4b77..56760e4 100644 --- a/src/misc.c +++ b/src/misc.c @@ -726,7 +726,7 @@ void combinations_with_replacement(size_t n, size_t r, size_t *result, size_t *l size_t i, j; size_t *tmp; - tmp = malloc(sizeof(size_t)*n*ipow(r,n)); + tmp = malloc(sizeof(size_t)*n*ipow(n,r)); product(n,r,tmp); -- cgit