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 <optional>
17#include <string>
18#include <vector>
19
20namespace Mantid {
21namespace CurveFitting {
22namespace Algorithms {
23
26 InputSpectraToFit(const std::string &nam, int ix, double isp, double iv, int p, API::MatrixWorkspace_sptr mws)
27 : name(nam), wsIdx(ix), spectrumNum(isp), numericValue(iv), period(p), ws(std::move(mws)) {}
29 InputSpectraToFit(const InputSpectraToFit &data) = default;
30
31 std::string name;
32 int wsIdx;
33 double spectrumNum;
34 double numericValue;
35 int period;
37};
39MANTID_CURVEFITTING_DLL void appendInputSpectraToList(std::vector<InputSpectraToFit> &nameList, const std::string &name,
40 const std::shared_ptr<API::MatrixWorkspace> &ws,
41 int workspaceIndex, int spectrumNumber, double start, double end,
42 int period, const bool &workspaceOptional);
43MANTID_CURVEFITTING_DLL std::optional<API::Workspace_sptr> getWorkspace(const std::string &name, int period);
44
46MANTID_CURVEFITTING_DLL std::vector<InputSpectraToFit> makeNames(const std::string &inputList, int default_wi,
47 int default_spec);
48
50 NOT_SET = -1,
52};
53
54} // namespace Algorithms
55} // namespace CurveFitting
56} // namespace Mantid
std::string name
Definition Run.cpp:60
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
MANTID_CURVEFITTING_DLL void appendInputSpectraToList(std::vector< InputSpectraToFit > &nameList, const std::string &name, const std::shared_ptr< API::MatrixWorkspace > &ws, int workspaceIndex, int spectrumNumber, double start, double end, int period, const bool &workspaceOptional)
Get a workspace.
MANTID_CURVEFITTING_DLL std::optional< API::Workspace_sptr > getWorkspace(const std::string &name, int period)
MANTID_CURVEFITTING_DLL std::vector< InputSpectraToFit > makeNames(const std::string &inputList, int default_wi, int default_spec)
Create a list of input workspace names.
Helper class which provides the Collimation Length for SANS instruments.
STL namespace.
double spectrumNum
Spectrum number of the spectra to fit.
InputSpectraToFit(const std::string &nam, int ix, double isp, double iv, int p, API::MatrixWorkspace_sptr mws)
Constructor.
int period
Period, needed if a file contains several periods.
int wsIdx
Workspace index of the spectra to fit.
API::MatrixWorkspace_sptr ws
shared pointer to the workspace
InputSpectraToFit(const InputSpectraToFit &data)=default
Copy constructor.
double numericValue
Numerix axis value associated with the spectra to fit.