Skip to content
Snippets Groups Projects
Commit b30ca3c3 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Translate detector analyzer properties from domain to GUI

parent 7d54e714
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,15 @@ void TransformFromDomain::setInstrumentDetectorFromSample(InstrumentItem* instru
}
}
// polarization analysis parameters
double total_transmission = p_detector->analyzerTotalTransmission();
if (total_transmission>0.0) {
kvector_t analyzer_dir = p_detector->analyzerDirection();
double efficiency = p_detector->analyzerEfficiency();
detector_item->setVectorItem(DetectorItem::P_ANALYZER_DIRECTION, analyzer_dir);
detector_item->setItemValue(DetectorItem::P_ANALYZER_EFFICIENCY, efficiency);
detector_item->setItemValue(DetectorItem::P_ANALYZER_TOTAL_TRANSMISSION,
total_transmission);
}
}
void TransformFromDomain::setItemFromSample(SphericalDetectorItem* detectorItem,
......
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