Skip to content

Commit

Permalink
Add initial boilerplate files
Browse files Browse the repository at this point in the history
  • Loading branch information
cailafinn committed May 2, 2024
1 parent b9f12e0 commit 74c3fff
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Framework/Algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ set(SRC_FILES
src/PolarizationCorrectionWildes.cpp
src/PolarizationEfficiencyCor.cpp
src/PolarizationCorrections/DepolarizedAnalyserTransmission.cpp
src/PolarizationCorrections/FlipperEfficiency.cpp
src/PolynomialCorrection.cpp
src/Power.cpp
src/PowerLawCorrection.cpp
Expand Down Expand Up @@ -596,6 +597,7 @@ set(INC_FILES
inc/MantidAlgorithms/PolarizationCorrections/HeliumAnalyserEfficiency.h
inc/MantidAlgorithms/PolarizationCorrections/PolarizationCorrectionsHelpers.h
inc/MantidAlgorithms/PolarizationCorrections/SpinStateValidator.h
inc/MantidAlgorithms/PolarizationCorrections/FlipperEfficiency.h
inc/MantidAlgorithms/PolarizationCorrectionFredrikze.h
inc/MantidAlgorithms/PolarizationCorrectionWildes.h
inc/MantidAlgorithms/PolarizationEfficiencyCor.h
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidAPI/Algorithm.h"
#include "MantidAlgorithms/DllConfig.h"

namespace Mantid::Algorithms {

class MANTID_ALGORITHMS_DLL FlipperEfficiency : public API::Algorithm {
public:
/// The string identifier for the algorithm. @see Algorithm::name
std::string const name() const override { return "FlipperEfficiency"; }

/// A summary of the algorithm's purpose. @see Algorithm::summary
std::string const summary() const override;

/// The category of the algorithm. @see Algorithm::category
std::string const category() const override { return "SANS\\PolarizationCorrections"; }

/// The version number of the algorithm. @see Algorithm::version
int version() const override { return 1; }

private:
/// Setup the algorithm's properties and prepare constants.
void init() override;

/// Execute the algorithm with the provided properties.
void exec() override;
};
} // namespace Mantid::Algorithms
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#include "MantidAlgorithms/PolarizationCorrections/FlipperEfficiency.h"

namespace {
/// Property Names
namespace PropNames {} // namespace PropNames
} // namespace

namespace Mantid::Algorithms {

using namespace API;
using namespace Kernel;

// Register the algorithm in the AlgorithmFactory
DECLARE_ALGORITHM(FlipperEfficiency)

std::string const FlipperEfficiency::summary() const {}

void FlipperEfficiency::init() {}

void FlipperEfficiency::exec() {}

} // namespace Mantid::Algorithms

0 comments on commit 74c3fff

Please sign in to comment.