Mantid
|
Small class that allows a MDEventWorkspace or a MDHistoWorkspace to hold several ExperimentInfo classes. More...
#include <MultipleExperimentInfos.h>
Public Member Functions | |
uint16_t | addExperimentInfo (const ExperimentInfo_sptr &ei) |
Add a new ExperimentInfo to this MDEventWorkspace. More... | |
void | copyExperimentInfos (const MultipleExperimentInfos &other) |
Copy the experiment infos from another. More... | |
ExperimentInfo_sptr | getExperimentInfo (const uint16_t expInfoIndex) |
Get the ExperimentInfo for the given Experiment-Info Index. More... | |
ExperimentInfo_const_sptr | getExperimentInfo (const uint16_t expInfoIndex) const |
Get the ExperimentInfo for the given Experiment-Info Index. More... | |
uint16_t | getNumExperimentInfo () const |
bool | hasOrientedLattice () const |
MultipleExperimentInfos ()=default | |
MultipleExperimentInfos (const MultipleExperimentInfos &other) | |
Copy constructor. More... | |
MultipleExperimentInfos & | operator= (const MultipleExperimentInfos &other) |
void | setExperimentInfo (const uint16_t expInfoIndex, ExperimentInfo_sptr ei) |
Replace the ExperimentInfo entry at a given place. More... | |
virtual | ~MultipleExperimentInfos ()=default |
Protected Member Functions | |
const std::string | toString () const |
Returns a string description of the object. More... | |
Private Attributes | |
std::vector< ExperimentInfo_sptr > | m_expInfos |
Vector for each ExperimentInfo class. More... | |
Small class that allows a MDEventWorkspace or a MDHistoWorkspace to hold several ExperimentInfo classes.
Definition at line 20 of file MultipleExperimentInfos.h.
|
default |
Mantid::API::MultipleExperimentInfos::MultipleExperimentInfos | ( | const MultipleExperimentInfos & | other | ) |
Copy constructor.
other | :: other workspace to copy |
Definition at line 25 of file MultipleExperimentInfos.cpp.
|
virtualdefault |
uint16_t Mantid::API::MultipleExperimentInfos::addExperimentInfo | ( | const ExperimentInfo_sptr & | ei | ) |
Add a new ExperimentInfo to this MDEventWorkspace.
ei | :: shared ptr to the ExperimentInfo class to add |
std::runtime_error | if you reach the limit of 65536 entries. |
Definition at line 63 of file MultipleExperimentInfos.cpp.
References m_expInfos.
void Mantid::API::MultipleExperimentInfos::copyExperimentInfos | ( | const MultipleExperimentInfos & | other | ) |
Copy the experiment infos from another.
Deep copy.
other | :: other workspace to copy |
Definition at line 90 of file MultipleExperimentInfos.cpp.
References m_expInfos.
Referenced by export_MultipleExperimentInfos(), operator=(), and Mantid::MDAlgorithms::SliceMD::slice().
ExperimentInfo_sptr Mantid::API::MultipleExperimentInfos::getExperimentInfo | ( | const uint16_t | expInfoIndex | ) |
Get the ExperimentInfo for the given Experiment-Info Index.
expInfoIndex | :: 0-based index of the run to get. |
Definition at line 38 of file MultipleExperimentInfos.cpp.
References m_expInfos.
Referenced by export_MultipleExperimentInfos(), Mantid::MDAlgorithms::FindPeaksMD::findPeaks(), and hasOrientedLattice().
ExperimentInfo_const_sptr Mantid::API::MultipleExperimentInfos::getExperimentInfo | ( | const uint16_t | expInfoIndex | ) | const |
Get the ExperimentInfo for the given Experiment-Info Index.
expInfoIndex | :: 0-based index of the run to get. |
Definition at line 50 of file MultipleExperimentInfos.cpp.
References m_expInfos.
uint16_t Mantid::API::MultipleExperimentInfos::getNumExperimentInfo | ( | ) | const |
Definition at line 85 of file MultipleExperimentInfos.cpp.
References m_expInfos.
Referenced by export_MultipleExperimentInfos(), Mantid::MDAlgorithms::FindPeaksMD::findPeaks(), and hasOrientedLattice().
bool Mantid::API::MultipleExperimentInfos::hasOrientedLattice | ( | ) | const |
Definition at line 104 of file MultipleExperimentInfos.cpp.
References getExperimentInfo(), and getNumExperimentInfo().
Referenced by MDHistoWorkspaceTester::hasOrientedLattice().
MultipleExperimentInfos & Mantid::API::MultipleExperimentInfos::operator= | ( | const MultipleExperimentInfos & | other | ) |
Definition at line 27 of file MultipleExperimentInfos.cpp.
References copyExperimentInfos().
void Mantid::API::MultipleExperimentInfos::setExperimentInfo | ( | const uint16_t | expInfoIndex, |
ExperimentInfo_sptr | ei | ||
) |
Replace the ExperimentInfo entry at a given place.
expInfoIndex | :: 0-based index of the run to replace |
ei | :: shared ptr to the ExperimentInfo class to add |
Definition at line 77 of file MultipleExperimentInfos.cpp.
References m_expInfos.
|
protected |
Returns a string description of the object.
Definition at line 113 of file MultipleExperimentInfos.cpp.
References m_expInfos.
Referenced by Mantid::API::IMDEventWorkspace::toString(), and Mantid::API::IMDHistoWorkspace::toString().
|
private |
Vector for each ExperimentInfo class.
Definition at line 48 of file MultipleExperimentInfos.h.
Referenced by addExperimentInfo(), copyExperimentInfos(), getExperimentInfo(), getNumExperimentInfo(), setExperimentInfo(), and toString().