コード例 #1
0
ファイル: PoldiFitPeaks2D.cpp プロジェクト: DanNixon/mantid
/**
 * Returns the lattice system for the specified point group
 *
 * This function simply uses Geometry::getLatticeSystemAsString().
 *
 * @param pointGroup :: The point group for which to find the crystal system
 * @return The crystal system for the point group
 */
std::string PoldiFitPeaks2D::getLatticeSystemFromPointGroup(
    const PointGroup_sptr &pointGroup) const {
  if (!pointGroup) {
    throw std::invalid_argument(
        "Cannot return lattice system for null PointGroup.");
  }

  return Geometry::getLatticeSystemAsString(pointGroup->latticeSystem());
}