83 groupDetectors->initialize();
84 groupDetectors->setProperty(
"InputWorkspace", inputWorkspace);
85 groupDetectors->setProperty(
"CopyGroupingFromWorkspace", this->
m_groupWS);
86 groupDetectors->execute();
91 spCalcDetPar->initialize();
92 spCalcDetPar->setProperty(
"InputWorkspace", groupedWorkspace);
93 spCalcDetPar->setProperty(
"ReturnLinearRanges",
true);
94 spCalcDetPar->execute();
98 const std::vector<double> &secondary_flightpath = pCalcDetPar->getFlightPath();
102 std::vector<double> polar_width;
104 std::transform(secondary_flightpath.cbegin(), secondary_flightpath.cend(), std::back_inserter(polar_width),
105 [stepSize](
const double r) { return r * stepSize; });
107 SavePAR::writePAR(PARfilename, std::vector<double>(nDetectors, -0.), pCalcDetPar->getPolar(),
108 std::vector<double>(nDetectors, 0.01), polar_width, secondary_flightpath, pCalcDetPar->getDetID(),
virtual 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)
Create a Child Algorithm.
static void writePAR(const std::string &filename, const std::vector< double > &azimuthal, const std::vector< double > &polar, const std::vector< double > &azimuthal_width, const std::vector< double > &polar_width, const std::vector< double > &secondary_flightpath, const std::vector< size_t > &det_ID, const size_t nDetectors)