source:
sasview/sansmodels/src/include/sld_cal.h
@
b4293d2
Last change on this file since b4293d2 was 101065a, checked in by Mathieu Doucet <doucetm@…>, 13 years ago | |
---|---|
|
|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[0164899a] | 1 | #if !defined(sld_cal_h) |
2 | #define sld_cal_h | |
[0ba3b08] | 3 | #include "parameters.hh" |
[0164899a] | 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 | ||
[0ba3b08] | 16 | class SLDCalFunc{ |
17 | public: | |
18 | // Model parameters | |
19 | /// fun_type | |
20 | // [DEFAULT]=fun_type=0 | |
21 | Parameter fun_type; | |
[0164899a] | 22 | |
[0ba3b08] | 23 | /// npts_inter |
24 | // [DEFAULT]=npts_inter= 21 | |
25 | Parameter npts_inter; | |
[0164899a] | 26 | |
[0ba3b08] | 27 | /// shell_num |
28 | // [DEFAULT]=shell_num= 0 | |
29 | Parameter shell_num; | |
[0164899a] | 30 | |
[0ba3b08] | 31 | /// nu_inter |
32 | // [DEFAULT]=nu_inter= 2.5 | |
33 | Parameter nu_inter; | |
[0164899a] | 34 | |
[0ba3b08] | 35 | /// sld_left [1/A^(2)] |
36 | // [DEFAULT]=sld_left= 0 [1/A^(2)] | |
37 | Parameter sld_left; | |
[0164899a] | 38 | |
[0ba3b08] | 39 | /// sld_right [1/A^(2)] |
40 | // [DEFAULT]=sld_right= 0 [1/A^(2)] | |
41 | Parameter sld_right; | |
[0164899a] | 42 | |
[0ba3b08] | 43 | // Constructor |
44 | SLDCalFunc(); | |
[0164899a] | 45 | |
[0ba3b08] | 46 | // Operators to get SLD |
47 | double operator()(double q); | |
48 | double operator()(double qx, double qy); | |
49 | double calculate_ER(); | |
50 | double evaluate_rphi(double q, double phi); | |
51 | }; | |
[0164899a] | 52 | |
53 | ||
54 | ||
55 | #endif |
Note: See TracBrowser
for help on using the repository browser.