BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
anonymous_namespace{MaterialBySLDImpl.cpp} Namespace Reference

Functions

double getWlPrefactor (double wavelength)
 

Variables

const double square_angstroms = Units::angstrom * Units::angstrom
 

Function Documentation

◆ getWlPrefactor()

double anonymous_namespace{MaterialBySLDImpl.cpp}::getWlPrefactor ( double  wavelength)
inline

Definition at line 23 of file MaterialBySLDImpl.cpp.

24 {
25  return wavelength * wavelength / M_PI;
26 }
#define M_PI
Definition: MathConstants.h:39

References M_PI, and anonymous_namespace{SlicedCylindersBuilder.cpp}::wavelength().

Referenced by MaterialBySLDImpl::refractiveIndex2(), and MaterialBySLDImpl::scalarSubtrSLD().

Here is the call graph for this function:

Variable Documentation

◆ square_angstroms

const double anonymous_namespace{MaterialBySLDImpl.cpp}::square_angstroms = Units::angstrom * Units::angstrom

Definition at line 21 of file MaterialBySLDImpl.cpp.

Referenced by MaterialBySLDImpl::materialData().