21 double lCollim,
double l2)
const {
22 return (4.0 * M_PI * M_PI / 12.0) * (3.0 * r1 * r1 / (lCollim * lCollim) +
23 3.0 * r2 * r2 * (lCollim +
l2) * (lCollim +
l2) / (lCollim * lCollim *
l2 *
l2) +
24 (deltaR * deltaR) / (
l2 *
l2));
40 double q,
double wavelength,
double deltaWavelength,
41 double l1,
double l2)
const {
43 const double sigModerator = moderatorValue * 3.9560 / (1000.0 * (l1 +
l2));
46 const double sigWavelengthSquared = deltaWavelength * deltaWavelength / 12.0 + sigModerator * sigModerator;
49 const double qbyWavelengthSquared = q * q / (wavelength * wavelength);
51 return sqrt(wavlengthIndependentFactor / (wavelength * wavelength) + (sigWavelengthSquared * qbyWavelengthSquared));
double getSigmaQValue(double moderatorValue, double wavlengthIndependentFactor, double q, double wavelength, double deltaWavelength, double l1, double l2) const
double getWavelengthIndependentFactor(double r1, double r2, double deltaR, double lCollim, double l2) const
Calculates the wavelength-independent prefactor for the resolutin calculation.