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 be0c318 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:
905 bytes
|
Line | |
---|
1 | /** |
---|
2 | Computes the (magnetic) scattering form sld (n and m) profile |
---|
3 | */ |
---|
4 | #ifndef SLD2I_CLASS_H |
---|
5 | #define SLD2I_CLASS_H |
---|
6 | |
---|
7 | #include <vector> |
---|
8 | |
---|
9 | using namespace std; |
---|
10 | |
---|
11 | /** |
---|
12 | * Base class |
---|
13 | */ |
---|
14 | class GenI { |
---|
15 | protected: |
---|
16 | vector<double>* I_out; |
---|
17 | // vectors |
---|
18 | int n_pix; |
---|
19 | double* qx; |
---|
20 | double* qy; |
---|
21 | double* x_val; |
---|
22 | double* y_val; |
---|
23 | double* z_val; |
---|
24 | double* sldn_val; |
---|
25 | double* mx_val; |
---|
26 | double* my_val; |
---|
27 | double* mz_val; |
---|
28 | double* vol_pix; |
---|
29 | // spin ratios |
---|
30 | double inspin; |
---|
31 | double outspin; |
---|
32 | double stheta; |
---|
33 | |
---|
34 | public: |
---|
35 | // Constructor |
---|
36 | GenI(int npix, double* x, double* y, double* z, double* sldn, |
---|
37 | double* mx, double* my, double* mz, double* voli, |
---|
38 | double in_spin, double out_spin, |
---|
39 | double s_theta); |
---|
40 | // compute function |
---|
41 | virtual void genicomXY(int npoints, double* qx, double* qy, double *I_out); |
---|
42 | virtual void genicom(int npoints, double* q, double *I_out); |
---|
43 | }; |
---|
44 | |
---|
45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.