aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-03 18:02:07 +0200
committerThomas White <taw@physics.org>2010-06-03 18:02:07 +0200
commit44b44af2d3a9a0c4a72f7f88903587f10d69a909 (patch)
treeba1f02ba4de8418e28fb71c150e3c67caa0b5c17
parentad4746363bffc56d379e421fec5f1733476faef5 (diff)
Move photon energy to parameters header
-rw-r--r--src/parameters-lcls.tmp3
-rw-r--r--src/pattern_sim.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/parameters-lcls.tmp b/src/parameters-lcls.tmp
index 7ae2af48..1fb35065 100644
--- a/src/parameters-lcls.tmp
+++ b/src/parameters-lcls.tmp
@@ -12,3 +12,6 @@
/* Radius of X-ray beam */
#define BEAM_RADIUS (3.0e-6 / 2.0)
+
+/* Photon energy in eV */
+#define PHOTON_ENERGY (8000.0)
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 6a8a9299..130b6681 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -31,6 +31,7 @@
#include "peaks.h"
#include "sfac.h"
#include "reflections.h"
+#include "parameters-lcls.tmp"
static void show_help(const char *s)
@@ -316,7 +317,7 @@ int main(int argc, char *argv[])
/* Define image parameters */
image.width = 1024;
image.height = 1024;
- image.lambda = ph_en_to_lambda(eV_to_J(1790.0)); /* Wavelength */
+ image.lambda = ph_en_to_lambda(eV_to_J(PHOTON_ENERGY)); /* Wavelength */
cell = load_cell_from_pdb(filename);
image.filename = NULL;