41 std::string outputMessage;
42 progress(0.1,
"Setting up sensitivity calculation");
50 if (reductionManager->existsProperty(
"SANSBeamFinderAlgorithm")) {
54 IAlgorithm_sptr ctrAlg = reductionManager->getProperty(
"SANSBeamFinderAlgorithm");
55 ctrAlg->setPropertyValue(
"ReductionProperties",
getPropertyValue(
"ReductionProperties"));
56 ctrAlg->setChild(
true);
58 std::string outMsg2 = ctrAlg->getPropertyValue(
"OutputMessage");
59 outputMessage += outMsg2;
62 progress(0.2,
"Computing sensitivity");
67 if (!patchWSName.empty()) {
69 patchAlg->setPropertyValue(
"PatchWorkspace", patchWSName);
70 if (!reductionManager->existsProperty(
"SensitivityPatchAlgorithm")) {
71 reductionManager->declareProperty(std::make_unique<AlgorithmProperty>(
"SensitivityPatchAlgorithm"));
73 reductionManager->setProperty(
"SensitivityPatchAlgorithm", patchAlg);
76 if (reductionManager->existsProperty(
"SensitivityAlgorithm")) {
78 IAlgorithm_sptr effAlg = reductionManager->getProperty(
"SensitivityAlgorithm");
79 effAlg->setChild(
true);
80 effAlg->setProperty(
"Filename", fileName);
81 effAlg->setPropertyValue(
"OutputSensitivityWorkspace", outputWS);
84 setProperty(
"OutputWorkspace", effWS);
85 std::string outMsg2 = effAlg->getPropertyValue(
"OutputMessage");
86 outputMessage += outMsg2;
87 setProperty(
"OutputMessage", outputMessage);
89 g_log.
error() <<
"Could not find sensitivity algorithm\n";
std::shared_ptr< Algorithm > createChildAlgorithm(const std::string &name, const double startProgress=-1., const double endProgress=-1., const bool enableLogging=true, const int &version=-1) override
Create a Child Algorithm.