14#include "MantidHistogramData/BinEdges.h"
18#include <boost/variant.hpp>
19#include <boost/variant/apply_visitor.hpp>
20#include <boost/variant/static_visitor.hpp>
23namespace IndirectFitDataCreationHelper {
33 std::vector<std::string>
const &labels,
34 int const &numberOfBins = 10);
36 std::vector<double>
const &labels,
37 int const &numberOfBins = 10);
39 int const &numberOfBins = 10);
41 std::vector<std::string>
const &labels,
42 int const &numberOfSpectra,
43 int const &numberOfBins = 10);
50 Mantid::HistogramData::BinEdges
const &binEdges);
54 int const &xLength,
int const &yLength);
75 return std::dynamic_pointer_cast<Mantid::API::MatrixWorkspace>(
83 template <
typename T,
typename U>
bool operator()(
const T &,
const U &)
const {
87 template <
typename T>
bool operator()(
const T &lhs,
const T &
rhs)
const {
return lhs ==
rhs; }
const std::vector< double > & rhs
IPeaksWorkspace_sptr workspace
Class to represent a numeric axis of a workspace.
Class to represent a text axis of a workspace.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< T > createWorkspace(InitArgs... args)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Mantid::API::MatrixWorkspace_sptr createWorkspaceWithInstrument(int const &xLength, int const &yLength)
int const END_X_COLUMN(3)
Mantid::API::NumericAxis * getNumericAxis(int const &numberOfLabels, std::vector< double > const &values)
Mantid::API::MatrixWorkspace_sptr setWorkspaceProperties(Mantid::API::MatrixWorkspace_sptr workspace, int const &xLength, int const &yLength)
Mantid::API::MatrixWorkspace_sptr createWorkspaceWithTextAxis(int const &numberOfSpectra, std::vector< std::string > const &labels, int const &numberOfBins=10)
Mantid::API::MatrixWorkspace_sptr setWorkspaceEFixed(Mantid::API::MatrixWorkspace_sptr workspace, int const &xLength)
Mantid::API::MatrixWorkspace_sptr setWorkspaceBinEdges(Mantid::API::MatrixWorkspace_sptr workspace, int const &yLength, Mantid::HistogramData::BinEdges const &binEdges)
Mantid::API::MatrixWorkspace_sptr createInstrumentWorkspace(int const &xLength, int const &yLength)
Mantid::API::WorkspaceGroup_sptr createGroupWorkspaceWithTextAxes(std::size_t const &numberOfWorkspaces, std::vector< std::string > const &labels, int const &numberOfSpectra, int const &numberOfBins=10)
Mantid::API::MatrixWorkspace_sptr createWorkspaceWithBinValues(int const &numberOfSpectra, std::vector< double > const &labels, int const &numberOfBins=10)
Mantid::API::MatrixWorkspace_sptr createWorkspaceWithInelasticInstrument(int const &yLength)
Mantid::API::WorkspaceGroup_sptr createGroupWorkspace(std::size_t const &numberOfWorkspaces, int const &numberOfSpectra, int const &numberOfBins=10)
int const EXCLUDE_REGION_COLUMN(4)
Mantid::API::TextAxis * getTextAxis(int const &numberOfSpectra, std::vector< std::string > const &labels)
int const START_X_COLUMN(2)
Commonly used constant variables.
Helper class which provides the Collimation Length for SANS instruments.
This is used to compare Spectra which is implemented as a boost::variant.
bool operator()(const T &, const U &) const
bool operator()(const T &lhs, const T &rhs) const
Simple struct used to access features of the ADS No destructor so ensure you tearDown the ADS.
bool doesExist(std::string const &workspaceName)
Mantid::API::MatrixWorkspace_sptr retrieveWorkspace(std::string const &workspaceName)
void addOrReplace(std::string const &workspaceName, T const &workspace)
SetUpADSWithWorkspace(std::string const &inputWSName, T const &workspace)