Last change
on this file since 4ba4b69 was
4c29e4d,
checked in by Paul Kienzle <pkienzle@…>, 9 years ago
|
remove compiler warnings from mac build
|
-
Property mode set to
100644
|
File size:
845 bytes
|
Rev | Line | |
---|
[9e531f2] | 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 | /** |
---|
[230f479] | 12 | * Base class |
---|
[9e531f2] | 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 |
---|
[4c29e4d] | 41 | void genicomXY(int npoints, double* qx, double* qy, double *I_out); |
---|
| 42 | void genicom(int npoints, double* q, double *I_out); |
---|
[9e531f2] | 43 | }; |
---|
| 44 | |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.