Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | List of all members
Mantid::API::IPeaksWorkspace Class Referenceabstract

Interface to the class Mantid::DataObjects::PeaksWorkspace. More...

#include <IPeaksWorkspace.h>

Inheritance diagram for Mantid::API::IPeaksWorkspace:
Mantid::API::ITableWorkspace Mantid::API::ExperimentInfo Mantid::API::Workspace Mantid::Kernel::DataItem Mantid::DataObjects::LeanElasticPeaksWorkspace Mantid::DataObjects::PeaksWorkspace

Public Member Functions

virtual void addPeak (const Kernel::V3D &position, const Kernel::SpecialCoordinateSystem &frame)=0
 Add a peak to the list. More...
 
virtual void addPeak (const Mantid::Geometry::IPeak &ipeak)=0
 Add a peak to the list. More...
 
IPeaksWorkspace_uptr clone () const
 Returns a clone of the workspace. More...
 
virtual API::ITableWorkspace_sptr createDetectorTable () const =0
 Creates a new TableWorkspace giving the IDs of the detectors that contribute to the peak. More...
 
virtual std::unique_ptr< Geometry::IPeakcreatePeak () const =0
 Create an instance of a peak using default constructor. More...
 
virtual std::unique_ptr< Mantid::Geometry::IPeakcreatePeak (const Mantid::Kernel::V3D &position, const Mantid::Kernel::SpecialCoordinateSystem &frame) const =0
 Create an instance of a Peak. More...
 
virtual std::unique_ptr< Geometry::IPeakcreatePeak (const Mantid::Kernel::V3D &QLabFrame, boost::optional< double > detectorDistance=boost::none) const =0
 Create an instance of a Peak. More...
 
virtual std::unique_ptr< Geometry::IPeakcreatePeakHKL (const Mantid::Kernel::V3D &HKL) const =0
 Create an instance of a peak using a V3D. More...
 
virtual std::unique_ptr< Mantid::Geometry::IPeakcreatePeakQSample (const Mantid::Kernel::V3D &position) const =0
 Create an instance of a Peak. More...
 
virtual std::string getConvention () const =0
 
virtual int getNumberPeaks () const =0
 
virtual const Mantid::Geometry::IPeakgetPeak (int peakNum) const =0
 Return a reference to the Peak (const version) More...
 
virtual Mantid::Geometry::IPeakgetPeak (int peakNum)=0
 Return a reference to the Peak. More...
 
Mantid::Geometry::IPeakgetPeakPtr (const int peakNum)
 Return a pointer to the Peak. More...
 
virtual Kernel::SpecialCoordinateSystem getSpecialCoordinateSystem () const =0
 Get the special coordinate system. More...
 
virtual bool hasIntegratedPeaks () const =0
 Determine if the workspace has been integrated using a peaks integration algorithm. More...
 
 IPeaksWorkspace ()
 Ctor. More...
 
IPeaksWorkspaceoperator= (const IPeaksWorkspace &other)=delete
 
virtual std::vector< std::pair< std::string, std::string > > peakInfo (const Kernel::V3D &QFrame, bool labCoords) const =0
 
virtual int peakInfoNumber (const Kernel::V3D &qLabFrame, bool labCoords) const =0
 
virtual void removePeak (int peakNum)=0
 Removes the indicated peak. More...
 
virtual void removePeaks (std::vector< int > badPeaks)=0
 
virtual void saveNexus (::NeXus::File *file) const =0
 
virtual void setCoordinateSystem (const Kernel::SpecialCoordinateSystem coordinateSystem)=0
 Set the special coordinate system. More...
 
- Public Member Functions inherited from Mantid::API::ITableWorkspace
virtual Column_sptr addColumn (const std::string &type, const std::string &name)=0
 Creates a new column. More...
 
virtual bool addColumns (const std::string &type, const std::string &name, size_t n)
 Creates n new columns of the same type. More...
 
TableRowHelper appendRow ()
 Appends a row. More...
 
BooleanBool (size_t row, size_t col)
 Get the reference to the element in row row and column col if its type is bool. More...
 
template<class T >
T & cell (size_t row, size_t col)
 Get the reference to the element in row row and column col. More...
 
ITableWorkspace_uptr clone () const
 Returns a clone of the workspace. More...
 
ITableWorkspace_uptr cloneColumns (const std::vector< std::string > &colNames) const
 Returns a clone of the workspace. More...
 
ITableWorkspace_uptr cloneEmpty () const
 Returns a default-initialized clone of the workspace. More...
 
virtual size_t columnCount () const =0
 Number of columns in the workspace. More...
 
virtual bool customSort () const
 Does this type of TableWorkspace need a custom sorting call (e.g. More...
 
double & Double (size_t row, size_t col)
 Get the reference to the element in row row and column col if its type is double. More...
 
virtual void find (API::Boolean value, size_t &row, size_t col)=0
 find method to get the index of API::Boolean value cell in a table workspace More...
 
virtual void find (const Mantid::Kernel::V3D &value, size_t &row, size_t col)=0
 find method to get the index of Mantid::Kernel::V3D cell value in a table workspace More...
 
virtual void find (const std::string &value, size_t &row, size_t col)=0
 find method to get the index of cellstd::string value in a table workspace More...
 
virtual void find (double value, size_t &row, size_t col)=0
 find method to get the index of double cell value in a table workspace More...
 
virtual void find (float value, size_t &row, size_t col)=0
 find method to get the index of float cell value in a table workspace More...
 
virtual void find (size_t value, size_t &row, size_t col)=0
 find method to get the index of integer cell value in a table workspace More...
 
virtual Column_const_sptr getColumn (const std::string &name) const =0
 Gets the shared pointer to a column by name. More...
 
virtual Column_sptr getColumn (const std::string &name)=0
 Gets the shared pointer to a column by name. More...
 
virtual Column_const_sptr getColumn (size_t index) const =0
 Gets the shared pointer to a column by index - return none-modifyable column. More...
 
virtual Column_sptr getColumn (size_t index)=0
 Gets the shared pointer to a column by index. More...
 
virtual std::vector< std::string > getColumnNames () const =0
 Returns a vector of all column names. More...
 
TableRowHelper getFirstRow ()
 Creates a TableRow object for the first row (row == 0). More...
 
virtual API::LogManager_const_sptr getLogs () const =0
 Get constant access to shared pointer containing workspace properties. More...
 
template<class T >
T & getRef (const std::string &name, size_t index)
 Get a reference to a data element. More...
 
TableRowHelper getRow (size_t row)
 Creates a TableRow object for row row. More...
 
TableColumnHelper getVector (const std::string &name)
 Access the column with name name trough a ColumnVector object. More...
 
TableConstColumnHelper getVector (const std::string &name) const
 Access the column with name name trough a ColumnVector object. More...
 
const std::string id () const override
 Return the workspace typeID. More...
 
virtual size_t insertRow (size_t index)=0
 Inserts a row before row pointed to by index and fills it with default vales. More...
 
int & Int (size_t row, size_t col)
 Get the reference to the element in row row and column col if its type is int. More...
 
 ITableWorkspace ()
 Constructor. More...
 
virtual API::LogManager_sptr logs ()=0
 Get access to shared pointer containing workspace properties. More...
 
void modified ()
 If the workspace is the AnalysisDataService sends AfterReplaceNotification. More...
 
ITableWorkspaceoperator= (const ITableWorkspace &)=delete
 
virtual void removeColumn (const std::string &name)=0
 Removes a column. More...
 
virtual void removeRow (size_t index)=0
 Delets a row if it exists. More...
 
virtual size_t rowCount () const =0
 Number of rows in the workspace. More...
 
virtual void setRowCount (size_t count)=0
 Resizes the workspace. More...
 
virtual void sort (std::vector< std::pair< std::string, bool > > &criteria)
 Overridable method to custom-sort the workspace. More...
 
std::string & String (size_t row, size_t col)
 Get the reference to the element in row row and column col if its type is std::string. More...
 
const std::string toString () const override
 Serializes the object to a string. More...
 
- Public Member Functions inherited from Mantid::API::Workspace
Workspace_uptr clone () const
 Returns a clone (copy) of the workspace with covariant return type in all derived classes. More...
 
Workspace_uptr cloneEmpty () const
 Returns a default-initialized clone of the workspace. More...
 
const std::string & getComment () const
 Get the workspace comment. More...
 
const WorkspaceHistorygetHistory () const
 Returns a reference to the WorkspaceHistory const. More...
 
virtual size_t getMemorySize () const =0
 Get the footprint in memory in bytes. More...
 
std::string getMemorySizeAsStr () const
 Returns the memory footprint in sensible units. More...
 
const std::string & getName () const override
 Get the workspace name. More...
 
virtual const std::string getTitle () const
 Get the workspace title. More...
 
WorkspaceHistoryhistory ()
 Returns a reference to the WorkspaceHistory. More...
 
bool isDirty (const int n=1) const
 Check whether other algorithms have been applied to the workspace by checking the history length. More...
 
virtual bool isGroup () const
 
Workspaceoperator= (const Workspace &other)=delete
 
void setComment (const std::string &)
 Set the comment field of the workspace. More...
 
virtual void setTitle (const std::string &)
 Set the title of the workspace. More...
 
Parallel::StorageMode storageMode () const
 Returns the storage mode (used for MPI runs) More...
 
bool threadSafe () const override
 Marks the workspace as safe for multiple threads to edit data simutaneously. More...
 
 Workspace (const Parallel::StorageMode storageMode=Parallel::StorageMode::Cloned)
 
 ~Workspace ()
 
- Public Member Functions inherited from Mantid::Kernel::DataItem
 DataItem ()
 Default constructor. More...
 
 DataItem (const DataItem &other)
 Copy constructor Always makes a unique lock. More...
 
virtual ~DataItem ()
 Destructor. More...
 
void readLock ()
 Acquires a read lock. More...
 
void unlock ()
 
- Public Member Functions inherited from Mantid::API::ExperimentInfo
virtual ExperimentInfocloneExperimentInfo () const
 Clone us. More...
 
const Geometry::ComponentInfocomponentInfo () const
 
const Geometry::ParameterMapconstInstrumentParameters () const
 Const version. More...
 
void copyExperimentInfoFrom (const ExperimentInfo *other)
 Copy everything from the given experiment object. More...
 
const Geometry::DetectorInfodetectorInfo () const
 Return a const reference to the DetectorInfo object. More...
 
 ExperimentInfo ()
 Default constructor. More...
 
 ExperimentInfo (const ExperimentInfo &)
 Copy constructor. More...
 
std::string getAvailableWorkspaceEndDate () const
 Return workspace end date as a formatted string (strftime style, as returned by Kernel::DateAdnTime) string, if available. More...
 
std::string getAvailableWorkspaceStartDate () const
 Return workspace start date as a formatted string (strftime, as returned by Types::Core::DateAndTime) string, if available. More...
 
double getEFixed (const detid_t detID) const
 Easy access to the efixed value for this run & detector ID. More...
 
double getEFixed (const std::shared_ptr< const Geometry::IDetector > &detector=std::shared_ptr< const Geometry::IDetector >{nullptr}) const
 Easy access to the efixed value for this run & optional detector. More...
 
double getEFixedForIndirect (const std::shared_ptr< const Geometry::IDetector > &detector, const std::vector< std::string > &parameterNames) const
 
double getEFixedGivenEMode (const std::shared_ptr< const Geometry::IDetector > &detector, const Kernel::DeltaEMode::Type emode) const
 Easy access to the efixed value for this run & detector. More...
 
Kernel::DeltaEMode::Type getEMode () const
 Returns the emode for this run. More...
 
Geometry::Instrument_const_sptr getInstrument () const
 Returns the parameterized instrument. More...
 
Kernel::PropertygetLog (const std::string &log) const
 Access a log for this experiment. More...
 
double getLogAsSingleValue (const std::string &log) const
 Access a single value from a log for this experiment. More...
 
int getRunNumber () const
 Utility method to get the run number. More...
 
std::string getWorkspaceStartDate () const
 Returns the start date for this experiment (or current time if no info available) More...
 
Geometry::ParameterMapinstrumentParameters ()
 Returns a modifiable set of instrument parameters. More...
 
const Geometry::ParameterMapinstrumentParameters () const
 Returns the set of parameters modifying the base instrument (const-version) More...
 
void invalidateSpectrumDefinition (const size_t index)
 Notifies the ExperimentInfo that a spectrum definition has changed. More...
 
void loadExperimentInfoNexus (const std::string &nxFilename, ::NeXus::File *file, std::string &parameterStr)
 Loads an experiment description from the open NeXus file. More...
 
void loadExperimentInfoNexus (const std::string &nxFilename, ::NeXus::File *file, std::string &parameterStr, const Mantid::Kernel::NexusHDF5Descriptor &fileInfo, const std::string &prefix)
 
void loadInstrumentInfoNexus (const std::string &nxFilename, ::NeXus::File *file)
 Load the instrument from an open NeXus file without reading any parameters. More...
 
void loadInstrumentInfoNexus (const std::string &nxFilename, ::NeXus::File *file, std::string &parameterStr)
 Load the instrument from an open NeXus file. More...
 
void loadInstrumentParametersNexus (::NeXus::File *file, std::string &parameterStr)
 Load instrument parameters from an open Nexus file in Instument group if found there. More...
 
void loadSampleAndLogInfoNexus (::NeXus::File *file)
 Load the sample and log info from an open NeXus file. More...
 
void loadSampleAndLogInfoNexus (::NeXus::File *file, const Mantid::Kernel::NexusHDF5Descriptor &fileInfo, const std::string &prefix)
 Load the sample and log info from an open NeXus file. More...
 
Geometry::ComponentInfomutableComponentInfo ()
 
Geometry::DetectorInfomutableDetectorInfo ()
 Return a non-const reference to the DetectorInfo object. More...
 
RunmutableRun ()
 Writable version of the run object. More...
 
SamplemutableSample ()
 Writable version of the sample object. More...
 
SpectrumInfomutableSpectrumInfo ()
 Return a non-const reference to the SpectrumInfo object. More...
 
ExperimentInfooperator= (const ExperimentInfo &)
 Implements the copy assignment operator. More...
 
void populateInstrumentParameters ()
 Add parameters to the instrument parameter map that are defined in instrument definition file or parameter file, which may contain parameters that require logfile data to be available. More...
 
void readParameterMap (const std::string &parameterStr)
 Populate the parameter map given a string. More...
 
const Runrun () const
 Run details object access. More...
 
const Samplesample () const
 Sample accessors. More...
 
void saveExperimentInfoNexus (::NeXus::File *file, bool saveInstrument, bool saveSample, bool saveLogs) const
 Saves this experiment description to the open NeXus file. More...
 
void saveExperimentInfoNexus (::NeXus::File *file, bool saveLegacyInstrument=true) const
 Saves this experiment description to the open NeXus file. More...
 
void setDetectorGrouping (const size_t index, const std::set< detid_t > &detIDs) const
 Sets the detector grouping for the spectrum with the given index. More...
 
void setEFixed (const detid_t detID, const double value)
 Set the efixed value for a given detector ID. More...
 
void setInstrument (const Geometry::Instrument_const_sptr &instr)
 Instrument accessors. More...
 
void setNumberOfDetectorGroups (const size_t count) const
 Sets the number of detector groups. More...
 
void setSharedRun (Kernel::cow_ptr< Run > run)
 Set the run object. Use in particular to clear run without copying old run. More...
 
Kernel::cow_ptr< RunsharedRun ()
 Return the cow ptr of the run. More...
 
const SpectrumInfospectrumInfo () const
 Return a reference to the SpectrumInfo object. More...
 
const std::string toString () const
 Returns a string description of the object. More...
 
void updateSpectrumDefinitionIfNecessary (const size_t index) const
 
virtual ~ExperimentInfo ()
 Virtual destructor. More...
 

Public Attributes

std::string m_convention
 

Protected Member Functions

 IPeaksWorkspace (const IPeaksWorkspace &)=default
 Protected copy constructor. May be used by childs for cloning. More...
 
const std::string toString () const override
 Serializes the object to a string. More...
 
- Protected Member Functions inherited from Mantid::API::ITableWorkspace
void insertInColumn (Column *c, size_t index)
 Insert a new element into a column. More...
 
 ITableWorkspace (const ITableWorkspace &)=default
 Protected copy constructor. May be used by childs for cloning. More...
 
void removeFromColumn (Column *c, size_t index)
 Remove an element from a column. More...
 
void resizeColumn (Column *c, size_t size)
 Resize a column. More...
 
- Protected Member Functions inherited from Mantid::API::Workspace
void setStorageMode (Parallel::StorageMode mode)
 Sets the storage mode (used for MPI runs) More...
 
 Workspace (const Workspace &)
 Protected copy constructor. May be used by childs for cloning. More...
 
- Protected Member Functions inherited from Mantid::Kernel::DataItem
Poco::RWLock * getLock () const
 Private method to access the RWLock object. More...
 
- Protected Member Functions inherited from Mantid::API::ExperimentInfo
size_t numberOfDetectorGroups () const
 Returns the number of detector groups. More...
 
virtual void populateIfNotLoaded () const
 Called as the first operation of most public methods. More...
 
void setSpectrumDefinitions (Kernel::cow_ptr< std::vector< SpectrumDefinition > > spectrumDefinitions)
 Sets the SpectrumDefinition for all spectra. More...
 
virtual void updateCachedDetectorGrouping (const size_t index) const
 Update detector grouping for spectrum with given index. More...
 

Private Member Functions

IPeaksWorkspacedoClone () const override=0
 Virtual clone method. Not implemented to force implementation in children. More...
 

Additional Inherited Members

- Protected Attributes inherited from Mantid::API::ExperimentInfo
std::shared_ptr< Geometry::ParameterMapm_parmap
 Parameters modifying the base instrument. More...
 
Geometry::Instrument_const_sptr sptr_instrument
 The base (unparametrized) instrument. More...
 

Detailed Description

Interface to the class Mantid::DataObjects::PeaksWorkspace.

The class PeaksWorkspace stores information about a set of SCD peaks.

Author
Ruth Mikkelson, SNS ORNL
Date
3/10/2010

Definition at line 33 of file IPeaksWorkspace.h.

Constructor & Destructor Documentation

◆ IPeaksWorkspace() [1/2]

Mantid::API::IPeaksWorkspace::IPeaksWorkspace ( )
inline

Ctor.

Definition at line 36 of file IPeaksWorkspace.h.

◆ IPeaksWorkspace() [2/2]

Mantid::API::IPeaksWorkspace::IPeaksWorkspace ( const IPeaksWorkspace )
protecteddefault

Protected copy constructor. May be used by childs for cloning.

Member Function Documentation

◆ addPeak() [1/2]

virtual void Mantid::API::IPeaksWorkspace::addPeak ( const Kernel::V3D position,
const Kernel::SpecialCoordinateSystem frame 
)
pure virtual

Add a peak to the list.

Parameters
position:: V3D positon of the peak.
frame:: Coordinate system frame of the peak position.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ addPeak() [2/2]

virtual void Mantid::API::IPeaksWorkspace::addPeak ( const Mantid::Geometry::IPeak ipeak)
pure virtual

Add a peak to the list.

Parameters
ipeak:: Peak object to add (copy) into this.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

Referenced by Mantid::Crystal::FilterPeaks::filterPeaks(), and Mantid::Crystal::FilterPeaks::filterPeaksStr().

◆ clone()

IPeaksWorkspace_uptr Mantid::API::IPeaksWorkspace::clone ( ) const
inline

Returns a clone of the workspace.

Definition at line 41 of file IPeaksWorkspace.h.

◆ createDetectorTable()

virtual API::ITableWorkspace_sptr Mantid::API::IPeaksWorkspace::createDetectorTable ( ) const
pure virtual

Creates a new TableWorkspace giving the IDs of the detectors that contribute to the peak.

Returns
A shared pointer to a TableWorkspace containing the information

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ createPeak() [1/3]

virtual std::unique_ptr< Geometry::IPeak > Mantid::API::IPeaksWorkspace::createPeak ( ) const
pure virtual

Create an instance of a peak using default constructor.

Returns
a pointer to a new Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ createPeak() [2/3]

virtual std::unique_ptr< Mantid::Geometry::IPeak > Mantid::API::IPeaksWorkspace::createPeak ( const Mantid::Kernel::V3D position,
const Mantid::Kernel::SpecialCoordinateSystem frame 
) const
pure virtual

Create an instance of a Peak.

Parameters
position:: enter of the peak in the specified frame
frame:: the coordinate frame that the position is specified in.
Returns
a pointer to a new Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ createPeak() [3/3]

virtual std::unique_ptr< Geometry::IPeak > Mantid::API::IPeaksWorkspace::createPeak ( const Mantid::Kernel::V3D QLabFrame,
boost::optional< double >  detectorDistance = boost::none 
) const
pure virtual

Create an instance of a Peak.

Parameters
QLabFrame:: Q of the center of the peak in the lab frame, in reciprocal space
detectorDistance:: Optional distance between the sample and the detector. Calculated if not provided.
Returns
a pointer to a new Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ createPeakHKL()

virtual std::unique_ptr< Geometry::IPeak > Mantid::API::IPeaksWorkspace::createPeakHKL ( const Mantid::Kernel::V3D HKL) const
pure virtual

Create an instance of a peak using a V3D.

Parameters
HKLV3D
Returns
a pointer to a new Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ createPeakQSample()

virtual std::unique_ptr< Mantid::Geometry::IPeak > Mantid::API::IPeaksWorkspace::createPeakQSample ( const Mantid::Kernel::V3D position) const
pure virtual

Create an instance of a Peak.

Parameters
position:: enter of the peak in the sample frame
Returns
a pointer to a new Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ doClone()

IPeaksWorkspace * Mantid::API::IPeaksWorkspace::doClone ( ) const
overrideprivatepure virtual

Virtual clone method. Not implemented to force implementation in children.

Implements Mantid::API::Workspace.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ getConvention()

virtual std::string Mantid::API::IPeaksWorkspace::getConvention ( ) const
pure virtual

◆ getNumberPeaks()

virtual int Mantid::API::IPeaksWorkspace::getNumberPeaks ( ) const
pure virtual

◆ getPeak() [1/2]

virtual const Mantid::Geometry::IPeak & Mantid::API::IPeaksWorkspace::getPeak ( int  peakNum) const
pure virtual

Return a reference to the Peak (const version)

Parameters
peakNum:: index of the peak to get.
Returns
a reference to a Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ getPeak() [2/2]

virtual Mantid::Geometry::IPeak & Mantid::API::IPeaksWorkspace::getPeak ( int  peakNum)
pure virtual

Return a reference to the Peak.

Parameters
peakNum:: index of the peak to get.
Returns
a reference to a Peak object.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

Referenced by Mantid::Crystal::FilterPeaks::filterPeaks(), and Mantid::Crystal::FilterPeaks::filterPeaksStr().

◆ getPeakPtr()

Mantid::Geometry::IPeak * Mantid::API::IPeaksWorkspace::getPeakPtr ( const int  peakNum)
inline

Return a pointer to the Peak.

Parameters
peakNum:: index of the peak to get.
Returns
a pointer to a Peak object.

Definition at line 93 of file IPeaksWorkspace.h.

Referenced by export_IPeaksWorkspace().

◆ getSpecialCoordinateSystem()

virtual Kernel::SpecialCoordinateSystem Mantid::API::IPeaksWorkspace::getSpecialCoordinateSystem ( ) const
pure virtual

Get the special coordinate system.

Returns
special Q3D coordinate system to use being used by this PeaksWorkspace object. Probably the one the workspace was generated with.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ hasIntegratedPeaks()

virtual bool Mantid::API::IPeaksWorkspace::hasIntegratedPeaks ( ) const
pure virtual

Determine if the workspace has been integrated using a peaks integration algorithm.

Returns
TRUE if the workspace has been integrated.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

Referenced by export_IPeaksWorkspace().

◆ operator=()

IPeaksWorkspace & Mantid::API::IPeaksWorkspace::operator= ( const IPeaksWorkspace other)
delete

◆ peakInfo()

virtual std::vector< std::pair< std::string, std::string > > Mantid::API::IPeaksWorkspace::peakInfo ( const Kernel::V3D QFrame,
bool  labCoords 
) const
pure virtual

◆ peakInfoNumber()

virtual int Mantid::API::IPeaksWorkspace::peakInfoNumber ( const Kernel::V3D qLabFrame,
bool  labCoords 
) const
pure virtual

◆ removePeak()

virtual void Mantid::API::IPeaksWorkspace::removePeak ( int  peakNum)
pure virtual

Removes the indicated peak.

Parameters
peakNumthe peak to remove. peakNum starts at 0

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ removePeaks()

virtual void Mantid::API::IPeaksWorkspace::removePeaks ( std::vector< int >  badPeaks)
pure virtual

◆ saveNexus()

virtual void Mantid::API::IPeaksWorkspace::saveNexus ( ::NeXus::File *  file) const
pure virtual

◆ setCoordinateSystem()

virtual void Mantid::API::IPeaksWorkspace::setCoordinateSystem ( const Kernel::SpecialCoordinateSystem  coordinateSystem)
pure virtual

Set the special coordinate system.

Parameters
coordinateSystem: Special Q3D coordinate system to use.

Implemented in Mantid::DataObjects::LeanElasticPeaksWorkspace, and Mantid::DataObjects::PeaksWorkspace.

◆ toString()

const std::string Mantid::API::IPeaksWorkspace::toString ( ) const
overrideprotectedvirtual

Serializes the object to a string.

Implements Mantid::Kernel::DataItem.

Definition at line 18 of file IPeaksWorkspace.cpp.

References m_convention, Mantid::API::ExperimentInfo::toString(), and Mantid::API::ITableWorkspace::toString().

Member Data Documentation

◆ m_convention

std::string Mantid::API::IPeaksWorkspace::m_convention

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