diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-07-29 12:33:59 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-07-29 12:33:59 -0500 |
commit | 1c8051e72f3c00384cb3e5b07d22b325ddcd2273 (patch) | |
tree | fd74797ad46e7741841138f0d63921a222a419d9 /src/sno_charge.c | |
parent | c00d326e4951e0384fa7b26861e1b89535c1e288 (diff) | |
download | sddm-1c8051e72f3c00384cb3e5b07d22b325ddcd2273.tar.gz sddm-1c8051e72f3c00384cb3e5b07d22b325ddcd2273.tar.bz2 sddm-1c8051e72f3c00384cb3e5b07d22b325ddcd2273.zip |
flag PMT charges below qlo
This commit updates get_event() to flag PMT charges below qlo, which is the
minimum charge value that we compute the charge PDFs for. This is to prevent
the likelihood from returning nan.
Diffstat (limited to 'src/sno_charge.c')
-rw-r--r-- | src/sno_charge.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sno_charge.c b/src/sno_charge.c index 17e4ebc..f36bfb5 100644 --- a/src/sno_charge.c +++ b/src/sno_charge.c @@ -106,6 +106,16 @@ static double QSMEAR_ADC = 3.61; /* Mean of simulated threshold distribution. */ static double MEAN_THRESH = 8.5; +double get_qlo(void) +{ + return qlo; +} + +double get_qhi(void) +{ + return qhi; +} + static double nlopt_log_pq(unsigned int n, const double *x, double *grad, void *params) { int i; |