aboutsummaryrefslogtreecommitdiff
path: root/src/likelihood.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/likelihood.c')
-rw-r--r--src/likelihood.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/likelihood.c b/src/likelihood.c
index eb2eb94..40261f9 100644
--- a/src/likelihood.c
+++ b/src/likelihood.c
@@ -901,7 +901,10 @@ double nll_muon(event *ev, int id, double T0, double *pos, double *dir, double t
particle_free(p);
mu_noise = DARK_RATE*GTVALID*1e-9;
- mu_indirect *= CHARGE_FRACTION/10000.0;
+ if (id == IDP_E_MINUS || id == IDP_E_PLUS)
+ mu_indirect *= CHARGE_FRACTION_ELECTRON/10000.0;
+ else
+ mu_indirect *= CHARGE_FRACTION_MUON/10000.0;
/* Compute the expected number of photons reaching each PMT by adding up
* the contributions from the noise hits and the direct, indirect, and