diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-10-01 16:11:14 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-10-01 16:11:14 -0500 |
commit | 92947a3afec0d29db2038bc5d58e013ee8a16ef1 (patch) | |
tree | 78c4b2b71e3449b4d0930e7ef06cffd0fcffeac8 /src/likelihood.c | |
parent | 6e3af3bb59c729bbcfa1126a6c05694c52e21616 (diff) | |
download | sddm-92947a3afec0d29db2038bc5d58e013ee8a16ef1.tar.gz sddm-92947a3afec0d29db2038bc5d58e013ee8a16ef1.tar.bz2 sddm-92947a3afec0d29db2038bc5d58e013ee8a16ef1.zip |
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).
Diffstat (limited to 'src/likelihood.c')
-rw-r--r-- | src/likelihood.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |