From f09527699de496a1079bd9063f2356677afe0c68 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 29 Feb 2012 16:02:21 +0100 Subject: Fix bug in peak integration ESD calculation --- libcrystfel/src/peaks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index fa765b65..55abff27 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -247,9 +247,9 @@ int integrate_peak(struct image *image, int cfs, int css, /* Noise * noise and noise_meansq are both in photons (^2) */ - noise += val / image->beam->adu_per_photon; + noise += val / aduph; noise_counts++; - noise_meansq += pow(val, 2.0); + noise_meansq += pow(val/aduph, 2.0); } else if ( fs*fs + ss*ss < lim_sq ) { -- cgit v1.2.3