Mantid
|
#include <LoadMuonStrategy.h>
Public Member Functions | |
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 |
Protected Member Functions | |
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 | |
const std::string | m_filename |
Kernel::Logger & | m_logger |
LoadMuonNexusV2NexusHelper & | m_nexusLoader |
Definition at line 22 of file LoadMuonStrategy.h.
Mantid::DataHandling::LoadMuonStrategy::LoadMuonStrategy | ( | Kernel::Logger & | g_log, |
std::string | filename, | ||
LoadMuonNexusV2NexusHelper & | nexusLoader | ||
) |
Definition at line 41 of file LoadMuonStrategy.cpp.
|
virtualdefault |
|
pure virtual |
|
protected |
Creates the deadtime table for the loaded detectors .
detectorsLoaded | :: Vector containing the list of detectorsLoaded |
deadTimes | :: Vector containing corresponding deadtime |
Definition at line 122 of file LoadMuonStrategy.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDeadTimeTable(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDeadTimeTable().
|
protected |
Creates Detector Grouping Table .
detectorsLoaded | :: Vector containing the list of detectorsLoaded |
grouping | :: Vector containing corresponding grouping |
Definition at line 96 of file LoadMuonStrategy.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDetectorGrouping().
|
protected |
Determines the detectors loaded in the input workspace.
Definition at line 77 of file LoadMuonStrategy.cpp.
References Mantid::API::ISpectrum::getDetectorIDs(), Mantid::DataObjects::Workspace2D::getNumberHistograms(), and Mantid::DataObjects::Workspace2D::getSpectrum().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::getLoadedDetectors(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::getLoadedDetectors().
|
pure virtual |
|
pure virtual |
|
protected |
Loads default detector grouping, if this isn't present return dummy grouping.
Definition at line 50 of file LoadMuonStrategy.cpp.
References Mantid::API::GroupingLoader::getDummyGrouping(), Mantid::API::GroupingLoader::getGroupingFromIDF(), Mantid::API::ExperimentInfo::getInstrument(), Mantid::API::LogManager::getLogData(), Mantid::DataObjects::Workspace2D::getNumberHistograms(), Mantid::API::ExperimentInfo::run(), std::to_string(), and Mantid::Kernel::Property::value().
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDetectorGrouping().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protected |
Definition at line 55 of file LoadMuonStrategy.h.
|
protected |
Definition at line 53 of file LoadMuonStrategy.h.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDetectorGrouping().
|
protected |
Definition at line 57 of file LoadMuonStrategy.h.
Referenced by Mantid::DataHandling::MultiPeriodLoadMuonStrategy::applyTimeZeroCorrection(), Mantid::DataHandling::SinglePeriodLoadMuonStrategy::applyTimeZeroCorrection(), Mantid::DataHandling::MultiPeriodLoadMuonStrategy::getTimeZeroTable(), Mantid::DataHandling::SinglePeriodLoadMuonStrategy::getTimeZeroTable(), Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDeadTimeTable(), Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDeadTimeTable(), Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping(), Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDetectorGrouping(), Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadGoodFrames(), Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadGoodFrames(), Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadMuonLogData(), and Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadMuonLogData().