Mantid
Loading...
Searching...
No Matches
Functions
Mantid::Geometry::Conversion Namespace Reference

Functions

MANTID_GEOMETRY_DLL double tofToDSpacingFactor (const double l1, const double l2, const double twoTheta, const double offset)
 Calculate and return conversion factor from tof to d-spacing. More...
 
double MANTID_GEOMETRY_DLL tofToDSpacingFactor (const double l1, const double l2, const double twoTheta, const std::vector< detid_t > &detectors, const std::map< detid_t, double > &offsets)
 

Function Documentation

◆ tofToDSpacingFactor() [1/2]

double Mantid::Geometry::Conversion::tofToDSpacingFactor ( const double  l1,
const double  l2,
const double  twoTheta,
const double  offset 
)

Calculate and return conversion factor from tof to d-spacing.

Parameters
l1
l2
twoThetascattering angle
offset
Returns

Definition at line 1326 of file Instrument.cpp.

References Mantid::Kernel::l2, Mantid::Kernel::Units::tofToDSpacingFactor(), and Mantid::Kernel::twoTheta.

Referenced by Mantid::Algorithms::calculateDIFC(), Mantid::DataHandling::SaveDspacemap::CalculateDspaceFromCal(), and Mantid::DataHandling::LoadDspacemap::CalculateOffsetsFromDSpacemapFile().

◆ tofToDSpacingFactor() [2/2]

double MANTID_GEOMETRY_DLL Mantid::Geometry::Conversion::tofToDSpacingFactor ( const double  l1,
const double  l2,
const double  twoTheta,
const std::vector< detid_t > &  detectors,
const std::map< detid_t, double > &  offsets 
)