Mantid
|
#include <SinglePeriodLoadMuonStrategy.h>
Public Member Functions | |
void | applyTimeZeroCorrection () override |
Performs time-zero correction on the loaded workspace. More... | |
API::Workspace_sptr | getTimeZeroTable () override |
Gets time zero table from loaded time zeros. More... | |
API::Workspace_sptr | loadDeadTimeTable () const override |
Loads deadtime table from nexus file. More... | |
API::Workspace_sptr | loadDetectorGrouping () const override |
Loads detector grouping. More... | |
void | loadGoodFrames () override |
Loads the good frames data into the stored workspace object. More... | |
void | loadMuonLogData () override |
Loads Muon specific logs into the stored workspace These are logs which are not loaded by LoadISISNexus. More... | |
SinglePeriodLoadMuonStrategy (Kernel::Logger &g_log, const std::string &filename, LoadMuonNexusV2NexusHelper &nexusLoader, DataObjects::Workspace2D &workspace, int entryNumber, bool isFileMultiPeriod) | |
Public Member Functions inherited from Mantid::DataHandling::LoadMuonStrategy | |
virtual void | applyTimeZeroCorrection ()=0 |
virtual API::Workspace_sptr | getTimeZeroTable ()=0 |
virtual API::Workspace_sptr | loadDeadTimeTable () const =0 |
virtual API::Workspace_sptr | loadDetectorGrouping () const =0 |
virtual void | loadGoodFrames ()=0 |
virtual void | loadMuonLogData ()=0 |
LoadMuonStrategy (Kernel::Logger &g_log, std::string filename, LoadMuonNexusV2NexusHelper &nexusLoader) | |
virtual | ~LoadMuonStrategy ()=default |
Private Member Functions | |
std::vector< detid_t > | getLoadedDetectors () |
Finds the detectors which are loaded in the stored workspace. More... | |
Private Attributes | |
std::vector< detid_t > | m_detectors |
int | m_entryNumber |
bool | m_isFileMultiPeriod |
DataObjects::Workspace2D & | m_workspace |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::DataHandling::LoadMuonStrategy | |
DataObjects::TableWorkspace_sptr | createDeadTimeTable (const std::vector< detid_t > &detectorsLoaded, const std::vector< double > &deadTimes) const |
Creates the deadtime table for the loaded detectors . More... | |
DataObjects::TableWorkspace_sptr | createDetectorGroupingTable (const std::vector< detid_t > &specToLoad, const std::vector< detid_t > &grouping) const |
Creates Detector Grouping Table . More... | |
std::vector< detid_t > | getLoadedDetectorsFromWorkspace (const DataObjects::Workspace2D &localWorkspace) const |
Determines the detectors loaded in the input workspace. More... | |
API::Workspace_sptr | loadDefaultDetectorGrouping (const DataObjects::Workspace2D &localWorkspace) const |
Loads default detector grouping, if this isn't present return dummy grouping. More... | |
Protected Attributes inherited from Mantid::DataHandling::LoadMuonStrategy | |
const std::string | m_filename |
Kernel::Logger & | m_logger |
LoadMuonNexusV2NexusHelper & | m_nexusLoader |
Definition at line 14 of file SinglePeriodLoadMuonStrategy.h.
Mantid::DataHandling::SinglePeriodLoadMuonStrategy::SinglePeriodLoadMuonStrategy | ( | Kernel::Logger & | g_log, |
const std::string & | filename, | ||
LoadMuonNexusV2NexusHelper & | nexusLoader, | ||
DataObjects::Workspace2D & | workspace, | ||
int | entryNumber, | ||
bool | isFileMultiPeriod | ||
) |
Definition at line 22 of file SinglePeriodLoadMuonStrategy.cpp.
|
overridevirtual |
Performs time-zero correction on the loaded workspace.
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 101 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataObjects::Workspace2D::getNumberHistograms(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadTimeZeroFromNexusFile(), Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader, m_workspace, and Mantid::API::MatrixWorkspace::mutableX().
|
private |
Finds the detectors which are loaded in the stored workspace.
Definition at line 112 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::LoadMuonStrategy::getLoadedDetectorsFromWorkspace(), and m_workspace.
|
overridevirtual |
Gets time zero table from loaded time zeros.
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 93 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::createTimeZeroTable(), Mantid::DataObjects::Workspace2D::getNumberHistograms(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadTimeZeroListFromNexusFile(), Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader, and m_workspace.
|
overridevirtual |
Loads deadtime table from nexus file.
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 85 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::LoadMuonStrategy::createDeadTimeTable(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadDeadTimesFromNexus(), m_detectors, m_entryNumber, m_isFileMultiPeriod, and Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader.
|
overridevirtual |
Loads detector grouping.
If no entry in NeXus file for grouping, load it from the IDF. stored
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 69 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::LoadMuonStrategy::createDetectorGroupingTable(), Mantid::DataHandling::LoadMuonStrategy::loadDefaultDetectorGrouping(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadDetectorGroupingFromNexus(), m_detectors, m_entryNumber, m_isFileMultiPeriod, Mantid::DataHandling::LoadMuonStrategy::m_logger, Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader, m_workspace, and Mantid::Kernel::Logger::notice().
|
overridevirtual |
Loads the good frames data into the stored workspace object.
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 49 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadGoodFramesDataFromNexus(), m_entryNumber, m_isFileMultiPeriod, Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader, m_workspace, Mantid::API::ExperimentInfo::mutableRun(), and Mantid::API::LogManager::removeProperty().
|
overridevirtual |
Loads Muon specific logs into the stored workspace These are logs which are not loaded by LoadISISNexus.
Implements Mantid::DataHandling::LoadMuonStrategy.
Definition at line 33 of file SinglePeriodLoadMuonStrategy.cpp.
References Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadFirstGoodDataFromNexus(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadMainFieldDirectionFromNexus(), Mantid::DataHandling::LoadMuonNexusV2NexusHelper::loadSampleInformationFromNexus(), Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader, m_workspace, and Mantid::API::ExperimentInfo::mutableRun().
|
private |
Definition at line 37 of file SinglePeriodLoadMuonStrategy.h.
Referenced by loadDeadTimeTable(), and loadDetectorGrouping().
|
private |
Definition at line 35 of file SinglePeriodLoadMuonStrategy.h.
Referenced by loadDeadTimeTable(), loadDetectorGrouping(), and loadGoodFrames().
|
private |
Definition at line 36 of file SinglePeriodLoadMuonStrategy.h.
Referenced by loadDeadTimeTable(), loadDetectorGrouping(), and loadGoodFrames().
|
private |
Definition at line 34 of file SinglePeriodLoadMuonStrategy.h.
Referenced by applyTimeZeroCorrection(), getLoadedDetectors(), getTimeZeroTable(), loadDetectorGrouping(), loadGoodFrames(), and loadMuonLogData().