From 0f84f790992121ee7a4fabd96ebcd9624a4a8028 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Thu, 20 Sep 2018 14:55:27 -0500 Subject: delete unused variable distance --- src/muon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/muon.c b/src/muon.c index ae9c08c..09f1dd1 100644 --- a/src/muon.c +++ b/src/muon.c @@ -258,14 +258,12 @@ double get_dEdx(double T, double rho) double get_expected_charge(double x, double T, double theta0, double *pos, double *dir, double *pmt_pos, double *pmt_normal, double r) { - double pmt_dir[3], cos_theta, n, wavelength0, omega, E, p, beta, z, R, f, cos_theta_pmt, absorption_length_h2o, absorption_length_d2o, l_h2o, l_d2o, distance; + double pmt_dir[3], cos_theta, n, wavelength0, omega, E, p, beta, z, R, f, cos_theta_pmt, absorption_length_h2o, absorption_length_d2o, l_h2o, l_d2o; z = 1.0; SUB(pmt_dir,pmt_pos,pos); - distance = NORM(pmt_dir); - normalize(pmt_dir); cos_theta_pmt = DOT(pmt_dir,pmt_normal); -- cgit