Mantid
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
NeutronAtom.cpp File Reference
#include "MantidKernel/NeutronAtom.h"
#include <algorithm>
#include <cmath>
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::PhysicalConstants
 A namespace containing physical constants that are required by algorithms and unit routines.
 

Functions

MANTID_KERNEL_DLL void Mantid::PhysicalConstants::calculateScatteringLengths (NeutronAtom &atom)
 Utility function to calculate scattering lengths from cross-sections. More...
 
bool Mantid::PhysicalConstants::compareAtoms (const NeutronAtom &left, const NeutronAtom &right)
 Comparison between neutron atoms (for sorting) More...
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::getNeutronAtom (const uint16_t z_number, const uint16_t a_number)
 Retrieve a copy of NeutronAtom. More...
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::getNeutronNoExceptions (const NeutronAtom &other)
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::getNeutronNoExceptions (const uint16_t z_number, const uint16_t a_number)
 
bool Mantid::PhysicalConstants::NeutronAtomEqualsWithNaN (const double left, const double right)
 
MANTID_KERNEL_DLL bool Mantid::PhysicalConstants::operator!= (const NeutronAtom &left, const NeutronAtom &right)
 Inequality between two neutron atoms. More...
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::operator* (const double left, const NeutronAtom &right)
 This calls operator*(const NeutronAtom&, const double) with the parameters reversed. More...
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::operator* (const NeutronAtom &left, const double right)
 Multiplying a NeutronAtom by a number sets a_number=z_number=0 and multiplies all of the scattering information. More...
 
MANTID_KERNEL_DLL NeutronAtom Mantid::PhysicalConstants::operator+ (const NeutronAtom &left, const NeutronAtom &right)
 Adding two NeutronAtoms together sets a_number=z_number=0 and adds all of the scattering information. More...
 
MANTID_KERNEL_DLL std::ostream & Mantid::PhysicalConstants::operator<< (std::ostream &out, const NeutronAtom &atom)
 Output neutron atom to a stream. More...
 
MANTID_KERNEL_DLL bool Mantid::PhysicalConstants::operator== (const NeutronAtom &left, const NeutronAtom &right)
 Equality between two neutron atoms. More...
 

Variables

static NeutronAtom Mantid::PhysicalConstants::ATOMS []
 All of the atoms in a single array so it can be searched. More...
 
static const size_t Mantid::PhysicalConstants::NUM_ATOMS = 371
 The total number of atoms in the array. More...