diff options
Diffstat (limited to 'libcrystfel/src/beam-parameters.h')
-rw-r--r-- | libcrystfel/src/beam-parameters.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libcrystfel/src/beam-parameters.h b/libcrystfel/src/beam-parameters.h new file mode 100644 index 00000000..411ab449 --- /dev/null +++ b/libcrystfel/src/beam-parameters.h @@ -0,0 +1,40 @@ +/* + * 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 bandwidth; /* FWHM(wavelength) over wavelength. + * Note: current simulation code just uses + * a rectangular distribution with this as + * its (full) width. */ + double divergence; /* divergence (radians) */ + + double dqe; /* Detector DQE (fraction) */ + double adu_per_photon; /* Detector "gain" */ +}; + + +extern struct beam_params *get_beam_parameters(const char *filename); + + +#endif /* BEAM_PARAMETERS_H */ |