15#include "MantidMDAlgorithms/DllConfig.h"
18namespace MDAlgorithms {
25 const std::string
name()
const override {
return "ConvertCWSDMDtoHKL"; }
28 const std::string
summary()
const override {
29 return "Convert constant wavelength single crystal diffractomer's data"
30 "in MDEventWorkspace and in unit of Q-sample to the HKL space "
35 int version()
const override {
return (1); }
38 const std::string
category()
const override {
return "Diffraction\\ConstantWavelength"; }
48 std::vector<signal_t> &vec_event_signal, std::vector<detid_t> &vec_event_det);
50 void convertFromQSampleToHKL(
const std::vector<Kernel::V3D> &q_vectors, std::vector<Kernel::V3D> &miller_indices);
53 const std::vector<signal_t> &vec_signal,
54 const std::vector<detid_t> &vec_detid);
56 void addMDEvents(std::vector<std::vector<coord_t>> &vec_q_sample, std::vector<float> &vec_signal);
58 void saveMDToFile(
const std::vector<std::vector<coord_t>> &vecEventQsample,
const std::vector<float> &vecEventSignal);
60 void saveEventsToFile(
const std::string &filename, std::vector<Kernel::V3D> &vecEventPos,
61 const std::vector<signal_t> &vecEventSignal,
const std::vector<detid_t> &vecEventDetid);
65 void getRange(
const std::vector<Kernel::V3D> &vec_hkl, std::vector<double> &extentMins,
66 std::vector<double> &extentMaxs);
Base class from which all concrete algorithm classes should be derived.
ConvertCWSDMDtoHKL : TODO: DESCRIPTION.
Kernel::Matrix< double > m_UB
const std::string name() const override
Algorithm's name.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version.
API::IMDEventWorkspace_sptr m_outputWS
void addMDEvents(std::vector< std::vector< coord_t > > &vec_q_sample, std::vector< float > &vec_signal)
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Helper class which provides the Collimation Length for SANS instruments.