14namespace DataObjects {
38 using MDEventType =
typename MDEW_SPTR::element_type::MDEventType;
57 void insertMDEvent(
float signal,
float errorSQ, uint16_t expInfoIndex, uint16_t goniometerIndex, int32_t detectno,
61 insertMDEvent(signal, errorSQ, expInfoIndex, goniometerIndex, detectno, coords,
90 void insertMDEvent(
float signal,
float errorSQ, uint16_t expInfoIndex, uint16_t goniometerIndex, int32_t detectno,
92 m_ws->addEvent(
MDEventType(signal, errorSQ, expInfoIndex, goniometerIndex, detectno, coords));
MDEventInserter : Helper class that provides a generic interface for adding events to an MDWorkspace ...
typename MDEW_SPTR::element_type::MDEventType MDEventType
Type of MDEvent used by the MDEventWorkspace.
MDEW_SPTR m_ws
shared pointer to MDEW to add to.
void insertMDEvent(float signal, float errorSQ, uint16_t expInfoIndex, uint16_t goniometerIndex, int32_t detectno, Mantid::coord_t *coords, IntToType< true >)
Creates a FULL MDEvent and adds it to the MDEW.
void insertMDEvent(float signal, float errorSQ, uint16_t, uint16_t, int32_t, Mantid::coord_t *coords, IntToType< false >)
Creates a LEAN MDEvent and adds it to the MDEW.
void insertMDEvent(float signal, float errorSQ, uint16_t expInfoIndex, uint16_t goniometerIndex, int32_t detectno, Mantid::coord_t *coords)
Creates an mdevent and adds it to the MDEW.
MDEventInserter(MDEW_SPTR &ws)
Constructor.
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...
Loki IntToType, used for template overload deduction.