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

repair last tests

parent b33f6ab3
No related branches found
No related tags found
1 merge request!2088Replace FlatDetector and SphericalDetector by Detector2D
......@@ -5,7 +5,7 @@
#include "Base/Const/Units.h"
#include "Device/Beam/Beam.h"
#include "Device/Data/Datafield.h"
#include "Device/Detector/SphericalDetector.h"
#include "Device/Detector/Detector2D.h"
#include "Fit/Param/Parameters.h"
#include "Sample/Material/MaterialFactoryFuncs.h"
#include "Sample/Multilayer/Layer.h"
......@@ -26,10 +26,10 @@ public:
size_t m_nx;
size_t m_ny;
const double m_xmin = -1.0 * Units::deg;
const double m_xmax = 4.0 * Units::deg;
const double m_ymin = 0.0 * Units::deg;
const double m_ymax = 4.0 * Units::deg;
const double m_xmin = -1 * Units::deg;
const double m_xmax = 4 * Units::deg;
const double m_ymin = 0 * Units::deg;
const double m_ymax = 4 * Units::deg;
size_t m_builder_calls;
......@@ -40,7 +40,7 @@ public:
sample.addLayer(Layer(material));
sample.addLayer(Layer(material));
auto* detector = new SphericalDetector(m_nx, m_xmin, m_xmax, m_ny, m_ymin, m_ymax);
auto* detector = new Detector2D(m_nx, m_xmin, m_xmax, m_ny, m_ymin, m_ymax);
std::unique_ptr<ScatteringSimulation> result(
new ScatteringSimulation(Beam(1., 1., 0.), sample, *detector));
......
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