Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
Unit.h File Reference
#include "MantidKernel/UnitLabel.h"
#include <utility>
#include <unordered_map>
#include <vector>
#include <memory>
#include "tbb/concurrent_unordered_map.h"

Go to the source code of this file.

Classes

class  Mantid::Kernel::Unit
 The base units (abstract) class. More...
 
class  Mantid::Kernel::Units::AtomicDistance
 Atomic Distance in Angstroms. More...
 
class  Mantid::Kernel::Units::Degrees
 Degrees that has degrees as unit and "Scattering angle" as title. More...
 
class  Mantid::Kernel::Units::DeltaE
 Energy transfer in milli-electronvolts. More...
 
class  Mantid::Kernel::Units::DeltaE_inFrequency
 Energy transfer in units of frequency (MHz) More...
 
class  Mantid::Kernel::Units::DeltaE_inWavenumber
 Energy transfer in units of wavenumber (cm^-1) More...
 
class  Mantid::Kernel::Units::dSpacing
 d-Spacing in Angstrom More...
 
class  Mantid::Kernel::Units::dSpacingPerpendicular
 d-SpacingPerpendicular in Angstrom More...
 
class  Mantid::Kernel::Units::Empty
 Empty unit. More...
 
class  Mantid::Kernel::Units::Energy
 Energy in milli-electronvolts. More...
 
class  Mantid::Kernel::Units::Energy_inWavenumber
 Absolute energy in units of wavenumber (cm^-1) More...
 
class  Mantid::Kernel::Units::Label
 Label unit. More...
 
class  Mantid::Kernel::Units::Momentum
 Momentum in Angstrom^-1. More...
 
class  Mantid::Kernel::Units::MomentumTransfer
 Momentum Transfer in Angstrom^-1. More...
 
class  Mantid::Kernel::Units::Phi
 Phi that has degrees as unit and "Phi" as title. More...
 
class  Mantid::Kernel::Units::QSquared
 Momentum transfer squared in Angstrom^-2. More...
 
class  Mantid::Kernel::Units::SpinEchoLength
 SpinEchoLength in nm. More...
 
class  Mantid::Kernel::Units::SpinEchoTime
 SpinEchoTime in ns. More...
 
class  Mantid::Kernel::Units::Temperature
 Temperature in kelvin. More...
 
class  Mantid::Kernel::Units::Time
 Time In Second. More...
 
class  Mantid::Kernel::Units::TOF
 Time of flight in microseconds. More...
 
class  Mantid::Kernel::Units::Wavelength
 Wavelength in Angstrom. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 
namespace  Mantid::Kernel::Units
 The namespace for concrete units classes.
 

Typedefs

using Mantid::Kernel::Unit_const_sptr = std::shared_ptr< const Unit >
 Shared pointer to the Unit base class (const version) More...
 
using Mantid::Kernel::Unit_sptr = std::shared_ptr< Unit >
 Shared pointer to the Unit base class. More...
 
using Mantid::Kernel::UnitParametersMap = std::unordered_map< UnitParams, double >
 

Enumerations

enum class  Mantid::Kernel::UnitParams {
  Mantid::Kernel::l2 , Mantid::Kernel::twoTheta , Mantid::Kernel::efixed , Mantid::Kernel::delta ,
  Mantid::Kernel::difa , Mantid::Kernel::difc , Mantid::Kernel::tzero
}
 

Functions

MANTID_KERNEL_DLL double Mantid::Kernel::Units::timeConversionValue (const std::string &input_unit, const std::string &output_unit)
 
template<typename T >
void Mantid::Kernel::Units::timeConversionVector (std::vector< T > &vec, const std::string &input_unit, const std::string &output_unit)
 
MANTID_KERNEL_DLL double Mantid::Kernel::Units::tofToDSpacingFactor (const double l1, const double l2, const double twoTheta, const double offset)
 Calculate and return conversion factor from tof to d-spacing. More...