|
Mantid
|
Degrees that has degrees as unit and "Scattering angle" as title. More...
Public Member Functions | |
| const std::string | caption () const override |
| < Degrees | |
| Unit * | clone () const override |
| Degrees () | |
| const UnitLabel | label () const override |
| A label for the unit to be printed on axes,. | |
| 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. | |
| const std::string | unitID () const override |
| The name of the unit. | |
Public Member Functions inherited from Mantid::Kernel::Units::Empty | |
| const std::string | caption () const override |
| The full name of the unit. | |
| Unit * | clone () const override |
| double | conversionTOFMax () const override |
| double | conversionTOFMin () const override |
| Empty () | |
| Constructor. | |
| void | init () override |
| Finalize the initialization. | |
| bool | isConvertible () const override |
| Returns if the unit can be used in conversions. | |
| const UnitLabel | label () const override |
| A label for the unit to be printed on axes,. | |
| 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. | |
| const std::string | unitID () const override |
| "Empty" | |
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 ¶ms) |
| 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 ¶ms) |
| 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 ¶ms) |
| 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 ¶ms) |
| Initialize the unit to perform conversion using singleToTof() and singleFromTof() | |
| 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 ¶ms) |
| 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. | |
Private Attributes | |
| UnitLabel | m_label |
Additional Inherited Members | |
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. | |
| virtual void | validateUnitParams (const int emode, const UnitParametersMap ¶ms) |
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 UnitParametersMap * | m_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 | |
Degrees that has degrees as unit and "Scattering angle" as title.
| Mantid::Kernel::Units::Degrees::Degrees | ( | ) |
|
inlineoverridevirtual |
|
overridevirtual |
Implements Mantid::Kernel::Unit.
Reimplemented in Mantid::Kernel::Units::Phi.
Definition at line 1374 of file Unit.cpp.
References Degrees().
|
overridevirtual |
A label for the unit to be printed on axes,.
Implements Mantid::Kernel::Unit.
Definition at line 1362 of file Unit.cpp.
References m_label.
|
overridevirtual |
Convert a single tof value to this unit.
| tof | value to convert |
Implements Mantid::Kernel::Unit.
Definition at line 1369 of file Unit.cpp.
References UNUSED_ARG.
|
overridevirtual |
Convert a single X value to TOF.
| x | value to convert |
Implements Mantid::Kernel::Unit.
Definition at line 1364 of file Unit.cpp.
References UNUSED_ARG, and Mantid::Geometry::x.
|
overridevirtual |
The name of the unit.
For a concrete unit, this method's definition is in the DECLARE_UNIT macro and it will return the argument passed to that macro (which is the unit's key in the factory).
Implements Mantid::Kernel::Unit.
Reimplemented in Mantid::Kernel::Units::Phi.
|
private |