Computational Method to Calculate Output Current for Gated SPAD to Determine DCR and PDE