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
15namespace Mantid {
16namespace WorkflowAlgorithms {
24// Pulse widge (micro sec per angstrom)
25const double PULSEWIDTH = 20.0;
26// Chopper phase offset (micro sec)
27const double CHOPPER_PHASE_OFFSET[2][4] = {{9507., 9471., 9829.7, 9584.3}, {19024., 18820., 19714., 19360.}};
28// Chopper angles (degree)
29const double CHOPPER_ANGLE[4] = {129.605, 179.989, 230.010, 230.007};
30// Chopper location (mm)
31const double CHOPPER_LOCATION[4] = {5700., 7800., 9497., 9507.};
32
34public:
36 const std::string name() const override { return "EQSANSMonitorTOF"; }
38 const std::string summary() const override {
39 return "Converts the TOF into a wavelength for the beam monitor. This "
40 "algorithm needs to be run once on every data set.";
41 }
43 int version() const override { return (1); }
45 const std::string category() const override { return "Workflow\\SANS"; }
46
47private:
49 void init() override;
51 void exec() override;
52
54 double getTofOffset(const API::MatrixWorkspace_const_sptr &inputWS, bool frame_skipping, double source_to_monitor);
55};
56
57} // namespace WorkflowAlgorithms
58} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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]
const double CHOPPER_LOCATION[4]
Helper class which provides the Collimation Length for SANS instruments.