diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-11-14 10:53:56 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-11-14 10:53:56 -0600 |
commit | c604b9d5b91a17175bac88d27b53193d98e1d332 (patch) | |
tree | c53c15e2b3830d9b1f20103f454984ad7b6192a0 /src/likelihood.c | |
parent | 95f95be5f87f0fa4f5e9f7c8568dbb23a843cff6 (diff) | |
download | sddm-c604b9d5b91a17175bac88d27b53193d98e1d332.tar.gz sddm-c604b9d5b91a17175bac88d27b53193d98e1d332.tar.bz2 sddm-c604b9d5b91a17175bac88d27b53193d98e1d332.zip |
fix some compiler warnings
Diffstat (limited to 'src/likelihood.c')
-rw-r--r-- | src/likelihood.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/likelihood.c b/src/likelihood.c index ca0b2b6..ca73902 100644 --- a/src/likelihood.c +++ b/src/likelihood.c @@ -165,7 +165,7 @@ void particle_free(particle *p) static double get_expected_charge_shower(double *pos, double *dir, double *pmt_pos, double *pmt_normal, double r, double *reflected, double n_d2o, double n_h2o, double l_d2o, double l_h2o, double alpha, double beta, double rad) { - double pmt_dir[3], cos_theta, n, omega, R, f, f_reflec, cos_theta_pmt, absorption_length_h2o, absorption_length_d2o, absorption_length_acrylic, l_acrylic, theta_pmt, charge; + double pmt_dir[3], cos_theta, omega, f, f_reflec, cos_theta_pmt, absorption_length_h2o, absorption_length_d2o, absorption_length_acrylic, l_acrylic, theta_pmt, charge; SUB(pmt_dir,pmt_pos,pos); @@ -182,14 +182,6 @@ static double get_expected_charge_shower(double *pos, double *dir, double *pmt_p omega = get_solid_angle_fast(pos,pmt_pos,pmt_normal,r); - R = NORM(pos); - - if (R <= AV_RADIUS) { - n = n_d2o; - } else { - n = n_h2o; - } - theta_pmt = acos(-cos_theta_pmt); f_reflec = get_weighted_pmt_reflectivity(theta_pmt); f = get_weighted_pmt_response(theta_pmt); |