aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-05 17:19:00 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:33 +0200
commit660df71395d06e7ec7d3974713db4da8ff720cd2 (patch)
treee1320954d9e805d8f1a13c1b77d3c52f7872ff53 /libcrystfel/src/datatemplate.h
parent6e5d500a2786131c7304b6c001142e524791bc12 (diff)
Convert make_pixelmap to DataTemplate
NB The coffset is no longer written to the HDF5 file. This was a terrible hack anyway. The resolution field is just as bad, but as least easy to get from the detgeom.
Diffstat (limited to 'libcrystfel/src/datatemplate.h')
-rw-r--r--libcrystfel/src/datatemplate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.h b/libcrystfel/src/datatemplate.h
index fd99d5f0..9cb60bf1 100644
--- a/libcrystfel/src/datatemplate.h
+++ b/libcrystfel/src/datatemplate.h
@@ -33,6 +33,7 @@
#include <config.h>
#endif
+#include "detgeom.h"
/**
* \file datatemplate.h
@@ -67,6 +68,13 @@ extern int data_template_panel_to_file_coords(const DataTemplate *dt,
extern void data_template_add_copy_header(DataTemplate *dt,
const char *header);
+extern struct detgeom *data_template_to_detgeom(const DataTemplate *dt);
+
+extern int data_template_get_slab_extents(const DataTemplate *dt, int *pw, int *ph);
+
+extern int data_template_in_bad_region(DataTemplate *dtempl,
+ int pn, double fs, double ss);
+
#ifdef __cplusplus
}
#endif