8#include "MantidAPI/DllConfig.h"
39 virtual void clear(
const bool removeDetIDs) = 0;
53 bool skipError =
false)
const = 0;
57 const double &tofOffset,
bool skipError =
false)
const = 0;
59 virtual double integrate(
const double minX,
const double maxX,
const bool entireRange)
const = 0;
61 virtual void convertTof(std::function<
double(
double)> func,
const int sorting = 0) = 0;
63 virtual void convertTof(
const double factor,
const double offset = 0.) = 0;
65 virtual void scaleTof(
const double factor) = 0;
67 virtual void addTof(
const double offset) = 0;
73 virtual void maskTof(
const double tofMin,
const double tofMax) = 0;
77 virtual std::vector<double>
getTofs()
const = 0;
79 virtual void getTofs(std::vector<double> &tofs)
const = 0;
83 virtual void getWeights(std::vector<double> &weights)
const = 0;
89 virtual std::vector<Mantid::Types::Core::DateAndTime>
getPulseTimes()
const = 0;
100 const double &tofOffset)
const = 0;
103 const double &tofOffset)
const = 0;
double value
The value of the point.
IEventList : Interface to Mantid::DataObjects::EventList class, used to expose to PythonAPI.
virtual void addPulsetime(const double seconds)=0
Add a value to the pulse time values.
virtual void addTof(const double offset)=0
Add a value to the TOF values.
virtual Mantid::API::EventType getEventType() const =0
Return the current event type for the list.
virtual Mantid::Types::Core::DateAndTime getPulseTimeMax() const =0
Get the maximum pulse time from the list.
virtual void convertTof(const double factor, const double offset=0.)=0
Convert the TOF values.
virtual std::size_t getNumberEvents() const =0
Get the number of events from the list.
virtual void generateHistogramTimeAtSample(const MantidVec &X, MantidVec &Y, MantidVec &E, const double &tofFactor, const double &tofOffset, bool skipError=false) const =0
Get copy of counts and errors rebinning using the given X values w.r.t absolute time at the sample.
virtual Mantid::Types::Core::DateAndTime getPulseTimeMin() const =0
Get the minimum pulse time from the list.
virtual void maskCondition(const std::vector< bool > &mask)=0
Mask the events by the condition vector.
virtual void getTofs(std::vector< double > &tofs) const =0
Return the list of TOF values.
virtual void scaleTof(const double factor)=0
Scale the TOF values by a constant.
virtual std::vector< double > getWeights() const =0
Return the list of event weight values.
virtual Mantid::Types::Core::DateAndTime getTimeAtSampleMin(const double &tofFactor, const double &tofOffset) const =0
Get the minimum time at sample.
virtual Mantid::Types::Core::DateAndTime getTimeAtSampleMax(const double &tofFactor, const double &tofOffset) const =0
Get the maximum time at sample.
virtual double integrate(const double minX, const double maxX, const bool entireRange) const =0
Integrate the event list.
virtual std::vector< Mantid::Types::Core::DateAndTime > getPulseTimes() const =0
Return the list of pulse time values.
virtual void divide(const MantidVec &X, const MantidVec &Y, const MantidVec &E)=0
Divide event list by a histogram.
virtual void maskTof(const double tofMin, const double tofMax)=0
Mask a given TOF range.
IEventList()
Empty constructor.
virtual void multiply(const double value, const double error=0.0)=0
Multiply event list by a constant with error.
virtual bool isSortedByTof() const =0
IS the list sorted by TOF?
virtual void getWeights(std::vector< double > &weights) const =0
Return the list of event weight values.
virtual void convertTof(std::function< double(double)> func, const int sorting=0)=0
Convert the TOF values.
virtual void divide(const double value, const double error=0.0)=0
Divide event list by a constant with error.
virtual void multiply(const MantidVec &X, const MantidVec &Y, const MantidVec &E)=0
Multiply event list by a histogram.
virtual void clear(const bool removeDetIDs)=0
Clear the event list.
virtual std::vector< double > getTofs() const =0
Return the list of TOF values.
virtual void switchTo(Mantid::API::EventType newType)=0
Switch to a new event type within the list.
virtual void getWeightErrors(std::vector< double > &weightErrors) const =0
Return the list of event weight error values.
virtual void addPulsetimes(const std::vector< double > &seconds)=0
Add a separate value to each of the pulse time values.
virtual void setTofs(const MantidVec &tofs)=0
Set the TOFs from the given list.
virtual double getTofMin() const =0
Get the minimum TOF from the list.
virtual void generateHistogramPulseTime(const MantidVec &X, MantidVec &Y, MantidVec &E, bool skipError=false) const =0
Get copy of counts and errors rebinned using the given X values w.r.t pulse time.
virtual double getTofMax() const =0
Get the maximum TOF from the list.
size_t getMemorySize() const override=0
Get memory size of event list.
virtual void generateHistogram(const MantidVec &X, MantidVec &Y, MantidVec &E, bool skipError=false) const =0
Get copy of counts and errors, rebinned using on the given X values.
IEventList(specnum_t specNo)
Constructor.
virtual std::vector< double > getWeightErrors() const =0
Return the list of event weight error values.
virtual void reserve(size_t num)=0
Reserve a fixed size for the list.
A "spectrum" is an object that holds the data for a particular spectrum, in particular:
EventType
What kind of event list is being stored.
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces
int32_t specnum_t
Typedef for a spectrum Number.