Mantid
Loading...
Searching...
No Matches
MuonGroupCalculator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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#include "MantidWorkflowAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace WorkflowAlgorithms {
14
17class MANTID_WORKFLOWALGORITHMS_DLL MuonGroupCalculator : public IMuonAsymmetryCalculator {
18public:
19 MuonGroupCalculator(const Mantid::API::WorkspaceGroup_sptr &inputWS, const std::vector<int> &summedPeriods,
20 const std::vector<int> &subtractedPeriods, const int groupIndex);
21 void setStartEnd(const double start, const double end);
22 void setWSName(const std::string &wsName);
23
24protected:
26 const int m_groupIndex;
27 double m_startX;
28 double m_endX;
29 std::string m_wsName;
30};
31
32} // namespace WorkflowAlgorithms
33} // namespace Mantid
IMuonAsymmetryCalculator : Abstract base class for muon asymmetry calculations.
MuonGroupCalculator : Base class for Muon group counts/asymmetry calculators.
const int m_groupIndex
Workspace index of the group to analyse.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
Helper class which provides the Collimation Length for SANS instruments.