diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-12-09 14:16:34 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-12-09 14:16:34 -0600 |
commit | 5e63a701a8b144093528c063856d513be92a37ed (patch) | |
tree | 0d14b914cd8c0f824a9e85159a482e6c0880c991 /utils/dm-search | |
parent | f43a75955e8a624b1927b3075776574303158634 (diff) | |
download | sddm-5e63a701a8b144093528c063856d513be92a37ed.tar.gz sddm-5e63a701a8b144093528c063856d513be92a37ed.tar.bz2 sddm-5e63a701a8b144093528c063856d513be92a37ed.zip |
update discovery threshold again
Diffstat (limited to 'utils/dm-search')
-rwxr-xr-x | utils/dm-search | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/dm-search b/utils/dm-search index aaac58c..214ad59 100755 --- a/utils/dm-search +++ b/utils/dm-search @@ -509,7 +509,7 @@ def get_limits(dm_masses,data,muon,data_mc,atmo_scale_factor,muon_scale_factor,b # increase our discovery threshold to account for the look # elsewhere effect. threshold = DISCOVERY_P_VALUE/(len(bins)-1) - discovery = max(poisson.ppf(1-threshold,n) - n,0) + discovery = poisson.ppf(1-threshold,n) + 1 - n # Here, we scale the discovery threshold by the fraction of the # dark matter hist in the histogram range. The idea is that if only # a small fraction of the dark matter histogram falls into the |