User Tools

Site Tools


documentation:program_flow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
documentation:program_flow [2013/04/03 22:21]
127.0.0.1 external edit
documentation:program_flow [2014/05/09 18:33]
macke
Line 11: Line 11:
     - if magnetization is turned on read .m files of each layer. If no file found display error message.     - if magnetization is turned on read .m files of each layer. If no file found display error message.
   - Fill dielectric tensor with proper values of the diagonal and off-diagonal elements.   - Fill dielectric tensor with proper values of the diagonal and off-diagonal elements.
-  - abcd +  - Run script ("​BeforeCalculation"​) 
-  - abcd +  - Calculate reflectivity 
-  - +  - Apply post modifications
  
 +===== Calculation of the error for each dataset =====
 +
 +- Check if fit flag is set, otherwise return
 +- Make a private copy of the dataset
 +- Apply qz-shift, energy-shift,​ scaling and translation to the datasets energy table and qz table.
 +- Apply post-modifications to the dataset.
 +- Check, which type of dataset this is. This depends on the data in the dataset. The priority is reflectivity > asymmetry > Rp and Rm. Separate datasets if you want to calculate the different curves. ​
 +- Calculate the corresponding curve for the same datapoints as the measurement. (This is equivalent to the "use dataset points for simulatio"​
 +- Calculate Chi^2 between dataset and simulation.
  
 ===== Energy scan ===== ===== Energy scan =====
Line 24: Line 33:
  
 ===== Script Execute ===== ===== Script Execute =====
- 
documentation/program_flow.txt · Last modified: 2014/05/09 18:34 by macke