Mantid
Loading...
Searching...
No Matches
PeakClusterProjection.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
10#include "MantidCrystal/DllConfig.h"
12#include <memory>
13
14namespace Mantid {
15namespace Geometry {
16class IPeak;
17class PeakTransform;
18} // namespace Geometry
19namespace API {
20class IMDHistoWorkspace;
21class IMDEventWorkspace;
22} // namespace API
23namespace Crystal {
24
28class MANTID_CRYSTAL_DLL PeakClusterProjection {
29public:
31 PeakClusterProjection(std::shared_ptr<Mantid::API::IMDWorkspace> &mdWS);
33 PeakClusterProjection(std::shared_ptr<Mantid::API::IMDHistoWorkspace> &mdWS);
35 PeakClusterProjection(std::shared_ptr<Mantid::API::IMDEventWorkspace> &mdWS);
39 Mantid::signal_t signalAtPeakCenter(const Mantid::Geometry::IPeak &peak,
42 Mantid::Kernel::V3D peakCenter(const Mantid::Geometry::IPeak &peak) const;
44 virtual ~PeakClusterProjection() = default;
45
46private:
48 std::shared_ptr<Mantid::API::IMDWorkspace> m_mdWS;
49
51 std::shared_ptr<Mantid::Geometry::PeakTransform> m_peakTransform;
52};
53
54} // namespace Crystal
55} // namespace Mantid
PeakClusterProjection : Maps peaks onto IMDHistoWorkspaces and returns the signal value at the peak c...
virtual ~PeakClusterProjection()=default
Destructor.
PeakClusterProjection & operator=(const PeakClusterProjection &)=delete
PeakClusterProjection(const PeakClusterProjection &)=delete
std::shared_ptr< Mantid::API::IMDWorkspace > m_mdWS
Image.
std::shared_ptr< Mantid::Geometry::PeakTransform > m_peakTransform
Peak Transform.
Structure describing a single-crystal peak.
Definition: IPeak.h:26
Class for 3D vectors.
Definition: V3D.h:34
MDNormalization
Enum describing different ways to normalize the signal in a MDWorkspace.
Definition: IMDIterator.h:25
@ NoNormalization
Don't normalize = return raw counts.
Definition: IMDIterator.h:27
Helper class which provides the Collimation Length for SANS instruments.
double signal_t
Typedef for the signal recorded in a MDBox, etc.
Definition: MDTypes.h:36