aboutsummaryrefslogtreecommitdiff
path: root/src/scattering.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-09-10 11:16:41 -0500
committertlatorre <tlatorre@uchicago.edu>2018-09-10 11:16:41 -0500
commitc8bff440e7848a33f369dff1ce11f726cecbbe20 (patch)
tree193f0c1ee91ad3fdf154f4917836b22534b1c840 /src/scattering.h
parent3228ad9f5a57b8e6b1e3c4cdcefce0536c012b92 (diff)
downloadsddm-c8bff440e7848a33f369dff1ce11f726cecbbe20.tar.gz
sddm-c8bff440e7848a33f369dff1ce11f726cecbbe20.tar.bz2
sddm-c8bff440e7848a33f369dff1ce11f726cecbbe20.zip
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.
Diffstat (limited to 'src/scattering.h')
-rw-r--r--src/scattering.h1
1 files changed, 1 insertions, 0 deletions
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