Skip to content
  • Janik Zikovsky's avatar
    - Refs #3203: Implemented ISpectrum. It is the base class of EventList and... · 0c5e87e9
    Janik Zikovsky authored
    - Refs #3203: Implemented ISpectrum. It is the base class of EventList and Histogram and contains the spectrum number and list of detector IDs for a given spectrum.
    - ISpectrum return X/Y/E vectors. EventList, e.g. calculates the histogram on the fly.
    - Moved the EventWorkspace MRU list of histograms to be contained within the EventList; better code separation. Made a EventWorkspaceMRU class to encapsulate this more easily.
    - Workspaces must implement getSpectrum (const/not const) to return a ISpectrum object. dataX(i), etc. methods on MatrixWorkspaces no longer need to be overridden since they call getSpectrum()
    - Got rid of EventWorkspace::getEventListatPixelID() and doneLoadingData()
    - replaceSpectraMap() methods offers backwards-compatibility with SpectraDetectorMaps by setting the specNo and detector list when called. Must be called AFTER creating all the spectra in a workspace.
    - Refs #3318: maskWorkspaceIndex() implemented as part of ISpectrum.
    
    
    
    0c5e87e9