FitXSW MODIFICATION LOG **************************************************************************************************************************************************************************************************** General remarks: Remember to CLOSE CODE Builder after compilation of the Origin C file and BEFORE RUNNING THE ACTUAL PROGRAM. Otherwise the program will tremendously be slowed down or ORIGIN might even crash!!! (This is caused by a time-consuming debugging mode which is active if Code BUilder is still open - FDF routines (especially if they include loops) are just to heavy to be properly computed while debugging mode is active ...) **************************************************************************************************************************************************************************************************** Version 1.1 - 07.07.2009 - Oliver Bauer: 1) Parameter Initialisation for the Reflectivity fit has been optimized in order to speed-up the fit. 2) The fitting routines (*.FDF files) for both, the reflectivity as well as the XSW absorption data, have been refurbished such that the overall computation time is reduced by 30%. Several new options have been included: 3) The user can now decide to repeat the XSW absorption profile fit without having to repeat the reflectivity fit => differential analysis is enabled. 4) The integration stepsize for solving the convolution can now be decreased by a factor of 10 as compared to the default settings which is 0.15 eV or smaller (it depends on the experimental photon energy stepsize...). This of course costs some computation time. 5) The user can now change the start values of the fit parameters and choose the option of error weighting for both, the reflectivity curve fit as well as the XSW absoprtion profile fit, if desired. 6) The user can now extend the convolution integral if desired (default setting: +/- 2.5 eV). 7) The user is now offered a so-called "special fit model" option which allows to fit the exp. XSW absorption profile with a linear combination of two theoretical XSW profiles (two distinct adsorption heights or one distinct adsorption height plus incoherent clusters with CF = 0, respectivley), i.e. y = (1 - m_ads) * (XSW profile 1 with CF1, CP1) + m_ads * (XSW profile 2 with CF2, CP2) Version 2.0 - 08.07.2009 - Oliver Bauer: 1) The theoretical curves for both, the Reflectivity as well as the XSW absorption profile, are now convoluted with a Gaussian and the squared Monochromator reflectivity. The latter mimics the X-ray beam divergence while the earlier resembles instrumental broadening due to the substrate mosaicity, e.g. In both cases the convolution of the theoretical curve, i.e. Reflectivity or XSW absorption profile, respectively, with the squared Monochromator reflectivity is done via FFT convolution which is an Origin C global function. The subsequent convolution of the resulting, so-called "ideal" curves with the Gaussian function is done by explicitly solving the convolution integral over t where t ranges over the experimental photon energy range plus/minus some eV (default setting: +/- 2.5 ev).