Mantid
Loading...
Searching...
No Matches
GenerateGroupingPowder.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
10#include "MantidDataHandling/DllConfig.h"
12
13namespace Mantid {
14namespace DataHandling {
15
21class MANTID_DATAHANDLING_DLL GenerateGroupingPowder : public API::Algorithm {
22public:
23 const std::string name() const override;
25 const std::string summary() const override { return "Generate grouping by angles."; }
26
27 int version() const override;
28 const std::string category() const override;
29 const std::vector<std::string> seeAlso() const override { return {"LoadDetectorsGroupingFile", "GroupDetectors"}; }
30
31 static std::string parFilenameFromXmlFilename(const std::string &filename);
32
33protected:
34 void init() override;
35
36 void createGroups();
37 void saveAsNexus();
38
40
41private:
42 void saveGroups();
43 void saveAsXML();
44 void saveAsPAR();
45
46 void exec() override;
47
48 std::map<std::string, std::string> validateInputs() override;
49};
50
51} // namespace DataHandling
52} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
GenerateGroupingPowder : Generate grouping file and par file, for powder scattering.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
DataObjects::GroupingWorkspace_sptr m_groupWS
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< GroupingWorkspace > GroupingWorkspace_sptr
shared pointer to the GroupingWorkspace class
Helper class which provides the Collimation Length for SANS instruments.