source: sasview/src/sas/sascalc/calculator/c_extensions/sld2i.hh @ d6b8a1d

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since d6b8a1d 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
RevLine 
[9e531f2]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/**
[230f479]12 * Base class
[9e531f2]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        double* vol_pix;
29    // spin ratios
30    double inspin;
31    double outspin;
32    double stheta;
33
34public:
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.