Mantid
Loading...
Searching...
No Matches
IntegrateEllipsoidsTwoStep.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11#include "MantidAPI/Progress.h"
15#include "MantidKernel/Matrix.h"
17
18namespace Mantid {
19namespace MDAlgorithms {
20
26class MANTID_MDALGORITHMS_DLL IntegrateEllipsoidsTwoStep final : public API::Algorithm {
27public:
29 const std::string name() const override;
31 int version() const override;
32 const std::vector<std::string> seeAlso() const override { return {"IntegrateEllipsoids"}; }
34 const std::string category() const override;
36 const std::string summary() const override {
37 return "Integrate Single Crystal Diffraction Bragg peaks using 3D "
38 "ellipsoids.";
39 }
40
41private:
42 void init() override;
43 void exec() override;
44 IntegrationParameters makeIntegrationParameters(const Kernel::V3D &peak_q) const;
45
46 void qListFromHistoWS(Integrate3DEvents &integrator, API::Progress &prog, DataObjects::Workspace2D_sptr &wksp,
47 const Kernel::DblMatrix &UBinv, bool hkl_integ);
48 void qListFromEventWS(Integrate3DEvents &integrator, API::Progress &prog, DataObjects::EventWorkspace_sptr &wksp,
49 const Kernel::DblMatrix &UBinv, bool hkl_integ);
51 void calculateE1(const Geometry::DetectorInfo &detectorInfo);
52 void runMaskDetectors(const Mantid::DataObjects::PeaksWorkspace_sptr &peakWS, const std::string &property,
53 const std::string &values);
54
58 std::vector<Kernel::V3D> E1Vec;
59};
60
61} // namespace MDAlgorithms
62} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Helper class for reporting progress from algorithms.
Definition: Progress.h:25
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
Definition: DetectorInfo.h:49
Class for 3D vectors.
Definition: V3D.h:34
This is a low-level class to construct a map with lists of events near each peak Q-vector,...
IntegrateEllipsoidsTwoStep provides a two pass peak integration algorithm.
DataObjects::PeaksWorkspace_sptr integratePeaks(DataObjects::PeaksWorkspace_sptr peaks, API::MatrixWorkspace_sptr ws)
integrate a collection of strong peaks
const std::string summary() const override
Summary of algorithms purpose.
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::vector< Kernel::V3D > E1Vec
save all detector pixels
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
Helper class which provides the Collimation Length for SANS instruments.