Mantid
|
#include <LoadMuonNexusV2NexusHelper.h>
Public Member Functions | |
std::vector< int > | getIntVector (const int &numPeriods, const std::string &name) const |
int | getNumberOfPeriods () const |
std::string | getPeriodFramesRequested (const int &numPeriods) const |
std::string | getPeriodLabels () const |
std::string | getPeriodOutput (const int &numPeriods) const |
std::string | getPeriodRawFrames (const int &numPeriods) const |
std::string | getPeriodSequenceString (const int &numPeriods) const |
std::string | getPeriodTotalCounts (const int &numPeriods) const |
std::string | getPeriodTypes (const int &numPeriods) const |
std::vector< double > | loadDeadTimesFromNexus (const std::vector< detid_t > &loadedDetectors, bool isFileMultiPeriod, int periodNumber) |
std::vector< detid_t > | loadDetectorGroupingFromNexus (const std::vector< detid_t > &loadedDetectors, bool isFileMultiPeriod, int periodNumber) |
double | loadFirstGoodDataFromNexus () |
NeXus::NXInt | loadGoodFramesDataFromNexus (bool isFileMultiPeriod) |
double | loadLastGoodDataFromNexus () |
std::string | loadMainFieldDirectionFromNexus () |
LoadMuonNexusV2NexusHelper (const NeXus::NXEntry &entry) | |
MuonNexus::SampleInformation | loadSampleInformationFromNexus () |
double | loadTimeZeroFromNexusFile () |
std::vector< double > | loadTimeZeroListFromNexusFile (size_t numSpectra) |
Private Attributes | |
const NeXus::NXEntry & | m_entry |
Definition at line 25 of file LoadMuonNexusV2NexusHelper.h.
Mantid::DataHandling::LoadMuonNexusV2NexusHelper::LoadMuonNexusV2NexusHelper | ( | const NeXus::NXEntry & | entry | ) |
Definition at line 61 of file LoadMuonNexusV2NexusHelper.cpp.
std::vector< int > Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getIntVector | ( | const int & | numPeriods, |
const std::string & | name | ||
) | const |
Definition at line 254 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXDataSetTyped< T >::load(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), Mantid::NeXus::NXClass::openNXInt(), and Mantid::DataHandling::NeXusEntry::PERIOD.
Referenced by getPeriodFramesRequested(), getPeriodOutput(), getPeriodRawFrames(), getPeriodSequenceString(), and getPeriodTypes().
int Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getNumberOfPeriods | ( | ) | const |
Definition at line 244 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXClass::getInt(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), and Mantid::DataHandling::NeXusEntry::PERIOD.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodFramesRequested | ( | const int & | numPeriods | ) | const |
Definition at line 274 of file LoadMuonNexusV2NexusHelper.cpp.
References getIntVector(), and Mantid::DataHandling::NeXusEntry::REQUESTED.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodLabels | ( | ) | const |
Definition at line 249 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXClass::getString(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), and Mantid::DataHandling::NeXusEntry::PERIOD.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodOutput | ( | const int & | numPeriods | ) | const |
Definition at line 280 of file LoadMuonNexusV2NexusHelper.cpp.
References getIntVector(), and Mantid::DataHandling::NeXusEntry::PERIODOUTPUT.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodRawFrames | ( | const int & | numPeriods | ) | const |
Definition at line 277 of file LoadMuonNexusV2NexusHelper.cpp.
References getIntVector(), and Mantid::DataHandling::NeXusEntry::RAWFRAMES.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodSequenceString | ( | const int & | numPeriods | ) | const |
Definition at line 266 of file LoadMuonNexusV2NexusHelper.cpp.
References getIntVector(), and Mantid::DataHandling::NeXusEntry::SEQUENCES.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodTotalCounts | ( | const int & | numPeriods | ) | const |
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::getPeriodTypes | ( | const int & | numPeriods | ) | const |
Definition at line 270 of file LoadMuonNexusV2NexusHelper.cpp.
References getIntVector(), and Mantid::DataHandling::NeXusEntry::TYPE.
std::vector< double > Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadDeadTimesFromNexus | ( | const std::vector< detid_t > & | loadedDetectors, |
bool | isFileMultiPeriod, | ||
int | periodNumber | ||
) |
Definition at line 129 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXClass::containsDataSet(), Mantid::DataHandling::NeXusEntry::DEADTIME, Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::NeXus::NXDataSetTyped< T >::load(), m_entry, Mantid::NeXus::NXClass::openNXFloat(), and Mantid::NeXus::NXClass::openNXGroup().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDeadTimeTable(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDeadTimeTable().
std::vector< detid_t > Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadDetectorGroupingFromNexus | ( | const std::vector< detid_t > & | loadedDetectors, |
bool | isFileMultiPeriod, | ||
int | periodNumber | ||
) |
Definition at line 92 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXClass::containsDataSet(), Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::DataHandling::NeXusEntry::GROUPING, Mantid::NeXus::NXDataSetTyped< T >::load(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), and Mantid::NeXus::NXClass::openNXInt().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDetectorGrouping().
double Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadFirstGoodDataFromNexus | ( | ) |
Definition at line 155 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXObject::attributes, Mantid::DataHandling::NeXusEntry::COUNTS, Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::DataHandling::NeXusEntry::FIRSTGOODBIN, Mantid::NeXus::NXClass::getDataSetInfo(), Mantid::NeXus::NXClass::getFloat(), Mantid::NeXus::NXClass::getInt(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), Mantid::NeXus::NXClass::openNXInt(), Mantid::DataHandling::NeXusEntry::RESOLUTION, and Mantid::NeXus::NXInfo::type.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadMuonLogData(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadMuonLogData().
NXInt Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadGoodFramesDataFromNexus | ( | bool | isFileMultiPeriod | ) |
Definition at line 64 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::DataHandling::NeXusEntry::GOODFRAMES, Mantid::NeXus::NXDataSetTyped< T >::load(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), Mantid::NeXus::NXClass::openNXInt(), and Mantid::DataHandling::NeXusEntry::PERIOD.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadGoodFrames(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadGoodFrames().
double Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadLastGoodDataFromNexus | ( | ) |
Definition at line 180 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::NeXus::NXObject::attributes, Mantid::DataHandling::NeXusEntry::COUNTS, Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::NeXus::NXClass::getDataSetInfo(), Mantid::NeXus::NXClass::getFloat(), Mantid::NeXus::NXClass::getInt(), Mantid::DataHandling::NeXusEntry::LASTGOODBIN, m_entry, Mantid::NeXus::NXClass::openNXGroup(), Mantid::NeXus::NXClass::openNXInt(), Mantid::DataHandling::NeXusEntry::RESOLUTION, and Mantid::NeXus::NXInfo::type.
std::string Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadMainFieldDirectionFromNexus | ( | ) |
Definition at line 113 of file LoadMuonNexusV2NexusHelper.cpp.
References m_entry, Mantid::NeXus::NXClass::openNXChar(), Mantid::Geometry::orientation(), and Mantid::DataHandling::NeXusEntry::ORIENTATON.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadMuonLogData(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadMuonLogData().
MuonNexus::SampleInformation Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadSampleInformationFromNexus | ( | ) |
Definition at line 231 of file LoadMuonNexusV2NexusHelper.cpp.
References m_entry, Mantid::DataHandling::MuonNexus::SampleInformation::magneticField, Mantid::DataHandling::NeXusEntry::MAGNETICFIELD, Mantid::NeXus::NXClass::openNXGroup(), Mantid::DataHandling::NeXusEntry::SAMPLE, Mantid::DataHandling::MuonNexus::SampleInformation::temperature, and Mantid::DataHandling::NeXusEntry::TEMPERATURE.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadMuonLogData(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadMuonLogData().
double Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadTimeZeroFromNexusFile | ( | ) |
Definition at line 205 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::NeXus::NXClass::getFloat(), m_entry, Mantid::NeXus::NXClass::openNXGroup(), and Mantid::DataHandling::NeXusEntry::TIMEZERO.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::applyTimeZeroCorrection(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::applyTimeZeroCorrection().
std::vector< double > Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadTimeZeroListFromNexusFile | ( | size_t | numSpectra | ) |
Definition at line 215 of file LoadMuonNexusV2NexusHelper.cpp.
References Mantid::DataHandling::NeXusEntry::DETECTOR, Mantid::NeXus::NXClass::getFloat(), m_entry, Mantid::NeXus::NXClass::openNXDouble(), Mantid::NeXus::NXClass::openNXGroup(), Mantid::DataHandling::NeXusEntry::TIMEZERO, and Mantid::NeXus::NXDataSetTyped< T >::vecBuffer().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::getTimeZeroTable(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::getTimeZeroTable().
|
private |
Definition at line 61 of file LoadMuonNexusV2NexusHelper.h.
Referenced by getIntVector(), getNumberOfPeriods(), getPeriodLabels(), getPeriodTotalCounts(), loadDeadTimesFromNexus(), loadDetectorGroupingFromNexus(), loadFirstGoodDataFromNexus(), loadGoodFramesDataFromNexus(), loadLastGoodDataFromNexus(), loadMainFieldDirectionFromNexus(), loadSampleInformationFromNexus(), loadTimeZeroFromNexusFile(), and loadTimeZeroListFromNexusFile().