11#include "MantidDataHandling/DllConfig.h"
18namespace DataHandling {
33 bool useFullAddress =
false);
41 const std::string &instrumentAddress =
"");
44 const std::vector<double> &xAxis, int64_t initialSpectrum = 0,
bool pointData =
false,
45 const std::vector<detid_t> &detectorIDs = std::vector<int>(),
46 const std::set<detid_t> &acceptedID = std::set<int>(),
47 const std::tuple<short, short, short> &axisOrder = std::tuple<short, short, short>(0, 1, 2));
50 const std::vector<double> &xAxis, int64_t initialSpectrum = 0,
51 const std::set<detid_t> &acceptedID = std::set<int>(),
52 const std::vector<detid_t> &customID = std::vector<int>(),
53 const std::tuple<short, short, short> &axisOrder = std::tuple<short, short, short>(0, 1, 2));
55void loadingOrder(
const std::tuple<short, short, short> &axisOrder,
int *dataIndices);
63 const std::string &parent_class,
int level,
bool useFullAddress);
This class stores information regarding an experimental run as a series of log entries.
Templated class implementation of NXDataSet.
Implements NXentry Nexus class.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::string getStringFromNexusAddress(const Mantid::Nexus::NXEntry &, const std::string &)
void recurseAndAddNexusFieldsToWsRun(Nexus::File &filehandle, API::Run &runDetails, const std::string &parent_name, const std::string &parent_class, int level, bool useFullAddress)
Recursively add properties from a nexus file to the workspace run.
void fillMovingWorkspace(const API::MatrixWorkspace_sptr &, const Mantid::Nexus::NXInt &, const std::vector< double > &xAxis, int64_t initialSpectrum=0, const std::set< detid_t > &acceptedID=std::set< int >(), const std::vector< detid_t > &customID=std::vector< int >(), const std::tuple< short, short, short > &axisOrder=std::tuple< short, short, short >(0, 1, 2))
Fills workspace with histogram data from provided data structure.
double getInstrumentProperty(const API::MatrixWorkspace_sptr &, const std::string &)
void addNexusFieldsToWsRun(Nexus::File &filehandle, API::Run &runDetails, const std::string &entryName="", bool useFullAddress=false)
Add properties from a nexus file to the workspace run.
double calculateEnergy(double)
Calculate Neutron Energy from wavelength: .
void loadingOrder(const std::tuple< short, short, short > &axisOrder, int *dataIndices)
Handles non-standard loading order of the provided data, based on the provided data dimension order.
void rotateComponent(const API::MatrixWorkspace_sptr &ws, const std::string &componentName, const Kernel::Quat &rot)
LoadHelper::rotateComponent.
Nexus::NXInt getIntDataset(const Nexus::NXEntry &, const std::string &)
Fetches NXInt data from the requested group name in the entry provided.
Nexus::NXDouble getDoubleDataset(const Nexus::NXEntry &, const std::string &)
Fetches NXDouble data from the requested group name in the entry provided.
void moveComponent(const API::MatrixWorkspace_sptr &ws, const std::string &componentName, const Kernel::V3D &newPos)
LoadHelper::moveComponent.
double calculateTOF(double, double)
Calculate TOF from distance.
std::vector< double > getTimeBinningFromNexusAddress(const Mantid::Nexus::NXEntry &, const std::string &)
Gets the time binning from a Nexus float array Adds an extra bin at the end.
void fillStaticWorkspace(const API::MatrixWorkspace_sptr &, const Mantid::Nexus::NXInt &, const std::vector< double > &xAxis, int64_t initialSpectrum=0, bool pointData=false, const std::vector< detid_t > &detectorIDs=std::vector< int >(), const std::set< detid_t > &acceptedID=std::set< int >(), const std::tuple< short, short, short > &axisOrder=std::tuple< short, short, short >(0, 1, 2))
Fills workspace with histogram data from provided data structure.
std::string dateTimeInIsoFormat(const std::string &)
Parses the date as formatted at the ILL: 29-Jun-12 11:27:26 and converts it to the ISO format used in...
Kernel::V3D getComponentPosition(const API::MatrixWorkspace_sptr &ws, const std::string &componentName)
LoadHelper::getComponentPosition.
void loadEmptyInstrument(const API::MatrixWorkspace_sptr &ws, const std::string &instrumentName, const std::string &instrumentAddress="")
Loads empty instrument of chosen name into a provided workspace.
double getDoubleFromNexusAddress(const Mantid::Nexus::NXEntry &, const std::string &)
std::string findInstrumentNexusAddress(const Mantid::Nexus::NXEntry &)
Finds the address for the instrument name in the nexus file Usually of the form: entry0/<NXinstrument...
void replaceZeroErrors(const API::MatrixWorkspace_sptr &, double)
Replaces errors of bins with zero counts with provided value.
Helper class which provides the Collimation Length for SANS instruments.