Skip to content
Snippets Groups Projects
Commit f26263f0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

cleanup

parent f842e6a4
No related branches found
No related tags found
1 merge request!1300Merge IScanResolution and child classes -> ScanResolution
......@@ -86,8 +86,8 @@ std::string defineScanResolution(const ScanResolution& sresol)
std::ostringstream result;
result << Py::Fmt2::printRangedDistribution(*sresol.rdistribution()) << "\n"
<< indent() << "resolution = "
<< "ba." << sresol.resolutionFactoryName() << "(distribution, "
<< Py::Fmt::printDouble(sresol.delta()) << ")\n";
<< "ba.scanAbsoluteResolution(distribution, " << Py::Fmt::printDouble(sresol.delta())
<< ")\n";
return result.str();
}
......
......@@ -3,7 +3,7 @@
// BornAgain: simulate and fit reflection and scattering
//
//! @file Sim/Scan/ScanResolution.h
//! @brief Defines scan resolution class.
//! @brief Defines class ScanResolution.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
......@@ -17,15 +17,12 @@
#include "Base/Types/ICloneable.h"
#include <memory>
#include <string>
#include <vector>
class IRangedDistribution;
class ParameterSample;
//! Abstract base class for reflectivity resolution functions.
//! Child classes have local scope only (declared and implemented in ScanResolution.cpp);
//! they can only be created through the factory functions declared below.
//! Describes reflectivity resolution function.
class ScanResolution : public ICloneable {
public:
ScanResolution(const IRangedDistribution& distr, double stddev);
......@@ -45,10 +42,6 @@ public:
std::vector<double> stdDevs(const std::vector<double>& mean) const;
//... For export:
std::string resolutionFactoryName() const
{
return "scanAbsoluteResolution";
}
double delta() const
{
return m_stddev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment