20using namespace DataObjects;
22namespace MDAlgorithms::MDAlgorithmsTestHelper {
41 ws1->getBoxController()->setSplitThreshold(100);
42 ws1->setCoordinateSystem(coord);
44 wsName, std::dynamic_pointer_cast<Mantid::API::IMDEventWorkspace>(ws1));
46 snEvents.c_str(),
"RandomizeSignal",
"1");
48 std::string filename = wsName +
".nxs";
52 saver->getPropertyValue(
"Filename").c_str(),
"FileBackEnd",
"1",
"Memory",
"0");
54 return std::dynamic_pointer_cast<MDEventWorkspace3Lean>(
78 MDEventsTestHelper::makeAnyMDEWWithFrames<MDLeanEvent<3>, 3>(10, 0.0, 10.0, frame, 0);
79 ws1->getBoxController()->setSplitThreshold(100);
80 ws1->setCoordinateSystem(coord);
82 wsName, std::dynamic_pointer_cast<Mantid::API::IMDEventWorkspace>(ws1));
84 snEvents.c_str(),
"RandomizeSignal",
"1");
86 std::string filename = wsName +
".nxs";
90 saver->getPropertyValue(
"Filename").c_str(),
"FileBackEnd",
"1",
"Memory",
"0");
92 return std::dynamic_pointer_cast<MDEventWorkspace3Lean>(
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
MDFrame : The coordinate frame for a dimension, or set of dimensions in a multidimensional workspace.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::size_t numEvents(::NeXus::File &file, bool &hasTotalCounts, bool &oldNeXusFileNames, const std::string &prefix, const NexusHDF5Descriptor &descriptor)
Get the number of events in the currently opened group.
SpecialCoordinateSystem
Special coordinate systems for Q3D.
DataObjects::MDEventWorkspace3Lean::sptr makeFileBackedMDEW(const std::string &wsName, bool fileBacked, long numEvents=10000, Kernel::SpecialCoordinateSystem coord=Kernel::None)
Make a (optionally) file backed MDEventWorkspace with nEvents fake data points the points are randoml...
DataObjects::MDEventWorkspace3Lean::sptr makeFileBackedMDEWwithMDFrame(const std::string &wsName, bool fileBacked, const Mantid::Geometry::MDFrame &frame, long numEvents=10000, Kernel::SpecialCoordinateSystem coord=Kernel::None)
Make a (optionally) file backed MDEventWorkspace with nEvents fake data points the points are randoml...
Helper class which provides the Collimation Length for SANS instruments.
std::string to_string(const wide_integer< Bits, Signed > &n)