Mantid
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Mantid::MDAlgorithms::SimpleMDEvent Class Reference

Public Member Functions

float getCenter (size_t dim) const
 
float getError () const
 
float getSignal () const
 
bool operator() (const SimpleMDEvent &event1, const SimpleMDEvent &event2) const
 
bool operator< (const SimpleMDEvent &event2) const
 override operator < order More...
 
SimpleMDEventoperator= (const SimpleMDEvent &event2)
 
 SimpleMDEvent (const SimpleMDEvent &other)=default
 
 SimpleMDEvent (std::vector< float > coordinates, const float &signal, const float &error)
 
std::string str () const
 

Static Public Attributes

static float s_tolerance
 static tolerance More...
 

Private Attributes

std::vector< float > mCoordinates
 
float mError
 
float mSignal
 

Detailed Description

Definition at line 35 of file CompareMDWorkspaces.cpp.

Constructor & Destructor Documentation

◆ SimpleMDEvent() [1/2]

Mantid::MDAlgorithms::SimpleMDEvent::SimpleMDEvent ( std::vector< float >  coordinates,
const float &  signal,
const float &  error 
)
inline

Definition at line 47 of file CompareMDWorkspaces.cpp.

◆ SimpleMDEvent() [2/2]

Mantid::MDAlgorithms::SimpleMDEvent::SimpleMDEvent ( const SimpleMDEvent other)
default

Member Function Documentation

◆ getCenter()

float Mantid::MDAlgorithms::SimpleMDEvent::getCenter ( size_t  dim) const
inline

Definition at line 63 of file CompareMDWorkspaces.cpp.

References mCoordinates.

◆ getError()

float Mantid::MDAlgorithms::SimpleMDEvent::getError ( ) const
inline

Definition at line 67 of file CompareMDWorkspaces.cpp.

References mError.

◆ getSignal()

float Mantid::MDAlgorithms::SimpleMDEvent::getSignal ( ) const
inline

Definition at line 65 of file CompareMDWorkspaces.cpp.

References mSignal.

◆ operator()()

bool Mantid::MDAlgorithms::SimpleMDEvent::operator() ( const SimpleMDEvent event1,
const SimpleMDEvent event2 
) const
inline

Definition at line 69 of file CompareMDWorkspaces.cpp.

◆ operator<()

bool Mantid::MDAlgorithms::SimpleMDEvent::operator< ( const SimpleMDEvent event2) const
inline

override operator < order

  1. coordinate
  2. signal
  3. error
    Returns

Definition at line 79 of file CompareMDWorkspaces.cpp.

References fabs, mCoordinates, mError, mSignal, and s_tolerance.

◆ operator=()

SimpleMDEvent & Mantid::MDAlgorithms::SimpleMDEvent::operator= ( const SimpleMDEvent event2)
inline

Definition at line 128 of file CompareMDWorkspaces.cpp.

References mCoordinates, mError, and mSignal.

◆ str()

std::string Mantid::MDAlgorithms::SimpleMDEvent::str ( ) const
inline

Definition at line 53 of file CompareMDWorkspaces.cpp.

References mCoordinates, mError, and mSignal.

Member Data Documentation

◆ mCoordinates

std::vector<float> Mantid::MDAlgorithms::SimpleMDEvent::mCoordinates
private

Definition at line 38 of file CompareMDWorkspaces.cpp.

Referenced by getCenter(), operator<(), operator=(), and str().

◆ mError

float Mantid::MDAlgorithms::SimpleMDEvent::mError
private

Definition at line 40 of file CompareMDWorkspaces.cpp.

Referenced by getError(), operator<(), operator=(), and str().

◆ mSignal

float Mantid::MDAlgorithms::SimpleMDEvent::mSignal
private

Definition at line 39 of file CompareMDWorkspaces.cpp.

Referenced by getSignal(), operator<(), operator=(), and str().

◆ s_tolerance

float Mantid::MDAlgorithms::SimpleMDEvent::s_tolerance
static

static tolerance

Definition at line 44 of file CompareMDWorkspaces.cpp.

Referenced by Mantid::MDAlgorithms::CompareMDWorkspaces::doComparison(), and operator<().


The documentation for this class was generated from the following file: