From f23450aa8b225fc38a3fdbf9d9db489f4aba7158 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 25 Sep 2018 10:26:23 -0500 Subject: update indirect scattering PDF start time Currently the PDF for scattered light is modelled as a flat distribution starting at some time t. Previously I was using the mean hit time for all PMTs, however this should really be a flat distribution in the time *residual* after the main peak. Therefore, the PDF now starts at the estimated time for direct photons. --- 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 81331f9..ef6622d 100644 --- a/src/likelihood.c +++ b/src/likelihood.c @@ -495,7 +495,7 @@ double nll_muon(event *ev, double T0, double *pos, double *dir, double t0, doubl if (ev->pmt_hits[i].hit) { for (j = 1; j < MAX_PE; j++) { - logp[j] = log(pq(ev->pmt_hits[i].qhs,j)) - mu[i] + j*log_mu - lnfact(j) + log_pt(ev->pmt_hits[i].t, j, mu_noise, mu_indirect, &mu_direct[i], 1, &ts[i], tmean, PMT_TTS); + logp[j] = log(pq(ev->pmt_hits[i].qhs,j)) - mu[i] + j*log_mu - lnfact(j) + log_pt(ev->pmt_hits[i].t, j, mu_noise, mu_indirect, &mu_direct[i], 1, &ts[i], ts[i], PMT_TTS); if (j == 1 || logp[j] > max_logp) max_logp = logp[j]; if (logp[j] - max_logp < MIN_RATIO*ln(10)) { -- cgit