16#include "MantidMDAlgorithms/DllConfig.h"
19namespace MDAlgorithms {
31 const std::string
name()
const override {
return "IntegratePeaksCWSD"; }
34 const std::string
summary()
const override {
35 return "Integrate single-crystal peaks in reciprocal space, for "
36 "MDEventWorkspaces from reactor-source single crystal "
41 int version()
const override {
return 1; }
42 const std::vector<std::string>
seeAlso()
const override {
43 return {
"IntegratePeaksHybrid",
"IntegratePeaksMDHKL",
"IntegratePeaksMD",
"IntegratePeaksUsingClusters"};
47 const std::string
category()
const override {
return "MDAlgorithms\\Peaks;Crystal\\Integration"; }
58 void simplePeakIntegration(
const std::vector<detid_t> &vecMaskedDetID,
59 const std::map<int, signal_t> &run_monitor_map);
60 template <
typename MDE,
size_t nd>
62 const std::map<uint16_t, signal_t> &run_monitor_map);
65 std::map<int, signal_t> getMonitorCounts();
68 std::map<int, double> getMeasureTime();
72 void getPeakInformation();
79 void normalizePeaksIntensities();
Base class from which all concrete algorithm classes should be derived.
Class for marking algorithms as deprecated.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Integrate single-crystal peaks in reciprocal-space.
const std::string name() const override
Algorithm's name for identification.
Mantid::DataObjects::PeaksWorkspace_sptr m_peaksWS
Input PeaksWorkspace.
Mantid::API::IMDEventWorkspace_sptr m_inputWS
Input MDEventWorkspace.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
std::map< int, double > m_runPeakCountsMap
Integrated peaks' intensity per run number.
void integrate(typename DataObjects::MDEventWorkspace< MDE, nd >::sptr ws, const std::map< uint16_t, signal_t > &run_monitor_map)
bool m_haveMultipleRun
Peak centers.
std::map< int, Kernel::V3D > m_runPeakCenterMap
DataObjects::MaskWorkspace_sptr m_maskWS
std::vector< DataObjects::Peak > m_vecPeaks
Peaks.
std::map< int, double > m_runNormMap
a map for run number and normalization value (monitor or time)
bool m_haveInputPeakWS
Peak workspace.
const std::string category() const override
Algorithm's category for identification.
bool m_normalizeByMonitor
int version() const override
Algorithm's version for identification.
const std::string summary() const override
Summary of algorithms purpose.
std::vector< detid_t > vecMaskedDetID
bool m_useSinglePeakCenterFmUser
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< const MaskWorkspace > MaskWorkspace_const_sptr
shared pointer to a const MaskWorkspace
std::shared_ptr< MaskWorkspace > MaskWorkspace_sptr
shared pointer to the MaskWorkspace class
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
Helper class which provides the Collimation Length for SANS instruments.