diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-11-05 09:28:08 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-11-05 09:28:08 -0600 |
commit | cedfeef17c0924360ad0c7fb911ac5dae6e01146 (patch) | |
tree | 2fc0c28be9d3e576caf44859d23fe1d5b0d20b35 /src/pmt_response.c | |
parent | cd9a037c2c4c9a9e65575c39928e88fb27385eef (diff) | |
download | sddm-cedfeef17c0924360ad0c7fb911ac5dae6e01146.tar.gz sddm-cedfeef17c0924360ad0c7fb911ac5dae6e01146.tar.bz2 sddm-cedfeef17c0924360ad0c7fb911ac5dae6e01146.zip |
update guess_energy()
This commit updates guess_energy() which is used to seed the energy for the
likelihood fit. Previously we estimated the energy by summing up the charge in
a 42 degree cone around the proposed direction and then dividing that by 6
(since electrons in SNO and SNO+ produce approximately 6 hits/MeV). Now,
guess_energy() estimates the energy by calculating the expected number of
photons produced from Cerenkov light, EM showers, and delta rays for a given
particle at a given energy. The most likely energy is found by bisecting the
difference between the expected number of photons and the observed charge to
find when they are equal.
This improves things dramatically for cosmic muons which have energies of ~200
GeV. Previously the initial guess was always very low (~1 GeV) and the fit
could take > 1 hour to increase the energy.
Diffstat (limited to 'src/pmt_response.c')
0 files changed, 0 insertions, 0 deletions