diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-11-17 12:57:47 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-11-17 12:57:47 -0600 |
commit | 497e627419d4d57ef5279e447509aacfcb1e9694 (patch) | |
tree | efc70d0a74bf31ab47a802263c301d9082149127 /src/vector.h | |
parent | 7cb12a69eb94eafce80e05efe86716772b023bcd (diff) | |
download | sddm-497e627419d4d57ef5279e447509aacfcb1e9694.tar.gz sddm-497e627419d4d57ef5279e447509aacfcb1e9694.tar.bz2 sddm-497e627419d4d57ef5279e447509aacfcb1e9694.zip |
add guess_time() function to approximate the PMT hit time
This function is only used when the expected number of photons reaching a PMT
is *very* small. In this case, we still need to estimate the PMT hit time PDF
for indirect light which is modelled as a flat distribution starting at the
time where the PMT is most likely to be hit from direct light. Since we compute
the most likely time for a PMT to be hit from direct light by computing the
integral of the expected charge times the time and then dividing by the total
charge, when the total charge is very small this can introduce large errors.
Note that this code already existed but it was computed in the likelihood
function. This commit just moves it to its own function to make things look
nicer.
Diffstat (limited to 'src/vector.h')
0 files changed, 0 insertions, 0 deletions