Skip to content
Snippets Groups Projects
Commit f8ecaf23 authored by McDonnell, Marshall's avatar McDonnell, Marshall
Browse files

Clang formatting

parent 4769b32a
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ namespace Algorithms {
correct vanadium spectrum at IPNS. Algorithm originally worked
out by Jack Carpenter and Asfia Huq and implmented in Java by
Alok Chatterjee. Translated to C++ by Dennis Mikkelson.
Copyright © 2018 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge
National Laboratory & European Spallation Source
......@@ -52,9 +52,9 @@ public:
/// Algorithm's version for identification overriding a virtual method
int version() const override;
const std::vector<std::string> seeAlso() const override {
return {"CarpenterSampleCorrection", "CylinderAbsorption",
"MonteCarloAbsorption", "MayersSampleCorrection",
"PearlMCAbsorption", "VesuvioCalculateMS"};
return { "CarpenterSampleCorrection", "CylinderAbsorption",
"MonteCarloAbsorption", "MayersSampleCorrection",
"PearlMCAbsorption", "VesuvioCalculateMS" };
}
/// Algorithm's category for identification overriding a virtual method
......
......@@ -42,7 +42,8 @@ namespace Algorithms {
<https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class DLLExport CarpenterSampleCorrection : public API::DistributedDataProcessorAlgorithm {
class DLLExport CarpenterSampleCorrection
: public API::DistributedDataProcessorAlgorithm {
public:
/// Algorithm's name for identification overriding a virtual method
const std::string name() const override;
......@@ -50,9 +51,9 @@ public:
/// Algorithm's version for identification overriding a virtual method
int version() const override;
const std::vector<std::string> seeAlso() const override {
return {"CalculateCarpenterSampleCorrection", "CylinderAbsorption",
"MonteCarloAbsorption", "MayersSampleCorrection",
"PearlMCAbsorption", "VesuvioCalculateMS"};
return { "CalculateCarpenterSampleCorrection", "CylinderAbsorption",
"MonteCarloAbsorption", "MayersSampleCorrection",
"PearlMCAbsorption", "VesuvioCalculateMS" };
}
/// Algorithm's category for identification overriding a virtual method
......
......@@ -52,7 +52,8 @@ void CarpenterSampleCorrection::init() {
wsValidator->add<WorkspaceUnitValidator>("Wavelength");
wsValidator->add<InstrumentValidator>();
auto algCalcCarpenter = AlgorithmManager::Instance().createUnmanaged("CalculateCarpenterSampleCorrection");
auto algCalcCarpenter = AlgorithmManager::Instance().createUnmanaged(
"CalculateCarpenterSampleCorrection");
algCalcCarpenter->initialize();
declareProperty(make_unique<WorkspaceProperty<API::MatrixWorkspace> >(
......@@ -114,9 +115,8 @@ void CarpenterSampleCorrection::exec() {
WorkspaceGroup_sptr CarpenterSampleCorrection::calculateCorrection(
MatrixWorkspace_sptr &inputWksp, double radius, double coeff1,
double coeff2, double coeff3, bool doAbs, bool doMS) {
auto calculate =
this->createChildAlgorithm("CalculateCarpenterSampleCorrection",
0.0, 0.25);
auto calculate = this->createChildAlgorithm(
"CalculateCarpenterSampleCorrection", 0.0, 0.25);
calculate->setProperty("InputWorkspace", inputWksp);
calculate->setProperty("CylinderSampleRadius", radius);
calculate->setProperty("AttenuationXSection", coeff1);
......
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