Mantid
Loading...
Searching...
No Matches
HyspecScharpfCorrection.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2017 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 "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
14
19class MANTID_ALGORITHMS_DLL HyspecScharpfCorrection final : public API::Algorithm {
20public:
21 const std::string name() const override;
22 int version() const override;
23 const std::string category() const override;
24 const std::string summary() const override;
25
26private:
27 void init() override;
28 void exec() override;
29 void execEvent();
36 template <class T> void ScharpfEventHelper(std::vector<T> &wevector, double thPlane);
43 float calculateFactor(const double kfki, const double thPlane);
49 double m_angle;
53 double m_Ei;
54};
55
56} // namespace Algorithms
57} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
HyspecScharpfCorrection : Divide by cos(2alpha) where alpha is the angle between incident beam and th...
Mantid::API::MatrixWorkspace_const_sptr m_inputWS
The user selected (input) workspace.
double m_angle
In plane angle beween polarization and incident beam (in degrees)
double m_precision
Lower limit for abs(cos(2*Scharpf angle)), below which intensities are 0.
Mantid::API::MatrixWorkspace_sptr m_outputWS
The output workspace, maybe the same as the input one.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.