15#include "MantidMDAlgorithms/DllConfig.h"
18namespace MDAlgorithms {
30 const std::string
name()
const override {
return "IntegratePeaksCWSD"; }
33 const std::string
summary()
const override {
34 return "Integrate single-crystal peaks in reciprocal space, for "
35 "MDEventWorkspaces from reactor-source single crystal "
40 int version()
const override {
return 1; }
41 const std::vector<std::string>
seeAlso()
const override {
42 return {
"IntegratePeaksHybrid",
"IntegratePeaksMDHKL",
"IntegratePeaksMD",
"IntegratePeaksUsingClusters"};
46 const std::string
category()
const override {
return "MDAlgorithms\\Peaks;Crystal\\Integration"; }
57 void simplePeakIntegration(
const std::vector<detid_t> &vecMaskedDetID,
58 const std::map<int, signal_t> &run_monitor_map);
59 template <
typename MDE,
size_t nd>
61 const std::map<uint16_t, signal_t> &run_monitor_map);
64 std::map<int, signal_t> getMonitorCounts();
67 std::map<int, double> getMeasureTime();
71 void getPeakInformation();
78 void normalizePeaksIntensities();
Base class from which all concrete algorithm classes should be derived.
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.