ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 02098e3 was
79492222,
checked in by krzywon, 10 years ago
|
Changed the file and folder names to remove all SANS references.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[503a972] | 1 | #if !defined(sld_cal_h) |
---|
| 2 | #define sld_cal_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * To calculate the sld value |
---|
| 7 | * [PYTHONCLASS] = SLDCalFunc |
---|
| 8 | * [DISP_PARAMS] = npts_inter |
---|
| 9 | [DESCRIPTION] =<text>To calculate sld values |
---|
| 10 | </text> |
---|
| 11 | [FIXED]= <text> |
---|
| 12 | </text> |
---|
| 13 | |
---|
| 14 | **/ |
---|
| 15 | |
---|
| 16 | class SLDCalFunc{ |
---|
| 17 | public: |
---|
| 18 | // Model parameters |
---|
| 19 | /// fun_type |
---|
| 20 | // [DEFAULT]=fun_type=0 |
---|
| 21 | Parameter fun_type; |
---|
| 22 | |
---|
| 23 | /// npts_inter |
---|
| 24 | // [DEFAULT]=npts_inter= 21 |
---|
| 25 | Parameter npts_inter; |
---|
| 26 | |
---|
| 27 | /// shell_num |
---|
| 28 | // [DEFAULT]=shell_num= 0 |
---|
| 29 | Parameter shell_num; |
---|
| 30 | |
---|
| 31 | /// nu_inter |
---|
| 32 | // [DEFAULT]=nu_inter= 2.5 |
---|
| 33 | Parameter nu_inter; |
---|
| 34 | |
---|
| 35 | /// sld_left [1/A^(2)] |
---|
| 36 | // [DEFAULT]=sld_left= 0 [1/A^(2)] |
---|
| 37 | Parameter sld_left; |
---|
| 38 | |
---|
| 39 | /// sld_right [1/A^(2)] |
---|
| 40 | // [DEFAULT]=sld_right= 0 [1/A^(2)] |
---|
| 41 | Parameter sld_right; |
---|
| 42 | |
---|
| 43 | // Constructor |
---|
| 44 | SLDCalFunc(); |
---|
| 45 | |
---|
| 46 | // Operators to get SLD |
---|
| 47 | double operator()(double q); |
---|
| 48 | double operator()(double qx, double qy); |
---|
| 49 | double calculate_ER(); |
---|
[6319646] | 50 | double calculate_VR(); |
---|
[503a972] | 51 | double evaluate_rphi(double q, double phi); |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.