|
Mantid
|
A "spectrum" is an object that holds the data for a particular spectrum, in particular: More...
#include <ISpectrum.h>
Public Member Functions | |
| void | addDetectorID (const detid_t detID) |
| Add a detector ID to the set of detector IDs. More... | |
| void | addDetectorIDs (const std::set< detid_t > &detIDs) |
| Add a set of detector IDs to the set of detector IDs. More... | |
| void | addDetectorIDs (const std::vector< detid_t > &detIDs) |
| Add a vector of detector IDs to the set of detector IDs. More... | |
| HistogramData::BinEdges | binEdges () const |
| virtual void | clearData ()=0 |
| void | clearDetectorIDs () |
| Clear the detector IDs set. More... | |
| void | convertToCounts () |
| void | convertToFrequencies () |
| virtual void | copyDataFrom (const ISpectrum &source)=0 |
| Copy data from another ISpectrum with double-dynamic dispatch. More... | |
| virtual void | copyDataInto (DataObjects::EventList &) const |
| Override in child classes for polymorphic copying of data. More... | |
| virtual void | copyDataInto (DataObjects::Histogram1D &) const |
| Override in child classes for polymorphic copying of data. More... | |
| virtual void | copyDataInto (SpectrumTester &) const |
| Override in child classes for polymorphic copying of data. More... | |
| void | copyInfoFrom (const ISpectrum &other) |
| Copy spectrum number and detector IDs, but not X vector, from another ISpectrum. More... | |
| virtual HistogramData::Counts | counts () const |
| virtual HistogramData::CountStandardDeviations | countStandardDeviations () const |
| virtual HistogramData::CountVariances | countVariances () const |
| virtual const MantidVec & | dataDx () const =0 |
| virtual MantidVec & | dataDx ()=0 |
| virtual const MantidVec & | dataE () const =0 |
| virtual MantidVec & | dataE ()=0 |
| virtual const MantidVec & | dataX () const =0 |
| virtual MantidVec & | dataX ()=0 |
| virtual const MantidVec & | dataY () const =0 |
| virtual MantidVec & | dataY ()=0 |
| const HistogramData::HistogramDx & | dx () const |
| virtual const HistogramData::HistogramE & | e () const |
| virtual HistogramData::Frequencies | frequencies () const |
| virtual HistogramData::FrequencyStandardDeviations | frequencyStandardDeviations () const |
| virtual HistogramData::FrequencyVariances | frequencyVariances () const |
| const std::set< detid_t > & | getDetectorIDs () const |
| Get a const reference to the detector IDs set. More... | |
| virtual size_t | getMemorySize () const =0 |
| specnum_t | getSpectrumNo () const |
| virtual std::pair< double, double > | getXDataRange () const |
| Return the min/max X values for this spectrum. More... | |
| bool | hasDetectorID (const detid_t detID) const |
| Return true if the given detector ID is in the list for this ISpectrum. More... | |
| bool | hasDx () const |
| Gets the value of the use flag. More... | |
| virtual HistogramData::Histogram | histogram () const |
| Returns the Histogram associated with this spectrum. More... | |
| ISpectrum ()=default | |
| ISpectrum (const specnum_t specNo) | |
| Constructor with spectrum number. More... | |
| HistogramData::HistogramDx & | mutableDx () & |
| HistogramData::HistogramE & | mutableE () & |
| HistogramData::HistogramX & | mutableX () & |
| HistogramData::HistogramY & | mutableY () & |
| HistogramData::Points | points () const |
| HistogramData::PointStandardDeviations | pointStandardDeviations () const |
| virtual Kernel::cow_ptr< HistogramData::HistogramX > | ptrX () const =0 |
| virtual const MantidVec & | readDx () const =0 |
| virtual const MantidVec & | readE () const |
| Deprecated, use e() instead. Returns the y error data const. More... | |
| virtual const MantidVec & | readX () const =0 |
| virtual const MantidVec & | readY () const |
| Deprecated, use y() instead. Returns the y data const. More... | |
| void | resetHasDx () |
| Resets the hasDx flag. More... | |
| template<typename... T> | |
| void | setBinEdges (T &&...data) & |
| template<typename... T> | |
| void | setCounts (T &&...data) & |
| template<typename... T> | |
| void | setCountStandardDeviations (T &&...data) & |
| template<typename... T> | |
| void | setCountVariances (T &&...data) & |
| void | setDetectorID (const detid_t detID) |
| Clear the list of detector IDs, then add one. More... | |
| void | setDetectorIDs (const std::set< detid_t > &detIDs) |
| Set the detector IDs to be the set given. More... | |
| void | setDetectorIDs (std::set< detid_t > &&detIDs) |
| Set the detector IDs to be the set given (move version). More... | |
| template<typename... T> | |
| void | setFrequencies (T &&...data) & |
| template<typename... T> | |
| void | setFrequencyStandardDeviations (T &&...data) & |
| template<typename... T> | |
| void | setFrequencyVariances (T &&...data) & |
| template<typename... T> | |
| void | setHistogram (T &&...data) |
| Sets the Histogram associated with this spectrum. More... | |
| void | setMatrixWorkspace (MatrixWorkspace *matrixWorkspace, const size_t index) |
| Sets the MatrixWorkspace pointer (pointer to the owning workspace). More... | |
| template<typename... T> | |
| void | setPoints (T &&...data) & |
| template<typename... T> | |
| void | setPointStandardDeviations (T &&...data) & |
| template<typename... T> | |
| void | setPointVariances (T &&...data) & |
| void | setSharedDx (const Kernel::cow_ptr< HistogramData::HistogramDx > &dx) & |
| void | setSharedE (const Kernel::cow_ptr< HistogramData::HistogramE > &e) & |
| void | setSharedX (const Kernel::cow_ptr< HistogramData::HistogramX > &x) & |
| void | setSharedY (const Kernel::cow_ptr< HistogramData::HistogramY > &y) & |
| void | setSpectrumNo (specnum_t num) |
| Sets the the spectrum number of this spectrum. More... | |
| virtual void | setX (const Kernel::cow_ptr< HistogramData::HistogramX > &X)=0 |
| void | setYMode (HistogramData::Histogram::YMode ymode) |
| Kernel::cow_ptr< HistogramData::HistogramDx > | sharedDx () const |
| virtual Kernel::cow_ptr< HistogramData::HistogramE > | sharedE () const |
| Kernel::cow_ptr< HistogramData::HistogramX > | sharedX () const |
| virtual Kernel::cow_ptr< HistogramData::HistogramY > | sharedY () const |
| const HistogramData::HistogramX & | x () const |
| virtual const HistogramData::HistogramY & | y () const |
| HistogramData::Histogram::YMode | yMode () const |
| virtual | ~ISpectrum ()=default |
Protected Member Functions | |
| virtual void | checkAndSanitizeHistogram (HistogramData::Histogram &) |
| virtual void | checkIsYAndEWritable () const |
| virtual void | checkWorksWithPoints () const |
| ISpectrum (const ISpectrum &other) | |
| Copy constructor. More... | |
| ISpectrum (ISpectrum &&other) | |
| Move constructor. More... | |
| ISpectrum & | operator= (const ISpectrum &other) |
| Copy assignment. More... | |
| ISpectrum & | operator= (ISpectrum &&other) |
| Move assignment. More... | |
Private Member Functions | |
| virtual const HistogramData::Histogram & | histogramRef () const =0 |
| void | invalidateCachedSpectrumNumbers () const |
| Invalidates cached spectrum numbers in the owning workspace. More... | |
| void | invalidateSpectrumDefinition () const |
| Invalidates spectrum definitions in the owning workspace. More... | |
| virtual HistogramData::Histogram & | mutableHistogramRef ()=0 |
Private Attributes | |
| std::set< detid_t > | detectorIDs |
| Set of the detector IDs associated with this spectrum. More... | |
| size_t | m_index {0} |
| MatrixWorkspace * | m_matrixWorkspace {nullptr} |
| specnum_t | m_specNo {0} |
| The spectrum number of this spectrum. More... | |
A "spectrum" is an object that holds the data for a particular spectrum, in particular:
This is an interface that can be used for both Workspace2D's Spectrum objects, and EventWorkspace's EventList objects
Definition at line 39 of file ISpectrum.h.
|
default |
| Mantid::API::ISpectrum::ISpectrum | ( | const specnum_t | specNo | ) |
Constructor with spectrum number.
| specNo | :: spectrum # of the spectrum |
Definition at line 17 of file ISpectrum.cpp.
|
virtualdefault |
|
protected |
Copy constructor.
Definition at line 144 of file ISpectrum.cpp.
|
protected |
Move constructor.
Definition at line 150 of file ISpectrum.cpp.
| void Mantid::API::ISpectrum::addDetectorID | ( | const detid_t | detID | ) |
Add a detector ID to the set of detector IDs.
| detID | :: detector ID to insert in set. |
Definition at line 51 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
Referenced by WorkspaceCreationHelper::createRandomEventWorkspace(), export_ISpectrum(), Mantid::DataHandling::FilterEventsByLogValuePreNexus::procEvents(), and Mantid::DataHandling::FilterEventsByLogValuePreNexus::setupPixelSpectrumMap().
| void Mantid::API::ISpectrum::addDetectorIDs | ( | const std::set< detid_t > & | detIDs | ) |
Add a set of detector IDs to the set of detector IDs.
| detIDs | :: set of detector IDs to insert in set. |
Definition at line 62 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
Referenced by Mantid::DataHandling::GroupDetectors2::formGroupsEvent(), and Mantid::DataObjects::EventList::operator+=().
| void Mantid::API::ISpectrum::addDetectorIDs | ( | const std::vector< detid_t > & | detIDs | ) |
Add a vector of detector IDs to the set of detector IDs.
| detIDs | :: vector of detector IDs to insert in set. |
Definition at line 73 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
|
inline |
Definition at line 116 of file ISpectrum.h.
|
inlineprotectedvirtual |
Reimplemented in Mantid::DataObjects::EventList, and Mantid::DataObjects::Histogram1D.
Definition at line 208 of file ISpectrum.h.
|
inlineprotectedvirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 210 of file ISpectrum.h.
|
inlineprotectedvirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 209 of file ISpectrum.h.
|
pure virtual |
| void Mantid::API::ISpectrum::clearDetectorIDs | ( | ) |
Clear the detector IDs set.
Definition at line 117 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
Referenced by Mantid::DataObjects::EventList::clear(), Mantid::Algorithms::DiffractionFocussing2::execEvent(), Mantid::Algorithms::SumSpectra::execEvent(), export_ISpectrum(), Mantid::DataHandling::GroupDetectors2::formGroupsEvent(), Mantid::DataHandling::LoadNexusProcessed::loadEventEntry(), Mantid::Algorithms::ExportTimeSeriesLog::setupEventWorkspace(), and Mantid::Algorithms::SmoothNeighbours::setupNewInstrument().
|
inline |
Definition at line 107 of file ISpectrum.h.
|
inline |
Definition at line 111 of file ISpectrum.h.
|
pure virtual |
Copy data from another ISpectrum with double-dynamic dispatch.
Implemented in SpectrumTester, Mantid::DataObjects::EventList, and Mantid::DataObjects::Histogram1D.
|
virtual |
Override in child classes for polymorphic copying of data.
Reimplemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and Mantid::DataObjects::EventList.
Definition at line 201 of file ISpectrum.cpp.
Referenced by Mantid::DataObjects::EventList::copyDataFrom(), and Mantid::DataObjects::Histogram1D::copyDataFrom().
|
virtual |
Override in child classes for polymorphic copying of data.
Reimplemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, Mantid::DataObjects::EventList, and Mantid::DataObjects::Histogram1D.
Definition at line 205 of file ISpectrum.cpp.
|
virtual |
Override in child classes for polymorphic copying of data.
Reimplemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Definition at line 210 of file ISpectrum.cpp.
| void Mantid::API::ISpectrum::copyInfoFrom | ( | const ISpectrum & | other | ) |
Copy spectrum number and detector IDs, but not X vector, from another ISpectrum.
| other | :: take the values from other, put them in this |
Definition at line 24 of file ISpectrum.cpp.
References detectorIDs, invalidateCachedSpectrumNumbers(), invalidateSpectrumDefinition(), and m_specNo.
Referenced by Mantid::DataObjects::EventList::createFromHistogram(), and Mantid::API::WorkspaceFactoryImpl::initializeFromParent().
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 137 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 139 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 138 of file ISpectrum.h.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by Mantid::Algorithms::MonteCarloAbsorption::doSimulation(), and readE().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by Mantid::Algorithms::Integration::integrateSpectrum().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by VariableBinThrowingTester::blocksize(), Mantid::Algorithms::MonteCarloAbsorption::doSimulation(), and readY().
|
inline |
Definition at line 175 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 174 of file ISpectrum.h.
Referenced by Mantid::Algorithms::PolarizationCorrectionWildes::analyzerlessCorrections(), Mantid::Algorithms::PolarizationCorrectionWildes::directBeamCorrections(), Mantid::Algorithms::PolarizationCorrectionWildes::fullCorrections(), Mantid::Algorithms::Integration::integrateSpectrum(), and Mantid::Algorithms::PolarizationCorrectionWildes::twoInputsSolve01And10().
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 142 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 144 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 143 of file ISpectrum.h.
| const std::set< detid_t > & Mantid::API::ISpectrum::getDetectorIDs | ( | ) | const |
Get a const reference to the detector IDs set.
Definition at line 113 of file ISpectrum.cpp.
References detectorIDs.
Referenced by Mantid::MDAlgorithms::ConvertToDiffractionMDWorkspace::convertEventList(), export_ISpectrum(), Mantid::DataObjects::EventList::filterByPulseTime(), Mantid::DataObjects::EventList::filterByTimeAtSample(), Mantid::DataHandling::GroupDetectors2::formGroupsEvent(), Mantid::API::MatrixWorkspace::getDetector(), Mantid::DataObjects::SpecialWorkspace2D::getDetectorIDs(), Mantid::API::MatrixWorkspace::getDetectorIDToWorkspaceIndexMap(), Mantid::API::MatrixWorkspace::getDetectorIDToWorkspaceIndexVector(), Mantid::API::MatrixWorkspace::getIndicesFromDetectorIDs(), Mantid::DataHandling::LoadMuonStrategy::getLoadedDetectorsFromWorkspace(), Mantid::API::MatrixWorkspace::hasGroupedDetectors(), Mantid::DataObjects::SpecialWorkspace2D::isCompatible(), Mantid::DataObjects::EventList::operator+=(), Mantid::Algorithms::FilterEvents::setupCustomizedTOFCorrection(), Mantid::DataObjects::SpecialWorkspace2D::SpecialWorkspace2D(), Mantid::DataObjects::EventList::splitByFullTime(), Mantid::DataObjects::EventList::splitByFullTimeMatrixSplitter(), Mantid::DataObjects::EventList::splitByPulseTime(), Mantid::DataObjects::EventList::splitByPulseTimeWithMatrix(), Mantid::DataObjects::EventList::splitByTime(), and Mantid::NeXus::NexusFileIO::writeEventList().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, SpectrumTester, and Mantid::API::IEventList.
| specnum_t Mantid::API::ISpectrum::getSpectrumNo | ( | ) | const |
Definition at line 123 of file ISpectrum.cpp.
References m_specNo.
Referenced by Mantid::Algorithms::ConjoinWorkspaces::checkForOverlap(), Mantid::Algorithms::DiscusMultipleScatteringCorrection::exec(), export_ISpectrum(), Mantid::Algorithms::ConjoinWorkspaces::fixSpectrumNumbers(), Mantid::API::MatrixWorkspace::getIndexFromSpectrumNumber(), Mantid::API::MatrixWorkspace::getIndicesFromSpectra(), Mantid::API::SpectraAxis::getMax(), Mantid::API::SpectraAxis::getMin(), Mantid::Algorithms::WorkspaceJoiners::getMinMax(), Mantid::API::MatrixWorkspace::getSpectraFromDetectorIDs(), Mantid::API::SpectraAxis::getSpectraIndexMap(), Mantid::API::MatrixWorkspace::indexInfo(), Mantid::API::SpectraAxis::operator()(), Mantid::API::SpectraAxis::spectraNo(), and Mantid::API::WorkspaceNearestNeighbourInfo::WorkspaceNearestNeighbourInfo().
|
virtual |
Return the min/max X values for this spectrum.
Definition at line 36 of file ISpectrum.cpp.
References readX().
| bool Mantid::API::ISpectrum::hasDetectorID | ( | const detid_t | detID | ) | const |
Return true if the given detector ID is in the list for this ISpectrum.
Definition at line 109 of file ISpectrum.cpp.
References detectorIDs.
Referenced by export_ISpectrum(), and Mantid::API::MatrixWorkspace::getSpectraFromDetectorIDs().
| bool Mantid::API::ISpectrum::hasDx | ( | ) | const |
Gets the value of the use flag.
Definition at line 136 of file ISpectrum.cpp.
References histogramRef(), and sharedDx().
Referenced by export_ISpectrum().
|
inlinevirtual |
Returns the Histogram associated with this spectrum.
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 95 of file ISpectrum.h.
Referenced by Mantid::DataObjects::Histogram1D::checkAndSanitizeHistogram(), and Mantid::API::MatrixWorkspace::isHistogramDataByIndex().
|
privatepure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by hasDx().
|
private |
Invalidates cached spectrum numbers in the owning workspace.
Definition at line 189 of file ISpectrum.cpp.
References Mantid::API::MatrixWorkspace::invalidateCachedSpectrumNumbers(), and m_matrixWorkspace.
Referenced by copyInfoFrom(), operator=(), and setSpectrumNo().
|
private |
Invalidates spectrum definitions in the owning workspace.
Definition at line 195 of file ISpectrum.cpp.
References Mantid::API::ExperimentInfo::invalidateSpectrumDefinition(), m_index, and m_matrixWorkspace.
Referenced by addDetectorID(), addDetectorIDs(), clearDetectorIDs(), copyInfoFrom(), operator=(), setDetectorID(), and setDetectorIDs().
|
inline |
Definition at line 177 of file ISpectrum.h.
|
inline |
Definition at line 182 of file ISpectrum.h.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::assignToOutput(), and Mantid::Algorithms::Integration::integrateSpectrum().
|
privatepure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by resetHasDx().
|
inline |
Definition at line 176 of file ISpectrum.h.
Referenced by Mantid::DataObjects::EventList::convertTof(), Mantid::Algorithms::ModeratorTzero::execEvent(), and Mantid::Algorithms::Integration::integrateSpectrum().
|
inline |
Definition at line 178 of file ISpectrum.h.
Referenced by Mantid::CurveFitting::Algorithms::VesuvioCalculateMS::assignToOutput(), and Mantid::Algorithms::Integration::integrateSpectrum().
Copy assignment.
Definition at line 156 of file ISpectrum.cpp.
References detectorIDs, invalidateCachedSpectrumNumbers(), invalidateSpectrumDefinition(), and m_specNo.
Referenced by Mantid::DataObjects::Histogram1D::operator=().
Move assignment.
Definition at line 167 of file ISpectrum.cpp.
References detectorIDs, invalidateCachedSpectrumNumbers(), invalidateSpectrumDefinition(), and m_specNo.
|
inline |
Definition at line 117 of file ISpectrum.h.
|
inline |
Definition at line 118 of file ISpectrum.h.
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by Mantid::DataObjects::EventList::createFromHistogram().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
|
virtual |
Deprecated, use e() instead. Returns the y error data const.
Definition at line 45 of file ISpectrum.cpp.
References dataE().
Referenced by Mantid::DataObjects::EventList::createFromHistogram(), and Mantid::DataObjects::EventWorkspace::dataE().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, Mantid::DataObjects::Histogram1D, and SpectrumTester.
Referenced by Mantid::DataObjects::EventList::createFromHistogram(), and getXDataRange().
|
virtual |
Deprecated, use y() instead. Returns the y data const.
Definition at line 42 of file ISpectrum.cpp.
References dataY().
Referenced by Mantid::DataObjects::EventList::createFromHistogram(), Mantid::DataObjects::EventWorkspace::dataY(), and SpectrumTester::getMemorySize().
| void Mantid::API::ISpectrum::resetHasDx | ( | ) |
Resets the hasDx flag.
Definition at line 141 of file ISpectrum.cpp.
References mutableHistogramRef().
|
inline |
Definition at line 121 of file ISpectrum.h.
|
inline |
Definition at line 147 of file ISpectrum.h.
Referenced by Mantid::DataObjects::Workspace2D::init().
|
inline |
Definition at line 156 of file ISpectrum.h.
Referenced by Mantid::DataObjects::Workspace2D::init().
|
inline |
Definition at line 152 of file ISpectrum.h.
| void Mantid::API::ISpectrum::setDetectorID | ( | const detid_t | detID | ) |
Clear the list of detector IDs, then add one.
| detID | :: detector ID to insert in set. |
Definition at line 84 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
Referenced by Mantid::SingleCrystalDiffractionTestHelper::WorkspaceBuilder::createEventWorkspace(), WorkspaceCreationHelper::createEventWorkspaceWithStartTime(), Mantid::DataHandling::LoadBBY::exec(), export_ISpectrum(), Mantid::DataHandling::LoadSwans::loadDataIntoTheWorkspace(), Mantid::DataHandling::LoadEMU< FD >::prepareEventStorage(), Mantid::DataHandling::LoadPLN::prepareEventStorage(), Mantid::DataHandling::LoadEventPreNexus2::procEvents(), and Mantid::Algorithms::SparseWorkspace::SparseWorkspace().
| void Mantid::API::ISpectrum::setDetectorIDs | ( | const std::set< detid_t > & | detIDs | ) |
Set the detector IDs to be the set given.
Will clear any previous IDs (unlike addDetectorIDs).
| detIDs | The new list of detector ID numbers |
Definition at line 94 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
Referenced by Mantid::DataObjects::EventList::filterByPulseTime(), Mantid::DataObjects::EventList::filterByTimeAtSample(), Mantid::DataObjects::EventList::splitByFullTime(), Mantid::DataObjects::EventList::splitByFullTimeMatrixSplitter(), Mantid::DataObjects::EventList::splitByPulseTime(), and Mantid::DataObjects::EventList::splitByPulseTimeWithMatrix().
| void Mantid::API::ISpectrum::setDetectorIDs | ( | std::set< detid_t > && | detIDs | ) |
Set the detector IDs to be the set given (move version).
Will clear any previous IDs (unlike addDetectorIDs).
| detIDs | The new list of detector ID numbers |
Definition at line 103 of file ISpectrum.cpp.
References detectorIDs, and invalidateSpectrumDefinition().
|
inline |
Definition at line 160 of file ISpectrum.h.
|
inline |
Definition at line 168 of file ISpectrum.h.
|
inline |
Definition at line 164 of file ISpectrum.h.
|
inline |
Sets the Histogram associated with this spectrum.
Definition at line 97 of file ISpectrum.h.
Referenced by Mantid::DataObjects::EventList::copyDataInto(), Mantid::Algorithms::WorkspaceJoiners::execWS2D(), Mantid::DataObjects::EventList::filterByPulseTime(), Mantid::DataObjects::EventList::filterByTimeAtSample(), Mantid::DataObjects::Workspace2D::init(), Mantid::DataObjects::EventWorkspace::init(), Mantid::DataHandling::LoadNexusProcessed::loadEventEntry(), Mantid::DataObjects::EventList::splitByFullTime(), Mantid::DataObjects::EventList::splitByFullTimeMatrixSplitter(), Mantid::DataObjects::EventList::splitByPulseTime(), and Mantid::DataObjects::EventList::splitByPulseTimeWithMatrix().
| void Mantid::API::ISpectrum::setMatrixWorkspace | ( | MatrixWorkspace * | matrixWorkspace, |
| const size_t | index | ||
| ) |
Sets the MatrixWorkspace pointer (pointer to the owning workspace).
This method should not need to be called explicitly, it is called when getting a mutable reference to an ISpectrum stored in a MatrixWorkspace. The pointer set by this method is used to push updates of the detector IDs into the Beamline::SpectrumInfo that is stored in the ExperimentInfo.
Definition at line 183 of file ISpectrum.cpp.
References index, m_index, and m_matrixWorkspace.
Referenced by Mantid::DataObjects::EventWorkspace::getSpectrumWithoutInvalidation(), Mantid::DataObjects::Workspace2D::getSpectrumWithoutInvalidation(), and Mantid::DataObjects::WorkspaceSingleValue::getSpectrumWithoutInvalidation().
|
inline |
Definition at line 124 of file ISpectrum.h.
|
inline |
Definition at line 134 of file ISpectrum.h.
|
inline |
Definition at line 129 of file ISpectrum.h.
|
inline |
Definition at line 191 of file ISpectrum.h.
|
inline |
Definition at line 196 of file ISpectrum.h.
|
inline |
Definition at line 190 of file ISpectrum.h.
References Mantid::Geometry::x.
|
inline |
Definition at line 192 of file ISpectrum.h.
References Mantid::Geometry::y.
| void Mantid::API::ISpectrum::setSpectrumNo | ( | specnum_t | num | ) |
Sets the the spectrum number of this spectrum.
| num | :: the spectrum number of this spectrum |
Definition at line 127 of file ISpectrum.cpp.
References invalidateCachedSpectrumNumbers(), and m_specNo.
Referenced by WorkspaceCreationHelper::createEventWorkspaceWithStartTime(), Mantid::DataHandling::LoadBBY::exec(), Mantid::Algorithms::DiffractionFocussing2::execEvent(), Mantid::Algorithms::SumSpectra::execEvent(), export_ISpectrum(), Mantid::Algorithms::ConjoinWorkspaces::fixSpectrumNumbers(), Mantid::DataHandling::GroupDetectors2::formGroupsEvent(), Mantid::DataHandling::LoadSwans::loadDataIntoTheWorkspace(), Mantid::DataHandling::LoadEMU< FD >::prepareEventStorage(), Mantid::DataHandling::LoadPLN::prepareEventStorage(), Mantid::DataHandling::FilterEventsByLogValuePreNexus::procEvents(), Mantid::DataHandling::LoadEventPreNexus2::procEvents(), Mantid::DataHandling::LoadNexusProcessed::readInstrumentGroup(), and Mantid::DataHandling::FilterEventsByLogValuePreNexus::setupPixelSpectrumMap().
|
pure virtual |
Implemented in Mantid::DataObjects::EventList, and Mantid::DataObjects::Histogram1D.
|
inline |
Definition at line 106 of file ISpectrum.h.
Referenced by Mantid::API::MatrixWorkspace::setDistribution().
|
inline |
Definition at line 189 of file ISpectrum.h.
Referenced by hasDx().
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 188 of file ISpectrum.h.
|
inline |
Definition at line 186 of file ISpectrum.h.
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 187 of file ISpectrum.h.
|
inline |
Definition at line 172 of file ISpectrum.h.
Referenced by Mantid::Algorithms::PolarizationCorrectionWildes::checkConsistentX(), and Mantid::Algorithms::Integration::integrateSpectrum().
|
inlinevirtual |
Reimplemented in Mantid::DataObjects::EventList.
Definition at line 173 of file ISpectrum.h.
Referenced by Mantid::Algorithms::PolarizationCorrectionWildes::analyzerlessCorrections(), Mantid::Algorithms::PolarizationCorrectionWildes::directBeamCorrections(), Mantid::Algorithms::PolarizationCorrectionWildes::fullCorrections(), Mantid::Algorithms::Integration::integrateSpectrum(), Mantid::Algorithms::PolarizationCorrectionWildes::threeInputsSolve01(), Mantid::Algorithms::PolarizationCorrectionWildes::threeInputsSolve10(), and Mantid::Algorithms::PolarizationCorrectionWildes::twoInputsSolve01And10().
|
inline |
Definition at line 105 of file ISpectrum.h.
Referenced by Mantid::Algorithms::Integration::integrateSpectrum(), and Mantid::API::MatrixWorkspace::isDistribution().
|
private |
Set of the detector IDs associated with this spectrum.
Definition at line 233 of file ISpectrum.h.
Referenced by addDetectorID(), addDetectorIDs(), clearDetectorIDs(), copyInfoFrom(), getDetectorIDs(), hasDetectorID(), operator=(), setDetectorID(), and setDetectorIDs().
|
private |
Definition at line 227 of file ISpectrum.h.
Referenced by invalidateSpectrumDefinition(), and setMatrixWorkspace().
|
private |
Definition at line 225 of file ISpectrum.h.
Referenced by invalidateCachedSpectrumNumbers(), invalidateSpectrumDefinition(), and setMatrixWorkspace().
|
private |
The spectrum number of this spectrum.
Definition at line 230 of file ISpectrum.h.
Referenced by copyInfoFrom(), getSpectrumNo(), operator=(), and setSpectrumNo().