Last change
on this file since 158a0c7 was
eca7c6f,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Missing header file added
|
-
Property mode set to
100755
|
File size:
762 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 | /** |
---|
8 | * Base class |
---|
9 | */ |
---|
10 | typedef struct { |
---|
11 | // vectors |
---|
12 | int n_pix; |
---|
13 | double* x_val; |
---|
14 | double* y_val; |
---|
15 | double* z_val; |
---|
16 | double* sldn_val; |
---|
17 | double* mx_val; |
---|
18 | double* my_val; |
---|
19 | double* mz_val; |
---|
20 | double* vol_pix; |
---|
21 | // spin ratios |
---|
22 | double inspin; |
---|
23 | double outspin; |
---|
24 | double stheta; |
---|
25 | } GenI; |
---|
26 | |
---|
27 | // Constructor |
---|
28 | void initGenI(GenI*, int npix, double* x, double* y, double* z, double* sldn, |
---|
29 | double* mx, double* my, double* mz, double* voli, |
---|
30 | double in_spin, double out_spin, |
---|
31 | double s_theta); |
---|
32 | // compute function |
---|
33 | void genicomXY(GenI*, int npoints, double* qx, double* qy, double *I_out); |
---|
34 | void genicom(GenI*, int npoints, double* q, double *I_out); |
---|
35 | |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.