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

+ fct GISASInstrumentItem::createDetector()

parent 2345e2b4
No related branches found
No related tags found
1 merge request!1368decouple Offspec from GISAS: the former has always a spherical detector
......@@ -641,6 +641,13 @@ const ICoordSystem* GISASInstrumentItem::createCoordSystem() const
return instrument->detector().scatteringCoords(*instrument->beam());
}
std::unique_ptr<IDetector> GISASInstrumentItem::createDetector() const
{
std::unique_ptr<IDetector> result = detectorItem()->createDetector();
result->setDetectorNormal(beamItem()->createBeam()->ki());
return result;
}
ISimulation* GISASInstrumentItem::createSimulation(const MultiLayer& sample) const
{
auto beam = beamItem()->createBeam();
......
......@@ -225,6 +225,7 @@ public:
const ICoordSystem* createCoordSystem() const override;
std::unique_ptr<IDetector> createDetector() const;
ISimulation* createSimulation(const MultiLayer& sample) const override;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment