data and scripts for the analysis of single photon detector data