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

OffspecInstrumentItem::createCoordSystem just using scan and det

parent 38664044
No related branches found
No related tags found
1 merge request!1439unify internal handling of scans; rm beam-based OffspecSim c'tor
...@@ -543,12 +543,9 @@ void OffspecInstrumentItem::updateToRealData(const RealItem* dataItem) ...@@ -543,12 +543,9 @@ void OffspecInstrumentItem::updateToRealData(const RealItem* dataItem)
const ICoordSystem* OffspecInstrumentItem::createCoordSystem() const const ICoordSystem* OffspecInstrumentItem::createCoordSystem() const
{ {
IAxis* alphaAxis = return new OffspecCoords(
new FixedBinAxis("alpha", m_alphaAxis.nbins(), m_alphaAxis.min() * Units::deg, std::vector<const IAxis*>{createScan()->coordinateAxis()->clone(),
m_alphaAxis.max() * Units::deg); detectorItem()->createOffspecDetector()->axis(1).clone()});
auto d = detectorItem()->createOffspecDetector();
return new OffspecCoords(std::vector<const IAxis*>{alphaAxis, d->axis(1).clone()});
} }
ISimulation* OffspecInstrumentItem::createSimulation(const MultiLayer& sample) const ISimulation* OffspecInstrumentItem::createSimulation(const MultiLayer& sample) const
......
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