Mantid
Loading...
Searching...
No Matches
SANSInstrumentCreationHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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/*********************************************************************************
8 * PLEASE READ THIS!!!!!!!
9 *
10 * This header MAY NOT be included in any test from a package below the level
11 *of
12 * DataHandling (e.g. Kernel, Geometry, API, DataObjects).
13 * I.e. It can only be used by plugin/algorithm-level packages (e.g.
14 *DataHandling)
15 *********************************************************************************/
16#pragma once
17
19
21public:
22 // Number of detector pixels in each dimension
23 static const int nBins;
24 // The test instrument has 2 monitors
25 static const int nMonitors;
26
27 /*
28 * Generate a SANS test workspace, with instrument geometry.
29 * The geometry is the SANSTEST geometry, with a 30x30 pixel 2D detector.
30 *
31 * @param workspace: name of the workspace to be created.
32 */
38 static void runLoadInstrument(const std::string &inst_name, const Mantid::DataObjects::Workspace2D_sptr &workspace);
39
47 static void runLoadMappingTable(const Mantid::DataObjects::Workspace2D_sptr &workspace, int nxbins, int nybins);
48};
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
static void runLoadMappingTable(const Mantid::DataObjects::Workspace2D_sptr &workspace, int nxbins, int nybins)
Populate spectra mapping to detector IDs.
static void runLoadInstrument(const std::string &inst_name, const Mantid::DataObjects::Workspace2D_sptr &workspace)
Run the Child Algorithm LoadInstrument (as for LoadRaw)
static Mantid::DataObjects::Workspace2D_sptr createSANSInstrumentWorkspace(const std::string &workspace)
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D