aboutsummaryrefslogtreecommitdiff
path: root/src/sno_charge.c
AgeCommit message (Collapse)Author
2018-11-27a bunch of small changes to speed things uptlatorre
2018-09-18add free_charge() to free memory used to interpolate the charge distributionstlatorre
2018-09-17fix bug in single PE chargetlatorre
This commit makes sure that when we conolve the single PE charge distribution with a gaussian we integrate starting at zero since the PDF is zero for q < 0.
2018-09-10add a fast likelihood functiontlatorre
This commit adds a fast function to calculate the expected number of PE at a PMT without numerically integrating over the track. This calculation is *much* faster than integrating over the track (~30 ms compared to several seconds) and so we use it during the "quick" minimization phase of the fit to quickly find the best position.
2018-09-09fix bug in charge PDF calculationtlatorre
This commit fixes a bug in the charge PDF calculation for n > MAX_PE. The standard deviation should scale like sqrt(n)*qstd where qstd is the standard deviation of the single PE charge distribution.
2018-08-14move everything to src directorytlatorre