[8a48713] | 1 | #if !defined(parallelepiped_h) |
---|
| 2 | #define parallelepiped_h |
---|
[8343e18] | 3 | #include "parameters.hh" |
---|
| 4 | |
---|
[8a48713] | 5 | /** Structure definition for Parallelepiped parameters |
---|
| 6 | * [PYTHONCLASS] = ParallelepipedModel |
---|
[8e36cdd] | 7 | * [DISP_PARAMS] = short_a, short_b, long_c,parallel_phi,parallel_psi, parallel_theta |
---|
[2cb89e7] | 8 | [DESCRIPTION] = <text> Form factor for a rectangular solid with uniform scattering length density. |
---|
[975ec8e] | 9 | |
---|
[8a48713] | 10 | scale:Scale factor |
---|
[8e36cdd] | 11 | short_a: length of short edge [A] |
---|
| 12 | short_b: length of another short edge [A] |
---|
| 13 | long_c: length of long edge of the parallelepiped [A] |
---|
[f10063e] | 14 | sldPipe: Pipe_sld |
---|
| 15 | sldSolv: solvent_sld |
---|
[975ec8e] | 16 | background:Incoherent Background [1/cm] |
---|
[8a48713] | 17 | </text> |
---|
[8e36cdd] | 18 | [FIXED]= <text>short_a.width; short_b.width; long_c.width;parallel_phi.width;parallel_psi.width; parallel_theta.width</text> |
---|
[975ec8e] | 19 | [ORIENTATION_PARAMS]= <text>parallel_phi;parallel_psi; parallel_theta; parallel_phi.width;parallel_psi.width; parallel_theta.width</text> |
---|
[8a48713] | 20 | |
---|
| 21 | |
---|
| 22 | **/ |
---|
| 23 | |
---|
[8343e18] | 24 | class ParallelepipedModel{ |
---|
| 25 | public: |
---|
| 26 | // Model parameters |
---|
| 27 | /// Scale factor |
---|
| 28 | // [DEFAULT]=scale=1.0 |
---|
| 29 | Parameter scale; |
---|
| 30 | /// Length of short edge of the parallelepiped [A] |
---|
| 31 | // [DEFAULT]=short_a=35 [A] |
---|
| 32 | Parameter short_a; |
---|
| 33 | /// Length of short edge edge of the parallelepiped [A] |
---|
| 34 | // [DEFAULT]=short_b=75 [A] |
---|
| 35 | Parameter short_b; |
---|
| 36 | /// Length of long edge of the parallelepiped [A] |
---|
| 37 | // [DEFAULT]=long_c=400 [A] |
---|
| 38 | Parameter long_c; |
---|
| 39 | /// SLD_Pipe [1/A^(2)] |
---|
| 40 | // [DEFAULT]=sldPipe=6.3e-6 [1/A^(2)] |
---|
| 41 | Parameter sldPipe; |
---|
| 42 | /// sldSolv [1/A^(2)] |
---|
| 43 | // [DEFAULT]=sldSolv=1.0e-6 [1/A^(2)] |
---|
| 44 | Parameter sldSolv; |
---|
| 45 | /// Incoherent Background [1/cm] |
---|
| 46 | // [DEFAULT]=background=0.0 [1/cm] |
---|
| 47 | Parameter background; |
---|
| 48 | /// Orientation of the parallelepiped axis w/respect incoming beam [deg] |
---|
| 49 | // [DEFAULT]=parallel_theta=0.0 [deg] |
---|
| 50 | Parameter parallel_theta; |
---|
| 51 | /// Orientation of the longitudinal axis of the parallelepiped in the plane of the detector [deg] |
---|
| 52 | // [DEFAULT]=parallel_phi=0.0 [deg] |
---|
| 53 | Parameter parallel_phi; |
---|
| 54 | /// Orientation of the cross-sectional minor axis of the parallelepiped in the plane of the detector [deg] |
---|
| 55 | // [DEFAULT]=parallel_psi=0.0 [deg] |
---|
| 56 | Parameter parallel_psi; |
---|
[8a48713] | 57 | |
---|
[8343e18] | 58 | // Constructor |
---|
| 59 | ParallelepipedModel(); |
---|
[8a48713] | 60 | |
---|
[8343e18] | 61 | // Operators to get I(Q) |
---|
| 62 | double operator()(double q); |
---|
| 63 | double operator()(double qx, double qy); |
---|
| 64 | double calculate_ER(); |
---|
| 65 | double evaluate_rphi(double q, double phi); |
---|
| 66 | }; |
---|
[8a48713] | 67 | #endif |
---|