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

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 f567f92f 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
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        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
41        void genicomXY(int npoints, double* qx, double* qy, double *I_out);
42        void genicom(int npoints, double* q, double *I_out);
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.