Mantid
Loading...
Searching...
No Matches
MuonGroupingXMLHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
11
13
14// Simplest possible grouping file, with only a single group
15ScopedFileHelper::ScopedFile createGroupingXMLSingleGroup(const std::string &groupName, const std::string &group);
20ScopedFileHelper::ScopedFile createGroupingXMLSinglePair(const std::string &pairName, const std::string &groupName);
21
26ScopedFileHelper::ScopedFile createXMLwithPairsAndGroups(const int &nGroups = 1, const int &nDetectorsPerGroup = 1);
27
28// Saves grouping to the XML file specified
29DLLExport std::string groupingToXML(const Mantid::API::Grouping &grouping);
30
31} // namespace MuonGroupingXMLHelper
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Structure to represent grouping information.
ScopedFileHelper::ScopedFile createGroupingXMLSinglePair(const std::string &pairName, const std::string &groupName)
Create an XML with two simple groups and a pair made from them.
DLLExport std::string groupingToXML(const Mantid::API::Grouping &grouping)
Create an XML file (as a string) containing muon grouping information.
ScopedFileHelper::ScopedFile createGroupingXMLSingleGroup(const std::string &groupName, const std::string &group)
Simplest possible grouping file, with only a single group.
ScopedFileHelper::ScopedFile createXMLwithPairsAndGroups(const int &nGroups=1, const int &nDetectorsPerGroup=1)
Create an XML file with grouping/pairing information.