Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Mantid::DataHandling::MultiPeriodLoadMuonStrategy Class Reference

#include <MultiPeriodLoadMuonStrategy.h>

Inheritance diagram for Mantid::DataHandling::MultiPeriodLoadMuonStrategy:
Mantid::DataHandling::LoadMuonStrategy

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 Assumes all periods have same time zero. More...
 
API::Workspace_sptr loadDeadTimeTable () const override
 
API::Workspace_sptr loadDetectorGrouping () const override
 Loads detector grouping. More...
 
void loadGoodFrames () override
 Loads the good frames data into each of the stored workspace objects. More...
 
void loadMuonLogData () override
 Loads Muon specific logs into each of the workspaces in the workspace group. More...
 
 MultiPeriodLoadMuonStrategy (Kernel::Logger &g_log, const std::string &filename, LoadMuonNexusV2NexusHelper &nexusLoader, API::WorkspaceGroup &workspaceGroup)
 
- 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 group. More...
 

Private Attributes

std::vector< detid_t > m_detectors
 
API::WorkspaceGroupm_workspaceGroup
 

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::Loggerm_logger
 
LoadMuonNexusV2NexusHelperm_nexusLoader
 

Detailed Description

Definition at line 14 of file MultiPeriodLoadMuonStrategy.h.

Constructor & Destructor Documentation

◆ MultiPeriodLoadMuonStrategy()

Mantid::DataHandling::MultiPeriodLoadMuonStrategy::MultiPeriodLoadMuonStrategy ( Kernel::Logger g_log,
const std::string &  filename,
LoadMuonNexusV2NexusHelper nexusLoader,
API::WorkspaceGroup workspaceGroup 
)

Definition at line 26 of file MultiPeriodLoadMuonStrategy.cpp.

Member Function Documentation

◆ applyTimeZeroCorrection()

void Mantid::DataHandling::MultiPeriodLoadMuonStrategy::applyTimeZeroCorrection ( )
overridevirtual

◆ getLoadedDetectors()

std::vector< detid_t > Mantid::DataHandling::MultiPeriodLoadMuonStrategy::getLoadedDetectors ( )
private

Finds the detectors which are loaded in the stored workspace group.

Definition at line 126 of file MultiPeriodLoadMuonStrategy.cpp.

References Mantid::API::WorkspaceGroup::getItem(), Mantid::DataHandling::LoadMuonStrategy::getLoadedDetectorsFromWorkspace(), m_workspaceGroup, and workspace.

◆ getTimeZeroTable()

Workspace_sptr Mantid::DataHandling::MultiPeriodLoadMuonStrategy::getTimeZeroTable ( )
overridevirtual

◆ loadDeadTimeTable()

API::Workspace_sptr Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDeadTimeTable ( ) const
overridevirtual

◆ loadDetectorGrouping()

Workspace_sptr Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadDetectorGrouping ( ) const
overridevirtual

◆ loadGoodFrames()

void Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadGoodFrames ( )
overridevirtual

◆ loadMuonLogData()

void Mantid::DataHandling::MultiPeriodLoadMuonStrategy::loadMuonLogData ( )
overridevirtual

Member Data Documentation

◆ m_detectors

std::vector<detid_t> Mantid::DataHandling::MultiPeriodLoadMuonStrategy::m_detectors
private

Definition at line 34 of file MultiPeriodLoadMuonStrategy.h.

Referenced by loadDeadTimeTable(), and loadDetectorGrouping().

◆ m_workspaceGroup

API::WorkspaceGroup& Mantid::DataHandling::MultiPeriodLoadMuonStrategy::m_workspaceGroup
private

The documentation for this class was generated from the following files: