From 8c5ea6510c339c6719d037e9b66f7134a493428f Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Thu, 13 Oct 2011 14:40:14 -0400 Subject: Fix returning from PDF accumulator too soon. --- chroma/cuda/pdf.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chroma/cuda/pdf.cu b/chroma/cuda/pdf.cu index 0d82e3a..41c4b4a 100644 --- a/chroma/cuda/pdf.cu +++ b/chroma/cuda/pdf.cu @@ -97,7 +97,7 @@ accumulate_pdf_eval(int time_only, int nchannels, unsigned int *event_hit, } // Do we need to keep updating the nearest_mc list? - if (channel_bincount + 1 >= min_bin_content) + if (channel_bincount >= min_bin_content) return; // No need to perform insertion into nearest_mc because bincount is a better estimate of the PDF value // insertion sort the distance into the array of nearest MC points -- cgit