spice-herald / RQpy

This repository provides helpful tools for DM search analysis using detectors studied by the Pyle Group.
GNU General Public License v3.0
4 stars 3 forks source link

Refactor and improve drde_gauss_smear2d #118

Closed slwatkins closed 5 years ago

slwatkins commented 5 years ago

I've refactored the code for rqpy.limit.drde_gauss_smear2d so that the code does a better job at calculating the smeared dR/dE using a 2D normal distribution. I also fixed a bug that was affecting the smearing. The explicit changes are detailed below.

I've done some testing for different levels of smearing and compared to data, and the code seems to be working well.