From ef6a971cf432321ceb057b8c355c8e6814d5aff6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Nov 2009 12:10:12 +0100 Subject: Work in progress on photon correctness --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c101fc87..27ac1f9c 100644 --- a/src/main.c +++ b/src/main.c @@ -75,11 +75,15 @@ int main(int argc, char *argv[]) image.y_centre = 255.5; image.camera_len = 0.2; /* 20 cm */ image.resolution = 5120; /* 512 pixels in 10 cm */ - image.lambda = 0.2e-9; /* LCLS wavelength */ + image.xray_energy = eV_to_J(2.0e3); /* 2 keV energy */ + image.lambda = ph_en_to_lambda(image.xray_energy); /* Wavelength */ image.qvecs = NULL; image.sfacs = NULL; image.data = NULL; + /* Splurge a few useful numbers */ + printf("Wavelength is %f nm\n", image.lambda/1.0e-9); + get_diffraction(&image, cell); record_image(&image); -- cgit v1.2.3