diff options
author | Thomas White <taw@physics.org> | 2010-09-24 17:14:35 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:59 +0100 |
commit | 237f0f65e210812db7566ffd2d95ac2ada65cf34 (patch) | |
tree | 8ec9ac92487db9a0b5069855367c352a79d40745 /src/reflections.c | |
parent | f062338ad3177a118e75f72739f90c8df7c38fa4 (diff) |
Get detector gain for error esimates from parameters-lcls.tmp
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c index d11a3aa0..d187041f 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -19,6 +19,7 @@ #include "utils.h" #include "cell.h" #include "reflections.h" +#include "parameters-lcls.tmp" void write_reflections(const char *filename, ReflItemList *items, @@ -78,7 +79,7 @@ void write_reflections(const char *filename, ReflItemList *items, } if ( intensity > 0.0 ) { - sigma = 179.0 * sqrt(intensity/179.0); + sigma = DETECTOR_GAIN * sqrt(intensity/DETECTOR_GAIN); } else { sigma = 0.0; } @@ -88,7 +89,8 @@ void write_reflections(const char *filename, ReflItemList *items, h, k, l, intensity, ph, sigma, s/1.0e9, N); } - STATUS("Warning: Errors are only remotely valid for 1/16 gain.\n"); + STATUS("Warning: Errors have been estimated from Poisson distribution" + " assuming %5.2f ADU per photon.\n", DETECTOR_GAIN); fclose(fh); } |