From c8bff440e7848a33f369dff1ce11f726cecbbe20 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 10 Sep 2018 11:16:41 -0500 Subject: add a fast likelihood function This commit adds a fast function to calculate the expected number of PE at a PMT without numerically integrating over the track. This calculation is *much* faster than integrating over the track (~30 ms compared to several seconds) and so we use it during the "quick" minimization phase of the fit to quickly find the best position. --- src/scattering.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scattering.h') diff --git a/src/scattering.h b/src/scattering.h index f3a38d8..308f8ef 100644 --- a/src/scattering.h +++ b/src/scattering.h @@ -3,6 +3,7 @@ void init_interpolation(void); double get_probability(double beta, double cos_theta, double theta0); +double get_probability2(double beta); void free_interpolation(void); #endif -- cgit