-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,476 changed files
with
48,256 additions
and
39,896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...Algorithms/inc/MantidAlgorithms/PolarizationCorrections/DepolarizedAnalyserTransmission.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// 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 "MantidAPI/ITableWorkspace.h" | ||
#include "MantidAlgorithms/DllConfig.h" | ||
|
||
namespace Mantid::Algorithms { | ||
|
||
class MANTID_ALGORITHMS_DLL DepolarizedAnalyserTransmission : public API::Algorithm { | ||
public: | ||
/// The string identifier for the algorithm. @see Algorithm::name | ||
std::string const name() const override { return "DepolarizedAnalyserTransmission"; } | ||
|
||
/// 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; | ||
|
||
/// Validate the provided properties to the algorithm. | ||
std::map<std::string, std::string> validateInputs() override; | ||
|
||
/// Divide the depolarized workspace by the empty cell workspace. | ||
API::MatrixWorkspace_sptr calcDepolarizedProportion(); | ||
|
||
/// Fit using UserFunction1D to find the pxd and transmission values. | ||
void calcWavelengthDependentTransmission(API::MatrixWorkspace_sptr const &inputWs, std::string const &outputWsName); | ||
|
||
/// Calculate and output the non-normalised covariance matrix for the fit. | ||
void calcNonNormCovarianceMatrix(API::ITableWorkspace_sptr const &normCovMatrix, | ||
API::ITableWorkspace_sptr const ¶msWs); | ||
}; | ||
} // namespace Mantid::Algorithms |
45 changes: 45 additions & 0 deletions
45
Framework/Algorithms/inc/MantidAlgorithms/PolarizationCorrections/FlipperEfficiency.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// 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 "MantidAPI/MatrixWorkspace.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; | ||
|
||
/// Check that the inputs to the algorithm are valid. | ||
std::map<std::string, std::string> validateInputs() override; | ||
|
||
/// Save the given workspace to a given path as Nexus, applying the relevant extension if necessary. | ||
void saveToFile(API::MatrixWorkspace_sptr const &workspace, std::string const &filePathStr); | ||
|
||
/// Perform the main calculation for determining the efficiency on the given group. | ||
API::MatrixWorkspace_sptr calculateEfficiency(API::WorkspaceGroup_sptr const &groupWs); | ||
}; | ||
} // namespace Mantid::Algorithms |
Oops, something went wrong.