11#include "MantidAlgorithms/DllConfig.h"
25 const std::string
name()
const override {
return "ExportTimeSeriesLog"; };
27 int version()
const override {
return 1; };
28 const std::vector<std::string>
seeAlso()
const override {
return {
"GetTimeSeriesLogInformation"}; }
30 const std::string
category()
const override {
return "Diffraction\\DataHandling;Events\\EventFiltering"; };
33 const std::string
summary()
const override {
return "Read a TimeSeries log and return information"; }
50 bool calculateTimeSeriesRangeByTime(std::vector<Types::Core::DateAndTime> &vec_times,
const double &rel_start_time,
51 size_t &i_start,
const double &rel_stop_time,
size_t &i_stop,
52 const double &time_factor);
54 void exportLog(
const std::string &logname,
const std::string &timeunit,
const double &starttime,
55 const double &stoptime,
const bool exportepoch,
bool outputeventws,
int numentries,
56 bool cal_first_deriv);
58 void setupEventWorkspace(
const size_t &start_index,
const size_t &stop_index,
int numentries,
59 std::vector<Types::Core::DateAndTime> ×, std::vector<double> values,
60 const bool &epochtime);
62 void setupWorkspace2D(
const size_t &start_index,
const size_t &stop_index,
int numentries,
63 std::vector<Types::Core::DateAndTime> ×, std::vector<double> values,
const bool &epochtime,
64 const double &timeunitfactor,
size_t nspec);
66 void calculateFirstDerivative(
bool is_event_ws);
68 void setupMetaData(
const std::string &log_name,
const std::string &time_unit,
const bool &export_epoch);
Base class from which all concrete algorithm classes should be derived.
ExportTimeSeriesLog : Read a TimeSeries log and return some information required by users.
API::MatrixWorkspace_sptr m_inputWS
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
API::MatrixWorkspace_sptr m_outWS
Types::Core::DateAndTime mRunStartTime
std::vector< int64_t > mSETimes
const std::string category() const override
function to return a category of the algorithm.
std::vector< double > mSEValues
Types::Core::DateAndTime mFilterT0
const std::string summary() const override
Summary of algorithms purpose.
Types::Core::DateAndTime mFilterTf
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.