aboutsummaryrefslogtreecommitdiff
path: root/src/scattering.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-02 13:31:18 -0400
committertlatorre <tlatorre@uchicago.edu>2019-06-02 13:31:18 -0400
commitcc00800b0e55ab5a5d892b03e735302eb0c06d47 (patch)
tree24f19717f241fc4393f227b06ab392dea5643749 /src/scattering.h
parent7fe82b13dc145c85dee8108299a1db54bb26b0c3 (diff)
downloadsddm-cc00800b0e55ab5a5d892b03e735302eb0c06d47.tar.gz
sddm-cc00800b0e55ab5a5d892b03e735302eb0c06d47.tar.bz2
sddm-cc00800b0e55ab5a5d892b03e735302eb0c06d47.zip
update get_probability() to take sin(theta) as an argument
Since we already calculate sin(theta) in get_expected_charge() there's no reason to calculate it again in get_probability(). This *may* already be optimized out by the compiler.
Diffstat (limited to 'src/scattering.h')
-rw-r--r--src/scattering.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scattering.h b/src/scattering.h
index 265f653..43e59f7 100644
--- a/src/scattering.h
+++ b/src/scattering.h
@@ -23,7 +23,7 @@
#define MAX_THETA0 1.0
void init_interpolation(void);
-double get_probability(double beta, double cos_theta, double theta0);
+double get_probability(double beta, double cos_theta, double sin_theta, double theta0);
double get_probability2(double beta);
double get_weighted_quantum_efficiency(void);
void free_interpolation(void);