From 129481578eefefd7d34fbd0006a7ea659d51f944 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Sun, 20 Nov 2011 17:34:04 -0500 Subject: Disable time contribution to likelihood for weighting tests. --- chroma/likelihood.py | 6 +++--- 1 file 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 -- cgit