Commit 41e106a9 authored by Zhang, Chen's avatar Zhang, Chen
Browse files

passing in the crystal denstiy from selfscattering v2

parent 94239320
......@@ -45,10 +45,12 @@ void CalculatePlaczekSelfScattering2::init() {
void CalculatePlaczekSelfScattering2::exec() {
const API::MatrixWorkspace_sptr inWS = getProperty("InputWorkspace");
const API::MatrixWorkspace_sptr incidentWS = getProperty("IncidentSpecta");
const double crystalDensity = getProperty("CrystalDensity");
auto alg = createChildAlgorithm("CalculatePlaczek");
alg->setProperty("IncidentSpectra", incidentWS);
alg->setProperty("InputWorkspace", inWS);
alg->setProperty("CrystalDensity", crystalDensity);
alg->setProperty("Order", 1); // default order is one, just being explicit here
API::MatrixWorkspace_sptr outputWS = alg->getProperty("OutputWorkspace");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment