15#include "MantidAlgorithms/DllConfig.h"
51 const std::string
name()
const override {
return "CreateCalFileByNames"; }
53 const std::string
summary()
const override {
54 return "Create a calibration file (extension .cal) for diffraction "
55 "focusing based on the names of the components in the instrument "
60 int version()
const override {
return (1); }
61 const std::vector<std::string>
seeAlso()
const override {
62 return {
"ReadGroupsFromFile",
"CreateDummyCalFile",
"AlignDetectors",
"DiffractionFocussing",
63 "LoadCalFile",
"SaveCalFile",
"MergeCalFiles"};
66 const std::string
category()
const override {
return "Diffraction\\DataHandling\\CalFiles"; }
80 bool groupingFileDoesExist(
const std::string &filename)
const;
81 void saveGroupingFile(
const std::string &,
bool overwrite)
const;
82 static void writeCalEntry(std::ostream &os,
int number,
int udet,
double offset,
int select,
int group);
83 void writeHeaders(std::ostream &os,
const std::string &filename,
bool overwrite)
const;
Base class from which all concrete algorithm classes should be derived.
Create a calibration file for diffraction focussing (*.cal old Ariel format) based on list of names o...
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version.
std::string m_filename
The name and path of the input file.
std::string groups
The names of the groups.
std::map< int, std::pair< int, int > > instrcalmap
Calibration entries map.
const std::string summary() const override
Summary of algorithms purpose.
instrcalmap instrcalib
Calibration map used if the *.cal file exist.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string name() const override
Algorithm's name.
Helper class which provides the Collimation Length for SANS instruments.