summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-11-20 17:34:04 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:38 -0700
commit129481578eefefd7d34fbd0006a7ea659d51f944 (patch)
treee7fa6649f49bd417c3a0910ec7900a7203795465
parente91996149df30fe5ffe95831d066f5f9c8762d15 (diff)
downloadchroma-129481578eefefd7d34fbd0006a7ea659d51f944.tar.gz
chroma-129481578eefefd7d34fbd0006a7ea659d51f944.tar.bz2
chroma-129481578eefefd7d34fbd0006a7ea659d51f944.zip
Disable time contribution to likelihood for weighting tests.
-rw-r--r--chroma/likelihood.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/chroma/likelihood.py b/chroma/likelihood.py
index 50d9593..506131d 100644
--- a/chroma/likelihood.py
+++ b/chroma/likelihood.py
@@ -62,7 +62,7 @@ class Likelihood(object):
nreps=nreps,
ndaq=ndaq,
time_only=self.time_only,
- min_bin_content=ndaq*10)
+ min_bin_content=320)
# Normalize probabilities and put a floor to keep the log finite
hit_prob = hitcount.astype(np.float32) / ntotal
@@ -100,8 +100,8 @@ class Likelihood(object):
# Then include the probability densities of the observed
# charges and times.
- log_likelihood += ufloat((np.log(pdf_prob[self.event.channels.hit]).sum(),
- 0.0))
+ #log_likelihood += ufloat((np.log(pdf_prob[self.event.channels.hit]).sum(),
+ #0.0))
return -log_likelihood