Mantid
Loading...
Searching...
No Matches
PlotPeakByLogValueHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 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#include "MantidAPI/DllConfig.h"
9
14#include "MantidCurveFitting/DllConfig.h"
15
16#include <boost/optional.hpp>
17#include <string>
18#include <vector>
19
20namespace Mantid {
21namespace CurveFitting {
22namespace Algorithms {
23
26 InputSpectraToFit(const std::string &nam, int ix, int p) : name(nam), i(ix), period(p) {}
28 InputSpectraToFit(const InputSpectraToFit &data) = default;
29
30 std::string name;
31 int i;
32 int period;
34};
36MANTID_CURVEFITTING_DLL std::vector<int> getWorkspaceIndicesFromAxes(API::MatrixWorkspace &ws, int workspaceIndex,
37 int spectrumNumber, double start, double end);
38MANTID_CURVEFITTING_DLL boost::optional<API::Workspace_sptr> getWorkspace(const std::string &name, int period);
39
41MANTID_CURVEFITTING_DLL std::vector<InputSpectraToFit> makeNames(const std::string &inputList, int default_wi,
42 int default_spec);
43
45 NOT_SET = -1,
47};
48
49} // namespace Algorithms
50} // namespace CurveFitting
51} // namespace Mantid
Base MatrixWorkspace Abstract Class.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
MANTID_CURVEFITTING_DLL std::vector< InputSpectraToFit > makeNames(const std::string &inputList, int default_wi, int default_spec)
Create a list of input workspace names.
MANTID_CURVEFITTING_DLL boost::optional< API::Workspace_sptr > getWorkspace(const std::string &name, int period)
MANTID_CURVEFITTING_DLL std::vector< int > getWorkspaceIndicesFromAxes(API::MatrixWorkspace &ws, int workspaceIndex, int spectrumNumber, double start, double end)
Get a workspace.
Helper class which provides the Collimation Length for SANS instruments.
InputSpectraToFit(const std::string &nam, int ix, int p)
Constructor.
int period
Period, needed if a file contains several periods.
API::MatrixWorkspace_sptr ws
shared pointer to the workspace
InputSpectraToFit(const InputSpectraToFit &data)=default
Copy constructor.