From 3bc13230355c2be24549e09663295f3cdaee74dc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 21 May 2012 16:04:05 +0200 Subject: ADU threshold is on pixel value, not photon-bg subtracted version --- libcrystfel/src/peaks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 91a8c949..477d9345 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -263,7 +263,7 @@ static int integrate_peak(struct image *image, int cfs, int css, val = image->data[idx] - bg_mean; /* Veto peak if it contains saturation */ - if ( val > p->max_adu ) return 1; + if ( image->data[idx] > p->max_adu ) return 1; pk_counts++; pk_total += val; -- cgit v1.2.3