From 7c0f0e9fd834dbde3381cafeabf11a065e6c8de8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Mar 2015 13:59:57 +0100 Subject: Crystal: add Bfac --- libcrystfel/src/crystal.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'libcrystfel/src/crystal.c') diff --git a/libcrystfel/src/crystal.c b/libcrystfel/src/crystal.c index c6e0a9dd..e1ad5dfe 100644 --- a/libcrystfel/src/crystal.c +++ b/libcrystfel/src/crystal.c @@ -3,11 +3,11 @@ * * A class representing a single crystal * - * Copyright © 2013 Deutsches Elektronen-Synchrotron DESY, - * a research centre of the Helmholtz Association. + * Copyright © 2013-2015 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. * * Authors: - * 2013 Thomas White + * 2013-2015 Thomas White * * This file is part of CrystFEL. * @@ -56,6 +56,7 @@ struct _crystal UnitCell *cell; double m; /* Mosaicity in radians */ double osf; + double Bfac; double profile_radius; int pr_dud; double resolution_limit; @@ -188,6 +189,12 @@ double crystal_get_osf(Crystal *cryst) } +double crystal_get_Bfac(Crystal *cryst) +{ + return cryst->Bfac; +} + + int crystal_get_user_flag(Crystal *cryst) { return cryst->user_flag; @@ -251,6 +258,12 @@ void crystal_set_osf(Crystal *cryst, double osf) } +void crystal_set_Bfac(Crystal *cryst, double Bfac) +{ + cryst->Bfac = Bfac; +} + + void crystal_set_user_flag(Crystal *cryst, int user_flag) { cryst->user_flag = user_flag; -- cgit v1.2.3