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

TimeAtSampleStrategyDirect : Determine the Time at Sample corrections for a Direct Geometry instrument. More...

#include <TimeAtSampleStrategyDirect.h>

Inheritance diagram for Mantid::Algorithms::TimeAtSampleStrategyDirect:
Mantid::Algorithms::TimeAtSampleStrategy

Public Member Functions

Correction calculate (const size_t &workspace_index) const override
 Calculate corrections to get a Time at Sample for a DG instrument. More...
 
 TimeAtSampleStrategyDirect (const std::shared_ptr< const Mantid::API::MatrixWorkspace > &ws, double ei)
 Constructor. More...
 
- Public Member Functions inherited from Mantid::Algorithms::TimeAtSampleStrategy
virtual Correction calculate (const size_t &workspace_index) const =0
 
virtual ~TimeAtSampleStrategy ()=default
 

Private Attributes

double m_constShift
 Cached L1, Ei dependent const shift. More...
 

Detailed Description

TimeAtSampleStrategyDirect : Determine the Time at Sample corrections for a Direct Geometry instrument.

Definition at line 22 of file TimeAtSampleStrategyDirect.h.

Constructor & Destructor Documentation

◆ TimeAtSampleStrategyDirect()

Mantid::Algorithms::TimeAtSampleStrategyDirect::TimeAtSampleStrategyDirect ( const std::shared_ptr< const Mantid::API::MatrixWorkspace > &  ws,
double  ei 
)

Member Function Documentation

◆ calculate()

Correction Mantid::Algorithms::TimeAtSampleStrategyDirect::calculate ( const size_t &  workspace_index) const
overridevirtual

Calculate corrections to get a Time at Sample for a DG instrument.

Returns
Correction struct

Implements Mantid::Algorithms::TimeAtSampleStrategy.

Definition at line 47 of file TimeAtSampleStrategyDirect.cpp.

Member Data Documentation

◆ m_constShift

double Mantid::Algorithms::TimeAtSampleStrategyDirect::m_constShift
private

Cached L1, Ei dependent const shift.

Definition at line 29 of file TimeAtSampleStrategyDirect.h.

Referenced by TimeAtSampleStrategyDirect().


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