Mantid
Loading...
Searching...
No Matches
MuonProcess.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
12#include "MantidKernel/System.h"
13
14namespace Mantid {
15namespace WorkflowAlgorithms {
19public:
20 const std::string name() const override;
22 const std::string summary() const override { return "Processes and analyses Muon workspace."; }
23
24 int version() const override;
25 const std::string category() const override;
26
28 std::map<std::string, std::string> validateInputs() override;
29
30private:
31 void init() override;
32 void exec() override;
33
34 // We dont' want processGroups to be called
35 bool checkGroups() override { return false; }
36
39 API::WorkspaceGroup_sptr groupWorkspaces(const API::WorkspaceGroup_sptr &wsGroup,
40 const DataObjects::TableWorkspace_sptr &grouping);
41
45
48 API::MatrixWorkspace_sptr correctWorkspace(API::MatrixWorkspace_sptr ws, double loadedTimeZero);
49
51 API::WorkspaceGroup_sptr correctWorkspaces(const API::WorkspaceGroup_sptr &wsGroup, double loadedTimeZero);
52
54 std::string buildErrorString(const std::vector<int> &invalidPeriods) const;
55};
56
57} // namespace WorkflowAlgorithms
58} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Data processor algorithm to be used as a parent to workflow algorithms.
MuonProcess : Processes and analyses Muon workspace.
Definition: MuonProcess.h:18
const std::string summary() const override
Summary of algorithms purpose.
Definition: MuonProcess.h:22
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
Helper class which provides the Collimation Length for SANS instruments.