aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-12-14 11:52:09 -0600
committertlatorre <tlatorre@uchicago.edu>2018-12-14 11:52:09 -0600
commit99db8e8e14696bfbf812b655d4a9160500afea11 (patch)
tree3f4a1954eda87e79e7c9bd5c8f7ea0fd976d3743 /src/misc.c
parent50a729145835d7fc88b81b713d94a894ebee378b (diff)
downloadsddm-99db8e8e14696bfbf812b655d4a9160500afea11.tar.gz
sddm-99db8e8e14696bfbf812b655d4a9160500afea11.tar.bz2
sddm-99db8e8e14696bfbf812b655d4a9160500afea11.zip
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().
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
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);