Mantid
Loading...
Searching...
No Matches
EQSANSMonitorTOF.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
14#include "MantidWorkflowAlgorithms/DllConfig.h"
15
16namespace Mantid {
17namespace WorkflowAlgorithms {
25// Pulse widge (micro sec per angstrom)
26const double PULSEWIDTH = 20.0;
27// Chopper phase offset (micro sec)
28const double CHOPPER_PHASE_OFFSET[2][4] = {{9507., 9471., 9829.7, 9584.3}, {19024., 18820., 19714., 19360.}};
29// Chopper angles (degree)
30const double CHOPPER_ANGLE[4] = {129.605, 179.989, 230.010, 230.007};
31// Chopper location (mm)
32const double CHOPPER_LOCATION[4] = {5700., 7800., 9497., 9507.};
33
34class MANTID_WORKFLOWALGORITHMS_DLL EQSANSMonitorTOF final : public API::Algorithm {
35public:
37 const std::string name() const override { return "EQSANSMonitorTOF"; }
39 const std::string summary() const override {
40 return "Converts the TOF into a wavelength for the beam monitor. This "
41 "algorithm needs to be run once on every data set.";
42 }
44 int version() const override { return (1); }
46 const std::string category() const override { return "Workflow\\SANS"; }
47
48private:
50 void init() override;
52 void exec() override;
53
55 double getTofOffset(const API::MatrixWorkspace_const_sptr &inputWS, bool frame_skipping, double source_to_monitor);
56};
57
58} // namespace WorkflowAlgorithms
59} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version.
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
const double PULSEWIDTH
Determine the wavelength from the TOF in the beam monitor histogram.
const double CHOPPER_PHASE_OFFSET[2][4]
Helper class which provides the Collimation Length for SANS instruments.