aboutsummaryrefslogtreecommitdiff
path: root/src/beam-parameters.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-25 16:00:23 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:03 +0100
commit380ec553c04576fc3dc4c816127078d3c2cf9e32 (patch)
tree7f2e4a384bf1ed2285c15817fbbfe46c1add1d64 /src/beam-parameters.h
parenta1408ca8460ef486730b4e5ce11cfca2504edf3b (diff)
Read beam parameters from file (where appropriate)
Diffstat (limited to 'src/beam-parameters.h')
-rw-r--r--src/beam-parameters.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/beam-parameters.h b/src/beam-parameters.h
new file mode 100644
index 00000000..84d95b49
--- /dev/null
+++ b/src/beam-parameters.h
@@ -0,0 +1,37 @@
+/*
+ * beam-parameters.h
+ *
+ * Beam parameters
+ *
+ * (c) 2006-2010 Thomas White <taw@physics.org>
+ *
+ * Part of CrystFEL - crystallography with a FEL
+ *
+ */
+
+
+#ifndef BEAM_PARAMETERS_H
+#define BEAM_PARAMETERS_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+
+struct beam_params
+{
+ double fluence; /* photons per pulse */
+ double beam_radius; /* metres */
+ double photon_energy; /* eV per photon */
+
+ double dqe; /* Detector DQE (fraction) */
+ double adu_per_photon; /* Detector "gain" */
+
+ double water_radius; /* metres */
+};
+
+
+extern struct beam_params *get_beam_parameters(const char *filename);
+
+
+#endif /* BEAM_PARAMETERS_H */