10#include "MantidAlgorithms/DllConfig.h"
11#include "MantidHistogramData/Histogram.h"
31 const std::string
name()
const override {
return "Q1D"; }
33 const std::string
summary()
const override {
34 return "SANS 1D reduction. Converts a workspace in wavelength into a "
35 "workspace of momentum transfer, assuming elastic scattering";
39 int version()
const override {
return (2); }
40 const std::vector<std::string>
seeAlso()
const override {
return {
"Q1DWeighted",
"Qxy"}; }
42 const std::string
category()
const override {
return "SANS"; }
45 Parallel::ExecutionMode
46 getParallelExecutionMode(
const std::map<std::string, Parallel::StorageMode> &storageModes)
const override;
60 void calculateNormalization(
const size_t wavStart,
const size_t wsIndex,
63 double const *
const binNormEs, HistogramData::HistogramY::iterator norm,
64 HistogramData::HistogramY::iterator normETo2)
const;
67 void addWaveAdj(
const double *c,
const double *Dc, HistogramData::HistogramY::iterator bInOut,
68 HistogramData::HistogramY::iterator e2InOut)
const;
69 void addWaveAdj(
const double *c,
const double *Dc, HistogramData::HistogramY::iterator bInOut,
70 HistogramData::HistogramY::iterator e2InOut,
71 HistogramData::HistogramY::const_iterator wavePixelAdjData,
72 HistogramData::HistogramE::const_iterator wavePixelAdjError)
const;
73 void normToMask(
const size_t offSet,
const size_t wsIndex,
const HistogramData::HistogramY::iterator theNorms,
74 const HistogramData::HistogramY::iterator errorSquared)
const;
75 void convertWavetoQ(
const API::SpectrumInfo &spectrumInfo,
const size_t wsInd,
const bool doGravity,
76 const size_t offset, HistogramData::HistogramY::iterator Qs,
const double extraLength)
const;
77 void getQBinPlus1(
const HistogramData::HistogramX &OutQs,
const double QToFind,
78 HistogramData::HistogramY::const_iterator &loc)
const;
79 void normalize(
const HistogramData::HistogramY &normSum,
const HistogramData::HistogramE &normError2,
80 HistogramData::HistogramY &counts, HistogramData::HistogramE &errors)
const;
Base class from which all concrete algorithm classes should be derived.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Takes account of the effects of gravity for instruments where the y-axis points upwards,...
int version() const override
Algorithm's version.
const std::string name() const override
Algorithm's name.
API::MatrixWorkspace_const_sptr m_dataWS
the experimental workspace with counts across the detector
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
MANTID_KERNEL_DLL V3D normalize(V3D v)
Normalizes a V3D.
Helper class which provides the Collimation Length for SANS instruments.