Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
SaveNXcanSASHelper.h File Reference
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAPI/WorkspaceGroup_fwd.h"
#include "MantidDataHandling/DllConfig.h"
#include <H5Cpp.h>
#include <filesystem>
#include <vector>

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::NXcanSAS
 

Functions

void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addData1D (H5::Group &data, const MatrixWorkspace_sptr &workspace)
 Adds signal and Q data to the data group from 1D reduced SANS data.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addData2D (H5::Group &data, const MatrixWorkspace_sptr &workspace)
 Stores the 2D signal and Q data in the HDF5 file.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addDetectors (H5::Group &group, const MatrixWorkspace_sptr &workspace, const std::vector< std::string > &detectorNames)
 Adds detector info to the sas group.
 
std::string MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addDigit (size_t index)
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addEMFieldDirection (H5::Group &group, const std::string &emFieldDir)
 Adds the Field direction of either the magnetic or the electric field on the sample.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addInstrument (H5::Group &group, const MatrixWorkspace_sptr &workspace, const std::string &radiationSource, const std::string &geometry, double beamHeight, double beamWidth, const std::vector< std::string > &detectorNames)
 Add the instrument group to the NXcanSAS file.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addPolarizedData (H5::Group &data, const WorkspaceGroup_sptr &wsGroup, const std::string &inputSpinStates)
 Adds signal, Q and spin data to the data group from 1D or 2D reduced polarized SANS data.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addPolarizer (H5::Group &group, const MatrixWorkspace_sptr &workspace, const std::string &componentName, const std::string &componentType, const std::string &groupSuffix)
 Add the polarizer component information to the instrument cansas group.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addProcess (H5::Group &group, const Mantid::API::MatrixWorkspace_sptr &workspace)
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addProcess (H5::Group &group, const MatrixWorkspace_sptr &workspace, const MatrixWorkspace_sptr &canWorkspace)
 Add the process information to the NXcanSAS file.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addProcessEntry (H5::Group &group, const std::string &entryName, const std::string &entryValue)
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addSample (H5::Group &group, const double &sampleThickness)
 Adds sample thickness information to the sas sample group.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addSampleEMFields (H5::Group &group, const MatrixWorkspace_sptr &workspace, const std::string &emFieldStrengthLog, const std::string &emFieldDir)
 Adds the direction and strength of either magnetic or electric field on the sample.
 
void MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::addTransmission (H5::Group &group, const MatrixWorkspace_const_sptr &workspace, const std::string &transmissionName)
 Add a transmission group to the cansas file, including metadata extracted from the transmission workspace.
 
std::string MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::makeCanSASRelaxedName (const std::string &input)
 This makes out of an input a relaxed name, something conforming to "[A-Za-z_][\w_]*" For now "-" is converted to "_", "." is converted to "_", else we throw.
 
H5::H5File MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::prepareFile (const std::filesystem::path &path)
 Creates and opens a H5 File in the given path.
 
std::filesystem::path MANTID_DATAHANDLING_DLL Mantid::DataHandling::NXcanSAS::prepareFilename (const std::string &baseFilename, bool addDigitSuffix=false, size_t index=0)