Mantid
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
LoadHelper.h File Reference
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAPI/Run.h"
#include "MantidDataHandling/DllConfig.h"
#include "MantidKernel/Quat.h"
#include "MantidNexus/NexusClasses_fwd.h"
#include "MantidNexus/NexusFile_fwd.h"

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::DataHandling
 
namespace  Mantid::DataHandling::LoadHelper
 LoadHelper : Auxiliary functions for Loading Files.
 

Typedefs

using Mantid::DataHandling::LoadHelper::detid_t = int32_t
 

Functions

void Mantid::DataHandling::LoadHelper::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 Mantid::DataHandling::LoadHelper::calculateEnergy (double)
 Calculate Neutron Energy from wavelength: \( E = h^2 / 2m\lambda ^2 \).
 
double Mantid::DataHandling::LoadHelper::calculateTOF (double, double)
 Calculate TOF from distance.
 
std::string Mantid::DataHandling::LoadHelper::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 Mantid: ISO8601 format string: "yyyy-mm-ddThh:mm:ss[Z+-]tz:tz".
 
void Mantid::DataHandling::LoadHelper::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.
 
void Mantid::DataHandling::LoadHelper::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 Mantid::DataHandling::LoadHelper::findInstrumentNexusAddress (const Mantid::Nexus::NXEntry &)
 Finds the address for the instrument name in the nexus file Usually of the form: entry0/<NXinstrument class>/name.
 
Kernel::V3D Mantid::DataHandling::LoadHelper::getComponentPosition (const API::MatrixWorkspace_sptr &ws, const std::string &componentName)
 LoadHelper::getComponentPosition.
 
Nexus::NXDouble Mantid::DataHandling::LoadHelper::getDoubleDataset (const Nexus::NXEntry &, const std::string &)
 Fetches NXDouble data from the requested group name in the entry provided.
 
double Mantid::DataHandling::LoadHelper::getDoubleFromNexusAddress (const Mantid::Nexus::NXEntry &, const std::string &)
 
double Mantid::DataHandling::LoadHelper::getInstrumentProperty (const API::MatrixWorkspace_sptr &, const std::string &)
 
Nexus::NXInt Mantid::DataHandling::LoadHelper::getIntDataset (const Nexus::NXEntry &, const std::string &)
 Fetches NXInt data from the requested group name in the entry provided.
 
std::string Mantid::DataHandling::LoadHelper::getStringFromNexusAddress (const Mantid::Nexus::NXEntry &, const std::string &)
 
std::vector< double > Mantid::DataHandling::LoadHelper::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 Mantid::DataHandling::LoadHelper::loadEmptyInstrument (const API::MatrixWorkspace_sptr &ws, const std::string &instrumentName, const std::string &instrumentAddress="")
 Loads empty instrument of chosen name into a provided workspace.
 
void Mantid::DataHandling::LoadHelper::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 Mantid::DataHandling::LoadHelper::moveComponent (const API::MatrixWorkspace_sptr &ws, const std::string &componentName, const Kernel::V3D &newPos)
 LoadHelper::moveComponent.
 
void Mantid::DataHandling::LoadHelper::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 Mantid::DataHandling::LoadHelper::replaceZeroErrors (const API::MatrixWorkspace_sptr &, double)
 Replaces errors of bins with zero counts with provided value.
 
void Mantid::DataHandling::LoadHelper::rotateComponent (const API::MatrixWorkspace_sptr &ws, const std::string &componentName, const Kernel::Quat &rot)
 LoadHelper::rotateComponent.