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

#include <SinglePeriodLoadMuonStrategy.h>

Inheritance diagram for Mantid::DataHandling::SinglePeriodLoadMuonStrategy:
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. 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::Workspace2Dm_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::Loggerm_logger
 
LoadMuonNexusV2NexusHelperm_nexusLoader
 

Detailed Description

Definition at line 14 of file SinglePeriodLoadMuonStrategy.h.

Constructor & Destructor Documentation

◆ SinglePeriodLoadMuonStrategy()

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.

Member Function Documentation

◆ applyTimeZeroCorrection()

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

◆ getLoadedDetectors()

std::vector< detid_t > Mantid::DataHandling::SinglePeriodLoadMuonStrategy::getLoadedDetectors ( )
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.

◆ getTimeZeroTable()

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

◆ loadDeadTimeTable()

Workspace_sptr Mantid::DataHandling::SinglePeriodLoadMuonStrategy::loadDeadTimeTable ( ) const
overridevirtual

◆ loadDetectorGrouping()

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

◆ loadGoodFrames()

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

◆ loadMuonLogData()

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

Member Data Documentation

◆ m_detectors

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

Definition at line 37 of file SinglePeriodLoadMuonStrategy.h.

Referenced by loadDeadTimeTable(), and loadDetectorGrouping().

◆ m_entryNumber

int Mantid::DataHandling::SinglePeriodLoadMuonStrategy::m_entryNumber
private

◆ m_isFileMultiPeriod

bool Mantid::DataHandling::SinglePeriodLoadMuonStrategy::m_isFileMultiPeriod
private

◆ m_workspace

DataObjects::Workspace2D& Mantid::DataHandling::SinglePeriodLoadMuonStrategy::m_workspace
private

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