aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-27 17:38:48 +0200
committerThomas White <taw@physics.org>2015-05-27 17:38:48 +0200
commit679b25d13ffd6c43d4f1440cee05772834429863 (patch)
tree8e7a94a36f459c21251e032e051d39d25a8919fd /libcrystfel/src/detector.c
parent80d0c1064bb7a00fae458211ab9429cb6c1ed4cc (diff)
Add detector_has_clen_references()
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r--libcrystfel/src/detector.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index d1614d6e..7979315b 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -400,6 +400,18 @@ double get_tt(struct image *image, double fs, double ss, int *err)
}
+int detector_has_clen_references(struct detector *det)
+{
+ int i;
+
+ for ( i=0; i<det->n_panels; i++ ) {
+ if ( det->panels[i].clen_from != NULL ) return 1;
+ }
+
+ return 0;
+}
+
+
void record_image(struct image *image, int do_poisson, double background,
gsl_rng *rng, double beam_radius, double nphotons)
{