Skip to content
Snippets Groups Projects
Commit e335d1b3 authored by Surabhi Sachdev's avatar Surabhi Sachdev
Browse files

normalize the background only using values at likelihood ratios greater than the threshold

parent ebdf928b
No related branches found
No related tags found
No related merge requests found
......@@ -767,6 +767,7 @@ WHERE
# compute survival probability model from best fit
survival_probability = mk_survival_probability(rate_eff, m)
self.noise_lr_lnpdf.array[:self.noise_lr_lnpdf.bins[0][mode]] = 0.
# apply to background counts and signal counts
self.noise_lr_lnpdf.array *= survival_probability
self.noise_lr_lnpdf.normalize()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment