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 ef3445e2 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.1 KB
|
Line | |
---|
1 | #ifndef DAB_MODEL_H |
---|
2 | #define DAB_MODEL_H |
---|
3 | |
---|
4 | #include "parameters.hh" |
---|
5 | |
---|
6 | /** |
---|
7 | This software was developed by Institut Laue-Langevin as part of |
---|
8 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE). |
---|
9 | |
---|
10 | Copyright 2012 Institut Laue-Langevin |
---|
11 | |
---|
12 | **/ |
---|
13 | |
---|
14 | |
---|
15 | // definition for model parameters |
---|
16 | |
---|
17 | // [PYTHONCLASS] = DABModel |
---|
18 | // [DISP_PARAMS] = length, scale, background |
---|
19 | // [DESCRIPTION] = <text>Provide F(x) = scale/( 1 + (x*L)^2 )^(2) + background |
---|
20 | // DAB (Debye Anderson Brumberger) function as a BaseComponent model |
---|
21 | // </text> |
---|
22 | // [FIXED] = |
---|
23 | // [ORIENTATION_PARAMS] = |
---|
24 | |
---|
25 | |
---|
26 | class DABModel { |
---|
27 | |
---|
28 | public: |
---|
29 | // Model parameters |
---|
30 | |
---|
31 | /// Correlation length [A] |
---|
32 | // [DEFAULT]=length=50.0 [A] |
---|
33 | Parameter length; |
---|
34 | |
---|
35 | /// Scale factor |
---|
36 | // [DEFAULT]=scale=1.0 |
---|
37 | Parameter scale; |
---|
38 | |
---|
39 | /// Background [1/cm] |
---|
40 | // [DEFAULT]=background=0 [1/cm] |
---|
41 | Parameter background; |
---|
42 | |
---|
43 | DABModel(); |
---|
44 | |
---|
45 | // Operators to get I(Q) |
---|
46 | double operator()(double q); |
---|
47 | double operator()(double qx, double qy); |
---|
48 | double calculate_ER(); |
---|
49 | double calculate_VR(); |
---|
50 | double evaluate_rphi(double q, double phi); |
---|
51 | }; |
---|
52 | |
---|
53 | |
---|
54 | #endif |
---|
55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.