From 92947a3afec0d29db2038bc5d58e013ee8a16ef1 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 1 Oct 2018 16:11:14 -0500 Subject: loop over all normal PMTs when calculating the expected number of photons Previously we ignored PMTs which were flagged when computing the expected number of PE for each PMT, but since we calculate the amount of reflected light here we need to include even PMTs which are offline (since they still reflect light). --- src/likelihood.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/likelihood.c') diff --git a/src/likelihood.c b/src/likelihood.c index daad9cf..8b91f65 100644 --- a/src/likelihood.c +++ b/src/likelihood.c @@ -390,7 +390,7 @@ double nll_muon(event *ev, double T0, double *pos, double *dir, double t0, doubl mu_indirect = 0.0; for (i = 0; i < MAX_PMTS; i++) { - if (ev->pmt_hits[i].flags || pmts[i].pmt_type != PMT_NORMAL) continue; + if (pmts[i].pmt_type != PMT_NORMAL) continue; params.i = i; -- cgit