aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/likelihood.c5
-rw-r--r--src/likelihood.h3
2 files changed, 2 insertions, 6 deletions
diff --git a/src/likelihood.c b/src/likelihood.c
index a7902c1..45274b7 100644
--- a/src/likelihood.c
+++ b/src/likelihood.c
@@ -1084,10 +1084,7 @@ double nll(event *ev, vertex *v, size_t n, double dx, double dx_shower, int fast
mu_indirect_total = 0.0;
for (j = 0; j < n; j++) {
- if (v[j].id == IDP_E_MINUS || v[j].id == IDP_E_PLUS)
- mu_indirect_total += mu_indirect[j]*CHARGE_FRACTION_ELECTRON/10000.0;
- else
- mu_indirect_total += mu_indirect[j]*CHARGE_FRACTION_MUON/10000.0;
+ mu_indirect_total += mu_indirect[j]*CHARGE_FRACTION/10000.0;
}
/* Compute the expected number of photons reaching each PMT by adding up
diff --git a/src/likelihood.h b/src/likelihood.h
index de12f7c..691a606 100644
--- a/src/likelihood.h
+++ b/src/likelihood.h
@@ -46,8 +46,7 @@
#define MIN_RATIO_FAST -2
/* The fraction of reflected light which is detected. */
-#define CHARGE_FRACTION_ELECTRON 0.4
-#define CHARGE_FRACTION_MUON 0.5
+#define CHARGE_FRACTION 0.4
/* Dark rate of the PMTs (Hz).
*