Templated class holding data about a neutron detection event in N-dimensions (for example, Qx, Qy, Qz, E).
More...
|
| int32_t | getDetectorID () const |
| |
| uint16_t | getExpInfoIndex () const |
| |
| uint16_t | getGoniometerIndex () const |
| |
| | MDEvent () |
| | Empty constructor. More...
|
| |
| | MDEvent (const double signal, const double errorSquared) |
| | Constructor with signal and error. More...
|
| |
| | MDEvent (const double signal, const double errorSquared, const coord_t *centers) |
| | Constructor with signal and error and an array of centers. More...
|
| |
| | MDEvent (const double signal, const double errorSquared, const uint16_t expInfoIndex, const uint16_t goniometerIndex, const int32_t detectorId) |
| | Constructor with signal, error, expInfoIndex and detectorId. More...
|
| |
| | MDEvent (const double signal, const double errorSquared, const uint16_t expInfoIndex, const uint16_t goniometerIndex, const int32_t detectorId, const coord_t *centers) |
| |
| | MDEvent (const float signal, const float errorSquared) |
| | Constructor with signal and error. More...
|
| |
| | MDEvent (const float signal, const float errorSquared, const coord_t *centers) |
| | Constructor with signal and error and an array of centers. More...
|
| |
| | MDEvent (const float signal, const float errorSquared, const uint16_t expInfoIndex, const uint16_t goniometerIndex, const int32_t detectorId) |
| | Constructor with signal, error, expInfoIndex and detectorId. More...
|
| |
| | MDEvent (const float signal, const float errorSquared, const uint16_t expInfoIndex, const uint16_t goniometerIndex, const int32_t detectorId, const coord_t *centers) |
| | Constructor with signal and error and an array of centers, and the expInfoIndex and detectorID. More...
|
| |
| void | setDetectorId (int32_t id) |
| | Sets the detectorId of this event. More...
|
| |
| void | setExpInfoIndex (uint16_t index) |
| | Sets the expInfoIndex of this event. More...
|
| |
| void | setGoniometerIndex (uint16_t index) |
| | Sets the expInfoIndex of this event. More...
|
| |
| const coord_t * | getCenter () const |
| | Returns the array of coordinates. More...
|
| |
| coord_t | getCenter (const size_t n) const |
| |
| coord_t * | getCenterNonConst () |
| | Returns the array of coordinates, as a pointer to a non-const array. More...
|
| |
| int32_t | getDetectorID () const |
| |
| float | getError () const |
| | Returns the error (not squared) of this event. More...
|
| |
| float | getErrorSquared () const |
| | Returns the error (squared) of this event. More...
|
| |
| uint16_t | getExpInfoIndex () const |
| |
| uint16_t | getGoniometerIndex () const |
| |
| size_t | getNumDims () const |
| | Returns the number of dimensions in the event. More...
|
| |
| float | getSignal () const |
| | Returns the signal (weight) of this event. More...
|
| |
| | MDLeanEvent () |
| | Empty constructor. More...
|
| |
| | MDLeanEvent (const double signal, const double errorSquared) |
| | Constructor with signal and error. More...
|
| |
| | MDLeanEvent (const double signal, const double errorSquared, const coord_t *centers) |
| | Constructor with signal and error and an array of centers. More...
|
| |
| | MDLeanEvent (const float signal, const float errorSquared) |
| | Constructor with signal and error. More...
|
| |
| | MDLeanEvent (const float signal, const float errorSquared, const coord_t *centers) |
| | Constructor with signal and error and an array of centers. More...
|
| |
| | MDLeanEvent (const MDLeanEvent &rhs) |
| | Copy constructor. More...
|
| |
| MDLeanEvent & | operator= (MDLeanEvent other) |
| |
| void | setCenter (const size_t n, const coord_t value) |
| | Sets the n-th coordinate axis value. More...
|
| |
| void | setCoords (const coord_t *centers) |
| | Sets all the coordinates. More...
|
| |
| void | setErrorSquared (const float newerrorSquared) |
| | Set the squared error of the event. More...
|
| |
| void | setSignal (const float newSignal) |
| | Set the signal of the event. More...
|
| |
template<size_t nd>
class Mantid::DataObjects::MDEvent< nd >
Templated class holding data about a neutron detection event in N-dimensions (for example, Qx, Qy, Qz, E).
This is an extension to MDLeanEvent which adds:
- 16-bit int for the expInfoIndex (index into the vector of ExperimentInfo of the workspace)
- 16-bit int for the goniometer index (0-based index determines the goniometer settings when the event occurred)
- 32-bit int for the detector_id.
- Template Parameters
-
| nd | :: the number of dimensions that each MDEvent will be tracking. an int > 0. |
- Author
- Janik Zikovsky, SNS
- Date
- Dec 3, 2010
Definition at line 36 of file MDEvent.h.