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 50a77df was
79492222,
checked in by krzywon, 10 years ago
|
Changed the file and folder names to remove all SANS references.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /** |
---|
2 | This software was developed by the University of Tennessee as part of the |
---|
3 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
4 | project funded by the US National Science Foundation. |
---|
5 | |
---|
6 | If you use DANSE applications to do scientific research that leads to |
---|
7 | publication, we ask that you acknowledge the use of the software with the |
---|
8 | following sentence: |
---|
9 | |
---|
10 | "This work benefited from DANSE software developed under NSF award DMR-0520547." |
---|
11 | |
---|
12 | copyright 2009, University of Tennessee |
---|
13 | */ |
---|
14 | #ifndef SMEARER2D_HELPER_CLASS_H |
---|
15 | #define SMEARER2D_HELPER_CLASS_H |
---|
16 | |
---|
17 | #include <vector> |
---|
18 | |
---|
19 | using namespace std; |
---|
20 | |
---|
21 | /** |
---|
22 | * Base smearer class, implementing the matrix multiplication only |
---|
23 | */ |
---|
24 | class Smearer_helper { |
---|
25 | protected: |
---|
26 | // Smearing matrix |
---|
27 | vector<double>* weights; |
---|
28 | vector<double>* qx_out; |
---|
29 | vector<double>* qy_out; |
---|
30 | // Q vector |
---|
31 | double* qx_values; |
---|
32 | double* qy_values; |
---|
33 | double* dqx_values; |
---|
34 | double* dqy_values; |
---|
35 | // r limit |
---|
36 | double rlimit; |
---|
37 | // Numbers |
---|
38 | int npoints; |
---|
39 | int nrbins; |
---|
40 | int nphibins; |
---|
41 | |
---|
42 | public: |
---|
43 | // Constructor |
---|
44 | Smearer_helper(int npoints, double* qx, double* qy, double* dqx, double* dqy, |
---|
45 | double rlimit, int nrbins, int nphibins); |
---|
46 | // Smear function |
---|
47 | virtual void smear2d(double *weights, double *qx_out, double *qy_out); |
---|
48 | }; |
---|
49 | |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.