23 const std::vector<int> &summedPeriods,
24 const std::vector<int> &subtractedPeriods,
const int groupIndex)
33 int numPeriods =
m_inputWS->getNumberOfEntries();
API::MatrixWorkspace_sptr subtractWorkspaces(const API::MatrixWorkspace_sptr &lhs, const API::MatrixWorkspace_sptr &rhs) const
Subtracts one workspace from another (lhs - rhs)
const API::WorkspaceGroup_sptr m_inputWS
Input workspace.
const std::vector< int > m_subtractedPeriods
List of subtracted periods.
API::MatrixWorkspace_sptr sumPeriods(const std::vector< int > &periodsToSum) const
Sums the specified periods in the input workspace group.
API::MatrixWorkspace_sptr extractSpectrum(const API::Workspace_sptr &inputWS, const int index) const
Extracts a single spectrum from a workspace.
const std::vector< int > m_summedPeriods
List of summed periods.
MuonGroupCalculator : Base class for Muon group counts/asymmetry calculators.
const int m_groupIndex
Workspace index of the group to analyse.
Mantid::API::MatrixWorkspace_sptr calculate() const override
Performs group counts calculation.
MuonGroupCountsCalculator(const Mantid::API::WorkspaceGroup_sptr &inputWS, const std::vector< int > &summedPeriods, const std::vector< int > &subtractedPeriods, const int groupIndex)
Constructor.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class