Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mantid::DataHandling::LoadMuonStrategy Class Referenceabstract

#include <LoadMuonStrategy.h>

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

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

Detailed Description

Definition at line 22 of file LoadMuonStrategy.h.

Constructor & Destructor Documentation

◆ LoadMuonStrategy()

Mantid::DataHandling::LoadMuonStrategy::LoadMuonStrategy ( Kernel::Logger g_log,
std::string  filename,
LoadMuonNexusV2NexusHelper nexusLoader 
)

Definition at line 41 of file LoadMuonStrategy.cpp.

◆ ~LoadMuonStrategy()

virtual Mantid::DataHandling::LoadMuonStrategy::~LoadMuonStrategy ( )
virtualdefault

Member Function Documentation

◆ applyTimeZeroCorrection()

virtual void Mantid::DataHandling::LoadMuonStrategy::applyTimeZeroCorrection ( )
pure virtual

◆ createDeadTimeTable()

DataObjects::TableWorkspace_sptr Mantid::DataHandling::LoadMuonStrategy::createDeadTimeTable ( const std::vector< detid_t > &  detectorsLoaded,
const std::vector< double > &  deadTimes 
) const
protected

Creates the deadtime table for the loaded detectors .

Parameters
detectorsLoaded:: Vector containing the list of detectorsLoaded
deadTimes:: Vector containing corresponding deadtime
Returns
Deadtime table created using the input data

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().

◆ createDetectorGroupingTable()

DataObjects::TableWorkspace_sptr Mantid::DataHandling::LoadMuonStrategy::createDetectorGroupingTable ( const std::vector< detid_t > &  detectorsLoaded,
const std::vector< detid_t > &  grouping 
) const
protected

Creates Detector Grouping Table .

Parameters
detectorsLoaded:: Vector containing the list of detectorsLoaded
grouping:: Vector containing corresponding grouping
Returns
Detector Grouping Table create using the data

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().

◆ getLoadedDetectorsFromWorkspace()

std::vector< detid_t > Mantid::DataHandling::LoadMuonStrategy::getLoadedDetectorsFromWorkspace ( const DataObjects::Workspace2D localWorkspace) const
protected

◆ getTimeZeroTable()

virtual API::Workspace_sptr Mantid::DataHandling::LoadMuonStrategy::getTimeZeroTable ( )
pure virtual

◆ loadDeadTimeTable()

virtual API::Workspace_sptr Mantid::DataHandling::LoadMuonStrategy::loadDeadTimeTable ( ) const
pure virtual

◆ loadDefaultDetectorGrouping()

API::Workspace_sptr Mantid::DataHandling::LoadMuonStrategy::loadDefaultDetectorGrouping ( const DataObjects::Workspace2D localWorkspace) const
protected

◆ loadDetectorGrouping()

virtual API::Workspace_sptr Mantid::DataHandling::LoadMuonStrategy::loadDetectorGrouping ( ) const
pure virtual

◆ loadGoodFrames()

virtual void Mantid::DataHandling::LoadMuonStrategy::loadGoodFrames ( )
pure virtual

◆ loadMuonLogData()

virtual void Mantid::DataHandling::LoadMuonStrategy::loadMuonLogData ( )
pure virtual

Member Data Documentation

◆ m_filename

const std::string Mantid::DataHandling::LoadMuonStrategy::m_filename
protected

Definition at line 55 of file LoadMuonStrategy.h.

◆ m_logger

Kernel::Logger& Mantid::DataHandling::LoadMuonStrategy::m_logger
protected

◆ m_nexusLoader

LoadMuonNexusV2NexusHelper& Mantid::DataHandling::LoadMuonStrategy::m_nexusLoader
protected

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