24 double operator()(
const double t,
size_t spec);
36 double operator()(
const double t,
size_t spec);
58template <
typename Function = yDataAsymmetry>
62 dataGenerator,
static_cast<int>(nspec), 0.0, 1.0, (1.0 /
static_cast<double>(maxt)),
true,
eData());
64 for (
auto g = 0u; g < nspec; ++g) {
65 auto &spec = ws->getSpectrum(g);
66 spec.addDetectorID(g + 1);
67 spec.setSpectrumNo(g + 1);
70 ws->mutableRun().addProperty(
"goodfrm", 10);
72 std::shared_ptr<Mantid::Geometry::Instrument> inst1 = std::make_shared<Mantid::Geometry::Instrument>();
73 inst1->setName(
"EMU");
74 ws->setInstrument(inst1);
75 ws->mutableRun().addProperty(
"run_number", 12345);
86 size_t detectorIDseed = 1);
89 bool hist,
double xStart,
double xEnd);
97 const std::string &wsGroupName);
100 const std::string &wsGroupName);
121 const std::string &wsGroupName);
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
static constexpr double MuonLifetime
Muon lifetime.
Mantid::API::WorkspaceGroup_sptr createWorkspaceGroupConsecutiveDetectorIDs(const int &nWorkspaces, size_t nspec, size_t maxt, const std::string &wsGroupName)
Creates a grouped workspace containing multiple workspaces with multiple spectra, the detector IDs ar...
Mantid::API::ITableWorkspace_sptr createTimeZeroTable(const size_t &numSpec, const std::vector< double > &timeZeros)
Create a simple time zero TableWorkspace with one column (time zero)
Mantid::API::WorkspaceGroup_sptr createMultiPeriodAsymmetryData(const int &nPeriods, size_t nspec, size_t maxt, const std::string &wsGroupName)
Mantid::API::MatrixWorkspace_sptr createCountsWorkspace(size_t nspec, size_t maxt, double seed, size_t detectorIDseed=1)
Create a matrix workspace appropriate for Group Counts.
Mantid::API::WorkspaceGroup_sptr createMultiPeriodWorkspaceGroup(const int &nPeriods, size_t nspec, size_t maxt, const std::string &wsGroupName)
Create a WorkspaceGroup and add to the ADS, populate with MatrixWorkspaces simulating periods as used...
Mantid::API::MatrixWorkspace_sptr createAsymmetryWorkspace(std::size_t nspec, std::size_t maxt, Function dataGenerator=yDataAsymmetry())
Create a matrix workspace appropriate for Group Asymmetry.
Mantid::API::ITableWorkspace_sptr createDeadTimeTable(const size_t &nspec, std::vector< double > &deadTimes)
Create a simple dead time TableWorkspace with two columns (spectrum number and dead time).
Mantid::API::MatrixWorkspace_sptr createWorkspaceWithInstrumentandRun(const std::string &instrName, int runNumber, size_t nSpectra=1)
Creates a single-point workspace with instrument and runNumber set.
Mantid::DataObjects::Workspace2D_sptr create2DWorkspaceFromFunction(fT yFunc, int nSpec, double x0, double x1, double dx, bool isHist=false, gT eFunc=ReturnOne())
Creates a 2D workspace from taking the function values from the input function.
double operator()(const double, size_t)
double operator()(const double t, size_t spec)
double operator()(const double t, size_t spec)