26namespace MDAlgorithms {
39 bool useLogTimes)
override;
59 std::vector<std::unique_ptr<Kernel::TimeSeriesProperty<double>>>
m_Logs;
65 for (
size_t axIdx = 0; axIdx <
m_GonioIndex.size(); axIdx++) {
66 double logval =
m_Logs[axIdx]->getSingleValue(ev->pulseTime());
67 if (std::isnan(logval))
Helper class for reporting progress from algorithms.
Class to represent a particular goniometer setting, which is described by the rotation matrix.
void setRotationAngle(const std::string &name, double value)
Set rotation angle for an axis using motor name.
const Kernel::DblMatrix & getR() const
Return global rotation matrix.
T Invert()
LU inversion routine.
std::vector< T > getVector() const
Class describes the interface to the methods, which perform conversion from usual workspaces to MDEve...
MDTransf_sptr m_QConverter
bool m_useLogTimes
Flag to use log values corresponding to event pulse time instead of average values.
The class specializes ConvToDataObjectsBase for the case when the conversion occurs from Events WS to...
std::vector< std::unique_ptr< Kernel::TimeSeriesProperty< double > > > m_Logs
size_t initialize(const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros, bool useLogTimes) override
method sets up all internal variables necessary to convert from Event Workspace to MDEvent workspace
Kernel::DblMatrix m_tmpRot
size_t convertEventList(size_t workspaceIndex)
function converts particular type of events into MD space and add these events to the workspace itsel...
bool setGoniometersFromLogs(const T &ev)
size_t conversionChunk(size_t workspaceIndex) override
The method runs conversion for a single event list, corresponding to a particular workspace index.
DataObjects::EventWorkspace_const_sptr m_EventWS
Kernel::DblMatrix m_Wtransf
virtual void appendEventsFromInputWS(API::Progress *pProgress, const API::BoxController_sptr &bc)
std::vector< size_t > m_GonioIndex
Geometry::Goniometer m_Goniometer
void runConversion(API::Progress *pProgress) override
method which starts the conversion procedure
helper class describes the properties of target MD workspace, which should be obtained as the result ...
std::shared_ptr< BoxController > BoxController_sptr
Shared ptr to BoxController.
std::shared_ptr< const EventWorkspace > EventWorkspace_const_sptr
shared pointer to a const Workspace2D
Helper class which provides the Collimation Length for SANS instruments.