Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Kernel::Units::DeltaE_inFrequency Class Reference

Energy transfer in units of frequency (MHz) More...

Inheritance diagram for Mantid::Kernel::Units::DeltaE_inFrequency:
Mantid::Kernel::Units::DeltaE Mantid::Kernel::Unit

Public Member Functions

Unitclone () const override
 
 DeltaE_inFrequency ()
 Constructor.
 
void init () override
 Finalize the initialization.
 
const UnitLabel label () const override
 A label for the unit to be printed on axes,.
 
const std::string unitID () const override
 "DeltaE_inFrequency"
 
- Public Member Functions inherited from Mantid::Kernel::Units::DeltaE
const std::string caption () const override
 The full name of the unit.
 
double conversionTOFMax () const override
 This function returns maximal TOF value still reversibly convertible into the unit.
 
double conversionTOFMin () const override
 some units can be converted from TOF only in the range of TOF ; This function returns minimal TOF value still reversibly convertible into the unit.
 
 DeltaE ()
 Constructor.
 
double singleFromTOF (const double tof) const override
 Convert a single tof value to this unit.
 
double singleToTOF (const double x) const override
 Convert a single X value to TOF.
 
- Public Member Functions inherited from Mantid::Kernel::Unit
virtual std::pair< double, double > conversionRange () const
 The range where conversion to TOF from given units is monotonic and reversible.
 
double convertSingleFromTOF (const double xvalue, const double &l1, const int &emode, const UnitParametersMap &params)
 Convert from the time-of-flight to the concrete unit. TOF is in microseconds.
 
double convertSingleToTOF (const double xvalue, const double &l1, const int &emode, const UnitParametersMap &params)
 Convert from the concrete unit to time-of-flight. TOF is in microseconds.
 
void fromTOF (std::vector< double > &xdata, std::vector< double > const &ydata, const double &_l1, const int &_emode, const UnitParametersMap &params)
 
void fromTOF (std::vector< double > &xdata, std::vector< double > const &ydata, const double &_l1, const int &_emode, std::initializer_list< std::pair< const UnitParams, double > > params)
 Convert from time-of-flight to the concrete unit.
 
void initialize (const double &_l1, const int &_emode, const UnitParametersMap &params)
 Initialize the unit to perform conversion using singleToTof() and singleFromTof()
 
virtual bool isConvertible () const
 Returns if the unit can be used in conversions.
 
bool isInitialized () const
 
bool operator!= (const Unit &u) const
 
bool operator== (const Unit &u) const
 
bool quickConversion (const Unit &destination, double &factor, double &power) const
 Is conversion by constant multiplication possible?
 
bool quickConversion (std::string destUnitName, double &factor, double &power) const
 Is conversion by constant multiplication possible?
 
void toTOF (std::vector< double > &xdata, std::vector< double > const &ydata, const double &_l1, const int &_emode, const UnitParametersMap &params)
 
void toTOF (std::vector< double > &xdata, std::vector< double > const &ydata, const double &_l1, const int &_emode, std::initializer_list< std::pair< const UnitParams, double > > params)
 Convert from the concrete unit to time-of-flight.
 
 Unit ()
 (Empty) Constructor
 
virtual ~Unit ()=default
 Virtual destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::Kernel::Units::DeltaE
void validateUnitParams (const int emode, const UnitParametersMap &params) override
 
- Protected Member Functions inherited from Mantid::Kernel::Unit
void addConversion (std::string to, const double &factor, const double &power=1.0) const
 Add a 'quick conversion' from the unit class on which this method is called.
 
- Protected Attributes inherited from Mantid::Kernel::Units::DeltaE
double efixed
 
double factorFrom
 Constant factor for from conversion.
 
double factorTo
 Constant factor for to conversion.
 
double t_other
 Energy mode dependent factor in to conversion.
 
double t_otherFrom
 Energy mode dependent factor in from conversion.
 
double unitScaling
 Apply unit scaling to energy value.
 
- Protected Attributes inherited from Mantid::Kernel::Unit
int emode
 emode :: The energy mode (0=elastic, 1=direct geometry, 2=indirect geometry)
 
bool initialized
 The unit values have been initialized.
 
double l1
 l1 :: The source-sample distance (in metres)
 
const UnitParametersMapm_params
 additional parameters l2 :: distance from sample to detector (in metres) twoTheta :: scattering angle in radians efixed :: Value of fixed energy: EI (emode=1) or EF (emode=2) (in meV) difc :: diffractometer constant DIFC
 

Detailed Description

Energy transfer in units of frequency (MHz)

Definition at line 487 of file Unit.h.

Constructor & Destructor Documentation

◆ DeltaE_inFrequency()

Mantid::Kernel::Units::DeltaE_inFrequency::DeltaE_inFrequency ( )

Constructor.

Definition at line 1105 of file Unit.cpp.

References Mantid::Kernel::Unit::addConversion(), and Mantid::PhysicalConstants::meVtoFrequency.

Referenced by clone().

Member Function Documentation

◆ clone()

Unit * Mantid::Kernel::Units::DeltaE_inFrequency::clone ( ) const
overridevirtual
Returns
a cloned instance of the other

Reimplemented from Mantid::Kernel::Units::DeltaE.

Definition at line 1103 of file Unit.cpp.

References DeltaE_inFrequency().

◆ init()

void Mantid::Kernel::Units::DeltaE_inFrequency::init ( )
overridevirtual

Finalize the initialization.

This will be overridden by subclasses as needed.

Reimplemented from Mantid::Kernel::Units::DeltaE.

Definition at line 1097 of file Unit.cpp.

References Mantid::Kernel::Units::DeltaE::init(), Mantid::PhysicalConstants::meVtoFrequency, and Mantid::Kernel::Units::DeltaE::unitScaling.

◆ label()

const UnitLabel Mantid::Kernel::Units::DeltaE_inFrequency::label ( ) const
overridevirtual

A label for the unit to be printed on axes,.

See also
UnitLabel
Returns
The unit label

Reimplemented from Mantid::Kernel::Units::DeltaE.

Definition at line 1095 of file Unit.cpp.

References Mantid::Kernel::Units::Symbol::GHz.

◆ unitID()

const std::string Mantid::Kernel::Units::DeltaE_inFrequency::unitID ( ) const
overridevirtual

"DeltaE_inFrequency"

Reimplemented from Mantid::Kernel::Units::DeltaE.


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