Skip to content
Snippets Groups Projects
Commit 36036cc1 authored by Marina Ganeva's avatar Marina Ganeva
Browse files

Refs #21293 LoadDNSSCD: clang-format

parent df8f0ed1
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "MantidKernel/Matrix.h" #include "MantidKernel/Matrix.h"
#include "MantidKernel/V3D.h" #include "MantidKernel/V3D.h"
namespace Mantid { namespace Mantid {
namespace MDAlgorithms { namespace MDAlgorithms {
...@@ -40,64 +39,67 @@ namespace MDAlgorithms { ...@@ -40,64 +39,67 @@ namespace MDAlgorithms {
File change history is stored at: <https://github.com/mantidproject/mantid> File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org> Code Documentation is available at: <http://doxygen.mantidproject.org>
*/ */
class DLLExport LoadDNSSCD : public API::IFileLoader<Kernel::FileDescriptor> { class DLLExport LoadDNSSCD : public API::IFileLoader<Kernel::FileDescriptor> {
public: public:
LoadDNSSCD(); LoadDNSSCD();
/// Algorithm's name for identification /// Algorithm's name for identification
const std::string name() const override { return "LoadDNSSCD"; } const std::string name() const override { return "LoadDNSSCD"; }
/// Summary of algorithms purpose /// Summary of algorithms purpose
const std::string summary() const override { const std::string summary() const override {
return "Load a list of DNS .d_dat files into a MDEventWorkspace."; return "Load a list of DNS .d_dat files into a MDEventWorkspace.";
} }
/// Algorithm's version for identification /// Algorithm's version for identification
int version() const override { return 1; } int version() const override { return 1; }
/// Algorithm's category for identification /// Algorithm's category for identification
const std::string category() const override { const std::string category() const override {
return "MDAlgorithms\\DataHandling"; return "MDAlgorithms\\DataHandling";
} }
/// Returns a confidence value that this algorithm can load a file /// Returns a confidence value that this algorithm can load a file
int confidence(Kernel::FileDescriptor &descriptor) const override; int confidence(Kernel::FileDescriptor &descriptor) const override;
private: private:
/// Initialise the properties /// Initialise the properties
void init() override; void init() override;
/// Run the algorithm /// Run the algorithm
void exec() override; void exec() override;
/// number of workspace dimensions /// number of workspace dimensions
size_t m_nDims; size_t m_nDims;
/// type of normalization; /// type of normalization;
std::string m_normtype; std::string m_normtype;
/// factor to multiply the error^2 for normalization /// factor to multiply the error^2 for normalization
double m_normfactor; double m_normfactor;
/// structure for experimental data /// structure for experimental data
struct ExpData { struct ExpData {
double deterota; double deterota;
double huber; double huber;
double wavelength; double wavelength;
double norm; double norm;
std::vector<double> signal; std::vector<double> signal;
std::vector<int> detID; std::vector<int> detID;
}; };
std::vector<ExpData> m_data; std::vector<ExpData> m_data;
/// Output IMDEventWorkspace /// Output IMDEventWorkspace
Mantid::API::IMDEventWorkspace_sptr m_OutWS; Mantid::API::IMDEventWorkspace_sptr m_OutWS;
void read_data(const std::string fname, std::map<std::string, std::string> &str_metadata, std::map<std::string, double> &num_metadata); void read_data(const std::string fname,
void fillOutputWorkspace(double wavelength); std::map<std::string, std::string> &str_metadata,
API::ITableWorkspace_sptr saveHuber(); std::map<std::string, double> &num_metadata);
void loadHuber(API::ITableWorkspace_sptr tws); void fillOutputWorkspace(double wavelength);
template<class T> API::ITableWorkspace_sptr saveHuber();
void updateProperties(API::Run &run, std::map<std::string, T> &metadata, std::string time); void loadHuber(API::ITableWorkspace_sptr tws);
template <class T>
void updateProperties(API::Run &run, std::map<std::string, T> &metadata,
std::string time);
}; };
} // namespace MDAlgorithms } // namespace MDAlgorithms
......
This diff is collapsed.
This diff is collapsed.
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