aboutsummaryrefslogtreecommitdiff
path: root/src/likelihood.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-02 16:22:38 -0400
committertlatorre <tlatorre@uchicago.edu>2019-06-02 16:22:38 -0400
commit7d9aeb6e2b711bd34a7e1d30ad0ef340257c1725 (patch)
tree31e84e8b24d5d7537b50bb4ecd08b00587c0b336 /src/likelihood.c
parent57ea51bdd72dfc07343acb5a0e42d476eb2eb547 (diff)
downloadsddm-7d9aeb6e2b711bd34a7e1d30ad0ef340257c1725.tar.gz
sddm-7d9aeb6e2b711bd34a7e1d30ad0ef340257c1725.tar.bz2
sddm-7d9aeb6e2b711bd34a7e1d30ad0ef340257c1725.zip
fast_sqrt() -> sqrt()
No reason to use fast_sqrt() in get_theta0_min() since the argument isn't guaranteed to be between 0 and 1.
Diffstat (limited to 'src/likelihood.c')
-rw-r--r--src/likelihood.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/likelihood.c b/src/likelihood.c
index 950b646..696b52a 100644
--- a/src/likelihood.c
+++ b/src/likelihood.c
@@ -542,7 +542,7 @@ static void get_expected_charge_shower(particle *p, double *pos, double *dir, in
* effectively averages across the face of a PMT. */
double get_theta0_min(double R, double r, double sin_theta_pmt)
{
- return fast_acos((R-r*sin_theta_pmt)/fast_sqrt(r*r + R*R - 2*r*R*sin_theta_pmt));
+ return fast_acos((R-r*sin_theta_pmt)/sqrt(r*r + R*R - 2*r*R*sin_theta_pmt));
}
static void get_expected_charge(double beta, double theta0, double *pos, double *dir, int pmt, double *q, double *reflected, double *t)