27 double calcComponents(
const double wavAngstroms,
double &xFrac,
double &yFrac)
const;
50 double gravitationalDrop(
const double L2,
const double waveLength,
const double extraLength)
const;
std::map< DeltaEMode::Type, std::string > index
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
A helper class for calculating neutron's gravitional drop.
double m_dropPerAngstrom2
the drop is proportional to the wavelength squared, storing this drop increases calculation speed a l...
double m_cachedDrop
the drop that was last caclulated, this allows m_cachedDetLoc to be recalculated each time without it...
Kernel::V3D m_cachedLineOfSight
the location that the neutron would have been detected at if it continued in a straight line,...
double gravitationalDrop(const double wav) const
double calcSinTheta() const
getDetLoc must have been called before this is used to calculate the sin of the angle
const Kernel::V3D & getDetLoc(const double wav) const
Finds the location of the detector the neutron would have entered if it followed a straight line path...
Kernel::V3D m_samplePos
coordinates of the sample
double m_beamLineNorm
twice the distance from the source to the sample
double calcComponents(const double wavAngstroms, double &xFrac, double &yFrac) const
Calculate the sins and cosins of angles as required to calculate Q is 2 dimensions.
Kernel::V3D m_beamLine
the displacement from the source to the sample
Helper class which provides the Collimation Length for SANS instruments.