21namespace WorkflowAlgorithms {
31 const std::string
name()
const override {
return "AlignAndFocusPowder"; }
34 int version()
const override {
return 1; }
35 const std::vector<std::string>
seeAlso()
const override {
return {
"AlignAndFocusPowderFromFiles"}; }
38 const std::string
category()
const override {
return "Workflow\\Diffraction"; }
41 const std::string
summary()
const override {
42 return "Algorithm to focus powder diffraction data into a number of "
44 "according to a grouping scheme defined in a CalFile.";
47 std::map<std::string, std::string> validateInputs()
override;
53 void loadCalFile(
const std::string &calFilename,
const std::string &groupFilename);
71 const std::vector<specnum_t> &specids,
const std::vector<double> &l2s,
72 const std::vector<double> &phis);
74 double getVecPropertyFromPmOrSelf(
const std::string &name, std::vector<double> &avec);
85 std::vector<double>
l2s;
105 bool m_preserveEvents{
false};
113 bool m_processLowResTOF{
false};
115 size_t m_lowResSpecOffset{0};
117 std::unique_ptr<API::Progress> m_progress =
nullptr;
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Data processor algorithm to be used as a parent to workflow algorithms.
This is a parent algorithm that uses several different child algorithms to perform it's task.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
API::MatrixWorkspace_sptr m_inputW
DataObjects::GroupingWorkspace_sptr m_groupWS
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
std::vector< double > m_dmins
API::MatrixWorkspace_sptr m_lowResW
Low resolution TOF matrix workspace.
API::ITableWorkspace_sptr m_calibrationWS
std::vector< double > l2s
DataObjects::EventWorkspace_sptr m_outputEW
int version() const override
Algorithm's version for identification overriding a virtual method.
DataObjects::EventWorkspace_sptr m_lowResEW
Low resolution TOF event workspace.
std::vector< int32_t > specids
DataObjects::MaskWorkspace_sptr m_maskWS
const std::vector< std::string > seeAlso() const override
const std::string summary() const override
Summary of algorithms purpose.
std::vector< double > m_params
std::vector< double > tths
std::vector< double > m_resonanceLower
std::vector< double > m_resonanceUpper
std::vector< double > m_delta_ragged
API::MatrixWorkspace_sptr m_outputW
std::vector< double > phis
std::vector< double > m_dmaxs
DataObjects::EventWorkspace_sptr m_inputEW
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< GroupingWorkspace > GroupingWorkspace_sptr
shared pointer to the GroupingWorkspace class
std::shared_ptr< MaskWorkspace > MaskWorkspace_sptr
shared pointer to the MaskWorkspace class
std::shared_ptr< OffsetsWorkspace > OffsetsWorkspace_sptr
shared pointer to the OffsetsWorkspace class
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
Helper class which provides the Collimation Length for SANS instruments.