source: sasview/sansmodels/src/c_gen/sld2i.hh @ dbc01f2

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 dbc01f2 was 318b5bbb, checked in by Jae Cho <jhjcho@…>, 12 years ago

Added polarization and magnetic stuffs

  • Property mode set to 100644
File size: 808 bytes
Line 
1/**
2Computes 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
9using namespace std;
10
11/**
12 * Base class
13 */
14class GenI {
15protected:
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    // spin ratios
29    double inspin;
30    double outspin;
31    double stheta;
32
33public:
34    // Constructor
35        GenI(int npix, double* x, double* y, double* z, double* sldn, 
36                        double* mx, double* my, double* mz, 
37                        double in_spin, double out_spin,
38                        double s_theta);
39        // compute function
40        virtual void genicom(int npoints, double* qx, double* qy, double *I_out);
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.