Mantid
Loading...
Searching...
No Matches
DiffractionFocussing.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
14#include "MantidAlgorithms/DllConfig.h"
15#include <Poco/NObserver.h>
16
17namespace Mantid {
18namespace Algorithms {
50class MANTID_ALGORITHMS_DLL DiffractionFocussing final : public API::Algorithm, public API::DeprecatedAlgorithm {
51public:
55 const std::string name() const override { return "DiffractionFocussing"; }
57 const std::string summary() const override {
58 return "Algorithm to focus powder diffraction data into a number of "
59 "histograms according to a grouping scheme defined in a CalFile.";
60 }
61
63 int version() const override { return 1; }
65 const std::string category() const override { return "Diffraction\\Focussing"; }
66
67private:
68 // Overridden Algorithm methods
69 void init() override;
70 void exec() override;
72 void RebinWorkspace(API::MatrixWorkspace_sptr &workspace);
73 void calculateRebinParams(const API::MatrixWorkspace_const_sptr &workspace, double &min, double &max, double &step);
74 std::multimap<int64_t, int64_t> readGroupingFile(const std::string &groupingFileName);
75};
76
77} // namespace Algorithms
78} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Class for marking algorithms as deprecated.
This is a parent algorithm that uses several different child algorithms to perform it's task.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::map< detid_t, int > readGroupingFile(const std::string &groupingFileName, Progress &prog)
Read old-style .cal file to get the grouping.
Helper class which provides the Collimation Length for SANS instruments.