14#include "MantidMDAlgorithms/DllConfig.h"
17namespace MDAlgorithms {
26 const std::string
name()
const override {
return "ConvertCWSDExpToMomentum"; }
29 const std::string
summary()
const override {
return "Load and convert a set of files in an HB3A experiment."; }
32 int version()
const override {
return (1); }
35 const std::string
category()
const override {
return "Diffraction\\ConstantWavelength;DataHandling\\Text"; }
41 void addMDEvents(
bool usevirtual);
44 const detid_t &startdetid,
const int scannumber,
const int runnumber,
45 double measuretime,
int monitor_counts);
49 const double &momentum, std::vector<Mantid::coord_t> &qSample,
54 bool getInputs(
bool virtualinstrument, std::string &errmsg);
58 void parseDetectorTable(std::vector<Kernel::V3D> &vec_detpos, std::vector<detid_t> &vec_detid);
62 void createVirtualInstrument();
64 void updateQRange(
const std::vector<Mantid::coord_t> &vec_q);
Base class from which all concrete algorithm classes should be derived.
ConvertCWSDExpToMomentum : TODO: DESCRIPTION.
API::ITableWorkspace_sptr m_expDataTableWS
Geometry::Instrument_sptr m_virtualInstrument
bool m_isBaseName
Flag to use m_dataDir.
std::vector< coord_t > m_maxQVec
bool m_removeBackground
Background workspace.
const std::string summary() const override
Summary of algorithms purpose.
API::MatrixWorkspace_const_sptr m_backgroundWS
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
std::vector< coord_t > m_minQVec
double m_detSampleDistanceShift
Shifts in detector position set from user (calibration): all in the unit as meter.
API::IMDEventWorkspace_sptr m_outputWS
std::vector< double > m_extentMins
std::string m_dataDir
Data directory.
std::vector< size_t > m_numBins
int version() const override
Algorithm's version.
API::ITableWorkspace_sptr m_detectorListTableWS
std::vector< double > m_extentMaxs
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
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
std::shared_ptr< Instrument > Instrument_sptr
Shared pointer to an instrument object.
Helper class which provides the Collimation Length for SANS instruments.