From b62b7f7356f529ab904dabefb4618afc8f2211ec Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 1 Apr 2016 15:30:57 +0200 Subject: Add adu_per_photon (distinct from adu_per_eV) --- libcrystfel/src/integration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/integration.c') diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index ce996db7..7380f836 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1463,7 +1463,7 @@ static void integrate_rings_once(Reflection *refl, struct image *image, intensity = tentative_intensity(ic, bx); mean_var_area(ic, bx, BM_BG, &bgmean, &sig2_bg); - aduph = bx->p->adu_per_eV * ph_lambda_to_eV(ic->image->lambda); + aduph = bx->p->adu_per_photon; sig2_poisson = aduph * intensity; /* If intensity is within one photon of nothing, set the Poisson -- cgit v1.2.3