コード例 #1
0
void PoldiPeakSummary::storePeakSummary(TableRow tableRow,
                                        const PoldiPeak_sptr &peak) const {
  UncertainValue q = peak->q();
  UncertainValue d = peak->d();

  tableRow << MillerIndicesIO::toString(peak->hkl())
           << UncertainValueIO::toString(q) << UncertainValueIO::toString(d)
           << d.error() / d.value() * 1e3
           << UncertainValueIO::toString(peak->fwhm(PoldiPeak::Relative) * 1e3)
           << UncertainValueIO::toString(peak->intensity());
}
コード例 #2
0
ファイル: PoldiPeakSearch.cpp プロジェクト: nimgould/mantid
/** Returns the minimum height a peak should have.
  *
  * This method is used when no user estimate of minimum required peak height is
  *given. It is set to background
  * plus 3 times Sn.
  *
  * @param backgroundWithSigma :: Background with error estimate.
  * @return Minimum peak height.
  */
double PoldiPeakSearch::minimumPeakHeightFromBackground(
    UncertainValue backgroundWithSigma) const {
  return 3.0 * backgroundWithSigma.error() + backgroundWithSigma.value();
}